Esempio n. 1
0
 function request_check()
 {
     $adsense = new AdsenseAdmin();
     if (isset($_GET['page']) && $_GET['page'] == basename(__FILE__)) {
         if (isset($_POST['action'])) {
             switch ($_POST['action']) {
                 case 'add':
                     $adsense->add($_REQUEST);
                     break;
                 case 'toggle':
                     $adsense->toggle();
                     break;
                 case 'delete':
                     $adsense->burninate($_REQUEST['id']);
                     break;
                 case 'install':
                     $adsense->install();
                     break;
                 case 'adsearch':
                     $adsense->adsearch();
                     break;
                 default:
                     break;
             }
         }
     }
 }