Percentage complete must be numeric.

'; return; } if( $percent < 0 || $percent > 100 ) { $error = '

Supply percentages between 0 and 100 (inclusive), please.

'; return; } // ETA must be sane if( ($eta < $now && $percent < 100) || ($eta'; return; } $mtdb->query( 'INSERT INTO status (published,eta,percentage,text) VALUES( NOW(), FROM_UNIXTIME(' . (int)$eta . '), '. (int)$percent . ', "' . mysql_real_escape_string($text) . '")' ); $_POST['update_percentage']=$_POST['update_eta']=$_POST['update_text']=''; $info = '

Statusbox updated successfully.

'; } if( isset($_POST['action']) && $_POST['action'] == 'create-update' ) handle_update_form(); adminhead('Status Box'); adminmenu('manage-statusbox.php'); /* Simple Presets, Select things said before */ $presets = $mtdb->getAll('SELECT COUNT(*) as c, percentage, text, CONCAT( percentage, "% - ", text ) as p FROM status GROUP BY p HAVING c>1 ORDER BY c DESC'); ?>

Update Status Box

Current Time
Estimated Time Of Next Update
Percentage Complete
Status Description

Status Box History

Status updates that have gone before.

getAll("SELECT published,eta,percentage,text FROM status ORDER BY published DESC limit 5"); ?> >
Published ETA Percentage Text
published; ?> eta; ?> percentage; ?> text); ?>