Ignore:
Timestamp:
Mar 5, 2010, 7:42:00 AM (14 years ago)
Author:
george
Message:
  • Upraveno: Definice typů logovacích záznamů přesunuta do databáze do tabulky LogType. Doplněny konstanty začínající LOG_TYPE_ pro přehlednější používaní v kódu.
  • Přidáno: Odkaz a stránka zobrazení všech aktualit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global_function.php

    r309 r357  
    11<?php
    22
     3// User licence levels
    34define('LICENCE_ANONYMOUS', -1);
    45define('LICENCE_USER', 0);
    56define('LICENCE_MODERATOR', 1);
    67define('LICENCE_ADMIN', 2);
     8
     9// Log types
     10define('LOG_TYPE_TRANSLATION', 1);
     11define('LOG_TYPE_DOWNLOAD', 2);
     12define('LOG_TYPE_USER', 3);
     13define('LOG_TYPE_MODERATOR', 4);
     14define('LOG_TYPE_ERROR', 10);
     15define('LOG_TYPE_IMPORT', 11);
     16define('LOG_TYPE_EXPORT', 12);
     17define('LOG_TYPE_CZWOW', 13);
     18define('LOG_TYPE_ADMINISTRATION', 14);
     19
    720
    821function utf2ascii($text)
     
    257270}
    258271
    259 $LogTypes = array
    260 (
    261   0 => array('Name' => '', 'Color' => 'brown', 'Description' => ''),
    262   1 => array('Name' => 'Překlady', 'Color' => 'green', 'Description' => 'Operace s překladdy'),
    263   2 => array('Name' => 'Stažení', 'Color' => 'brown', 'Description' => 'Stáhnutí souboru'),
    264   3 => array('Name' => 'Uživatelé', 'Color' => 'blue', 'Description' => 'Přihlášení uživatelů, nastavení, registrace'),
    265   4 => array('Name' => 'Moderátor', 'Color' => 'orange', 'Description' => 'Operace administrátorů a moderátorů'),
    266   10 => array('Name' => 'Chyby', 'Color' => 'red', 'Description' => 'Zachycené chybové hlášení'),
    267   11 => array('Name' => 'Import', 'Color' => '#A020F0', 'Description' => 'Záznam změn při importu'),
    268   12 => array('Name' => 'Export', 'Color' => '#1080F0', 'Description' => 'Záznam akcí s exporty'),
    269 );
    270 
    271272$Moderators = array('Překladatel', 'Moderátor', 'Administrátor');
    272273
     
    291292  $Database->SQLCommand($Query);
    292293}
    293 
    294 $client_files = array
    295 (
    296   0 => 'LocalizationStrings',
    297   1 => 'SpellBufDescription_1',
    298   2 => 'SpellDescription_1',
    299   3 => 'SpellDescription_2',
    300   4 => 'SpellDescription_3',
    301   5 => 'SpellDescription_4',
    302   6 => 'tallent',
    303 );
    304294
    305295function HumanDate($SQLDateTime)
Note: See TracChangeset for help on using the changeset viewer.