database_query("DELETE FROM bateworldcom_zips.announcementbox WHERE id='".$database->database_real_escape_string($_GET["id"])."'"); $ch = curl_init(); $rand=rand(1, 40000); // set url curl_setopt($ch, CURLOPT_URL, "https://bateworld.com/cronjobs/rotatingbox.php?s=".$rand); //return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // $output contains the output string $output = curl_exec($ch); // close curl resource to free up system resources curl_close($ch); } function general() { global $ads, $database, $task; if(isset($_POST['p'])) { $p = $_POST['p']; } elseif(isset($_GET['p'])) { $p = $_GET['p']; } else { $p = 1; } if(isset($_POST['usage'])) { $usage = $_POST['usage']; } elseif(isset($_GET['usage'])) { $usage = $_GET['usage']; } else { $usage = ""; } if(isset($_POST['from'])) { $from = $_POST['from']; } elseif(isset($_GET['from'])) { $from = $_GET['from']; } else { $from = ""; } ?>
| Image | Text | Link | ||
| ">Edit | &task=delete" onclick="return confirm('Are you sure you want to delete this?');">Delete |