'1000',
'status' => 'Awaiting Reply'
));
return $count['totalresults'];
}
function checkAdmins() {
$getStaff = localAPI('getstaffonline');
return $getStaff['totalresults'];
}
function showOverload() {
$overLoad = checkTicketCount();
$staff = checkAdmins();
$page = $_SERVER['PHP_SELF'];
$pos = strrpos($page, 'supporttickets.php');
if ($pos != false) {
if ($overLoad <= 9 && $staff <= 1) {
$show = '';
} elseif ($overLoad >= 10 && $staff >= 1) {
$show = '';
}
return $show;
}
}
add_hook('AdminAreaFooterOutput', 1, 'showOverload');