INFORMACJE Z SERWERA
PHP-FUSION Version 4.00
Author: 2004 by
bbene
*****************************************
INSTALACJA
*****************************************
1. Wejdź w "Panel Admina" otwórz "Panel Zawartości Strony" i wybierz: "Dodaj
nowy panel".
W polu "Treść" wklej poniższy skrypt PHP:
@opensidex("Informacje z Serwera");
//startuptime
$up = time() - $test;
$days = floor($up / 86400);
$up -= ($days * 86400);
$hours = floor($up / 3600);
$up -= ($hours * 3600);
$minutes = floor($up / 60);
$up -= ($minutes * 60);
$seconds = $up;
$ut = "<B>Server Uptime:</B><br> ".$days." Dni, ".$hours." Godzin(y), ".$minutes."
Minut(y) i ".$seconds." Sekund(y)";
//enduptime
//display uptime
echo ("$ut");
//end display uptime
echo "<BR>";
// Get Current Time
$mtime = microtime();
// Split Seconds and Microseconds
$mtime = explode (" ", $mtime);
// Create a single value for start time
$mtime = $mtime[1] + $mtime[0];
// Write Start Time Into A Variable
$tstart = $mtime;
// Get current time (Like above) to get end time
$mtime = microtime();
$mtime = explode (" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
// Store end time in a variable
$tend = $mtime;
// Calculate Difference
$totaltime = ($tend - $tstart);
// Output the result
printf ("<b><br>Information load time:</b><br> %f Sekund", $totaltime);
//end result
echo "<BR>";
//Display browser info
echo "<B><br>Your Info: </B>";
echo "<BR>";
echo $_SERVER['HTTP_USER_AGENT'];
echo "<BR>";
@closesidex();
3. Zapisz i aktywuj panel
4. Gotowe
5. Efekt działania
modułu:
- - - - - - - - - - - -
- - - - - - - - - - - - - - - -
Opracowanie: 2004 by Arox aka5000@wp.pl
Pobrano z Laboratorium Modułów