Ejemplo n.º 1
0
 function request_check()
 {
     $notify = new NotifyAdmin();
     if (isset($_GET['page']) && isset($_POST['action']) && $_GET['page'] == basename(__FILE__)) {
         if ('add' == $_POST['action']) {
             $notify->add($_REQUEST);
         } elseif ('delete' == $_POST['action']) {
             $notify->burninate($_REQUEST['id']);
         } elseif ('toggle' == $_POST['action']) {
             $notify->toggle();
         } elseif ('install' == $_POST['action']) {
             $notify->install();
         }
     }
     unset($notify);
 }