"; echo "window.location.replace(\"./index.html\")"; echo ""; exit; } $thisDate = date_create(); $thisTimestamp = date_timestamp_get($thisDate); if( isset($_SESSION["timestamp"]) ) { $oldTimestamp=$_SESSION["timestamp"]; $diff = $thisTimestamp - $oldTimestamp; if( $diff >= (60*5) ) { echo ""; exit; } echo "diff=" . $diff . "
"; } $_SESSION["timestamp"] = $thisTimestamp; var_dump($_SESSION); $mode = "ADD"; // ADD,MODIFY,DELETE $desc = "This will create a new News posting."; $id = 0; $thisNews = null; $val = null; if( isset( $_GET['mode'] ) ) { $mode = $_GET['mode']; } if( $mode == "DELETE" ) { // del mode echo "DELETE MODE"; // must have row id to fill form with if( isset( $_GET['id'] )) { $id = $_GET['id']; } if( $id == null ) { // is error, return to home page echo ""; } $thisNews = fetchNewsTable( $id ); var_dump( $thisNews ); if( count( $thisNews ) < 1 ) { // didn't find given row echo ""; } $desc = "This will DELETE an exisitng News posting."; } else if( $mode == "MODIFY" ) { // edit mode -> del info + add info // must have row id to fill form with if( isset( $_GET['id'] )) { $id = $_GET['id']; } if( $id == null ) { // is error, return to home page echo ""; } $thisNews = fetchNewsTable( $id ); if( count( $thisNews ) < 1 ) { // didn't find given row echo ""; } $desc = "This will MODIFY an exisitng News posting."; } else { // add mode $thisInfo[0] = array( "0", "Title", "default.png", "news", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nec facilisis sem, et luctus est. Donec nec tortor erat." ); } ?> egnAdmin - News Form

EquinoxGrid.Net - Admin - News Post





"; // echo "
"; echo "
$mode This News Post? ($id) "; echo ""; echo ""; echo ""; echo ""; echo "
"; ?>
Command