Up
';
// YES WE ARE!
if(isset($apiKey)){
$post['apiKey'] = 'Valid';
}
// ========================================================================================================================================
// Post Data
// ========================================================================================================================================
echo json_encode($post); // Time to show the world what we are made of!
// ========================================================================================================================================
// Functions
// ========================================================================================================================================
// This function determines what color bars we should be using!
function levels($perc, $dl, $wl){
if($perc < $dl){
$return = '';
}
elseif($perc < $wl) {
$return = '';
}
else {
$return = '';
}
return $return;
}
// Sec2Human is from the original Script
function sec2human($time) {
$seconds = $time%60;
$mins = floor($time/60)%60;
$hours = floor($time/60/60)%24;
$days = floor($time/60/60/24);
return $days > 0 ? $days . ' day'.($days > 1 ? 's' : '') : $hours.':'.$mins.':'.$seconds;
}
// ========================================================================================================================================
// Done
// ========================================================================================================================================
?>