// Load Limiting - DIRECTORY_SEPARATOR checks if running windows if(DIRECTORY_SEPARATOR != '\\')
| // Load Limiting if($mybb->usergroup['cancp'] != 1 && $mybb->settings['load'] > 0 && ($load = get_server_load()) && $load != $lang->unknown && $load > $mybb->settings['load'])
|
if($uptime = @exec('uptime')) { preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/", $uptime, $regs); $load = $regs[1]; if($mybb->usergroup['cancp'] != 1 && $load > $mybb->settings['load'] && $mybb->settings['load'] > 0) { archive_error($lang->error_loadlimit); } }
| // User is not an administrator and the load limit is higher than the limit, show an error archive_error($lang->error_loadlimit);
|