$ttt2 = timpexec(); $difff = number_format(substr($ttt2, 0, 9) + substr($ttt2, -10) - substr($ttt1, 0, 9) - substr($ttt1, -10), 4); if ($downloadfacut == false) { $difff = "error"; } $updatelog_text = $updatelog_text . "\nShares : " . $difff . " ms"; } } if ($downloadfacut == true) { CopyUpdate($caminfo_update, $caminfo_file); CopyUpdate($servers_update, $servers_file); CopyUpdate($shares_update, $shares_file); CopyUpdate($clients_update, $clients_file); CopyUpdate($activeclients_update, $activeclients_file); CopyUpdate($entitlements_update, $entitlements_file); UpdateClientsCountryIP(); UpdateServersCountryIP(); UpdateServersECM(); $timp2 = timpexec(); $diferentaTIMP1 = number_format(substr($timp2, 0, 9) + substr($timp2, -10) - substr($timp1, 0, 9) - substr($timp1, -10), 4); $TIMP_Update = "Update time: " . $diferentaTIMP1 . "s"; $updatelog_text = $updatelog_text . "\nTOTAL : " . $diferentaTIMP1 . " ms"; $fp = @fopen($update_log, "w"); fwrite($fp, $updatelog_text); fclose($fp); } } if ($TIMP_Update == "" && $timp_lastupdate != "") { $TIMP_Update = " Updated " . get_formatted_timediff($timp_lastupdate) . " ago"; } $skipUpdate = true;
function ENDPage() { global $timpSTART; $timpEND = timpexec(); $diferentaTIMP = number_format(substr($timpEND, 0, 9) + substr($timpEND, -10) - substr($timpSTART, 0, 9) - substr($timpSTART, -10), 4); $TIMP_Page = "<BR>Page Loading Time : <B>" . $diferentaTIMP . "</B>s"; echo '<font color="#494949">' . $TIMP_Page . '</font>'; if (function_exists('memory_get_usage')) { $memorie_limita = ini_get('memory_limit'); $memorie = ceil(memory_get_usage() / 1024); $memorie_Page = "<BR>Memory used : <B>" . $memorie . "</B> KB"; echo '<font color="#494949">' . $memorie_Page . ' / ' . $memorie_limita . '</font>'; } echo "<BR><BR></BODY></HTML>"; }