i found some
PHP Code:
$search_load = intval($vbulletin->options['RestrictSearchs_max_load']);
if ($search_load <= 0) {
$search_load = 5;
}
if (( $vbulletin->userinfo['usergroupid'] <> 6 ) )
{
if ($load = @file_get_contents("/proc/loadavg"))
{
$loadavg = explode(' ', $load);
}elseif ($load=@exec('uptime'))
{
preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/',$load, $loadavg);
}
elseif ($load = @`sysctl vm.loadavg|cut -d" " -f3-5`)
{
$loadavg = explode(' ', $load);
}
if (trim($loadavg[0]) > $search_load)
{
eval(standard_error( fetch_error('restrict_search')));
}
how i change it that when i have high load appear error in all web?
that can enter to nothing...
thx for help!