, 2003-2006 // Raul Mateos , 2005-2006 // Load global vars require ("include/config.php"); check_login (); if ((give_acl($id_user, 0, "DM")==1) or (dame_admin($id_user)==1)) { require("godmode/db/times_incl.php"); $datos_rango3=0; $datos_rango2=0; $datos_rango1=0; # ADQUIRE DATA PASSED AS FORM PARAMETERS # ====================================== # Purge data using dates # Purge data using dates if (isset ($_POST["date_purge"])){ $from_date = mysql_real_esape_string ($_POST["date_purge"]); $query = sprintf ("DELETE FROM `tevento` WHERE `timestamp` < '%s'",$from_date); mysql_query ($query); } # End of get parameters block echo "

".$lang_label["dbmain_title"]." > "; echo $lang_label["db_purge_event"]."

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; $row = get_db_row_sql ("SELECT COUNT(*) AS total, MIN(timestamp) AS first_date, MAX(timestamp) AS latest_date FROM tevento"); echo "".$lang_label["total"].""; echo "".$row["total"]." ".$lang_label["records"]."
".$lang_label["first_date"]."".$row["first_date"]."
"; echo "".$lang_label["latest_date"].""; echo "".$row["latest_date"]."
"; ?>

" onClick="if (!confirm('')) return false;">