в Full Mods 0.1.3 в admincenter.php
Я сделал так:
CODE:
// Unix-like server load averages
if (preg_match('/[c-z]:\\\.*/i', $_SERVER['PATH']))
{
$server_load = $lang['Server_loads_no'];
}
elseif ( file_exists('/proc/loadavg') ) {
if ( $fp = @fopen( '/proc/loadavg', 'r' ) ) {
$data = @fread( $fp, 6 );
@fclose($fp);
$loaded = explode(" ", $data);
$server_load = trim($load_avg[0]);
}
}
else {
$loaded = @exec('uptime');
if (preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/i', $loaded, $srv_load)) {
$server_load = $srv_load[1].' '.$srv_load[2].' '.$srv_load[3];
}
}
if (preg_match('/[c-z]:\\\.*/i', $_SERVER['PATH']))
{
$server_load = $lang['Server_loads_no'];
}
elseif ( file_exists('/proc/loadavg') ) {
if ( $fp = @fopen( '/proc/loadavg', 'r' ) ) {
$data = @fread( $fp, 6 );
@fclose($fp);
$loaded = explode(" ", $data);
$server_load = trim($load_avg[0]);
}
}
else {
$loaded = @exec('uptime');
if (preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/i', $loaded, $srv_load)) {
$server_load = $srv_load[1].' '.$srv_load[2].' '.$srv_load[3];
}
}
Владимир пишет:
на локалке такой мат стоит...
В каком случае это происходит?