Tinklapio uzkrovimo laikas
Parašė edeni 2008 rugsėjo 26 13:09:40
Atsidarot maincore.php ir po:
[code]// If register_globals is turned off, extract super globals (php 4.2.0+)
if (ini_get('register_globals') != 1) {
if ((isset($_POST) == true) && (is_array($_POST) == true)) extract($_POST, EXTR_OVERWRITE);
if ((isset($_GET) == true) && (is_array($_GET) == true)) extract($_GET, EXTR_OVERWRITE);
}
[/code]
idedat:
[code]// Calculate script start/end time
function get_microtime() {
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}

// Define script start time
define("START_TIME", get_microtime());[/code]

Paskui atsidarot locale/jusukalba/global.php
ir pries ?>

idedat:
[code]$locale['global_172'] = "Puslapis sugeneruotas per: %s sekundžių";[/code]

Paskui atsidarot theme.php ir sita koda idedat ten kur norit matyti jusu tinklalapio generacijos laika:
[code]".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."
[/code]