mcyates
07-27-2003, 06:31 AM
My Server Type, Server Uptime, Load Averages, Host Name, Host IP are not showing on my stats in the admin cp. It is a hack for thr admin panel by teck ( https://vborg.vbsupport.ru/showthread.php?s=&threadid=43232 ) My hosts response to the email i sent below is this:
==============================
My Email
Is the code pointing to the correct place?("/proc/uptime")
function serveruptime() {
$fd = fopen('/proc/uptime', 'r');
$ar_buf = split(' ', fgets($fd, 4096));
fclose($fd);
$sys_ticks = trim($ar_buf[0]);
$min = $sys_ticks / 60;
$hours = $min / 60;
$days = floor($hours / 24);
$hours = floor($hours - ($days * 24));
$min = floor($min - ($days * 60 * 24) - ($hours * 60));
If the site was moved to another server, do you think it may work then?
==============================
Host Reply
Yes, that file exists. The uptime info may work on another server.
Nothing on your site would change if we move your site to a different
server.
==============================
Which is didn't, they changed servers and everything is the same. (Not working)
On the newstatistik hack, the server information is shown its weird. Does anyone know why this is not showing up?
==============================
My Email
Is the code pointing to the correct place?("/proc/uptime")
function serveruptime() {
$fd = fopen('/proc/uptime', 'r');
$ar_buf = split(' ', fgets($fd, 4096));
fclose($fd);
$sys_ticks = trim($ar_buf[0]);
$min = $sys_ticks / 60;
$hours = $min / 60;
$days = floor($hours / 24);
$hours = floor($hours - ($days * 24));
$min = floor($min - ($days * 60 * 24) - ($hours * 60));
If the site was moved to another server, do you think it may work then?
==============================
Host Reply
Yes, that file exists. The uptime info may work on another server.
Nothing on your site would change if we move your site to a different
server.
==============================
Which is didn't, they changed servers and everything is the same. (Not working)
On the newstatistik hack, the server information is shown its weird. Does anyone know why this is not showing up?