$Item) { if(is_array($_POST[$Index])) foreach($_POST[$Index] as $Index2 => $Item2) $_POST[$Index][$Index2] = addslashes($Item2); else $_POST[$Index] = addslashes($_POST[$Index]); } foreach($_GET as $Index => $Item) $_GET[$Index] = addslashes($_GET[$Index]); include('config.php'); include('error.php'); include('databaseconection.php'); include('global_function.php'); include('rss.php'); include_once('system.php'); $Database = new Database($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password']); $Database->SQLCommand('SET NAMES '.$Config['Database']['Charset']); $Database->SelectDatabase($Config['Database']['Database']); $TranslationTree = GetTranslationTree(); $LanguageList = GetLanguageList(); $System = new System(); $System->Init(); function GetMicrotime() { list($Usec, $Sec) = explode(' ', microtime()); return ((float)$Usec + (float)$Sec); } function ShowShoutbox() { global $Database; echo('Shoutbox:'); if(Licence(LICENCE_USER)) echo(' Vložit'); echo('
'.$Line['user'].': '.htmlspecialchars($Line['text']).' |
');
ShowMainMenu();
// echo(' '); ShowLoginBox(); echo(' '); ShowOnlineUserList(); echo(' '); ShowSearchBox(); echo(' | '); $PageFooterRequested = true; } $UnitNames = array('B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB'); function HumanSize($Value) { global $UnitNames; $UnitIndex = 0; while($Value > 1024) { $Value = round($Value / 1024, 3); $UnitIndex++; } return($Value.' '.$UnitNames[$UnitIndex]); } function ShowFooter() { global $Database, $Config, $ScriptStartTime, $PageFooterRequested; if(isset($PageFooterRequested)) { $ScriptGenerateDuration = round(GetMicrotime() - $ScriptStartTime, 2); echo(' | '); echo('');
ShowTranslatedMenu();
echo(' '); ShowShoutBox(); echo(' | '.
'|
Autoři: maron, chronos Zdrojové soubory '.
'Novinky '.
' | |||
Doba generování: '.$ScriptGenerateDuration.' s / '.ini_get('max_execution_time').' s Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B |