Exemplo n.º 1
0
 public static function EraseStatus()
 {
     global $db, $nw_uid, $tablepre, $timestamp, $adminid;
     if ($nw_uid) {
         if (isset($_GET['status_id'])) {
             $status_id = intval(trim($_GET['status_id']));
             $db->query("DELETE FROM {$tablepre}status WHERE stt_id='{$status_id}' LIMIT 1", 'UNBUFFERED');
             GlobalCore::AjaxReferer(NWDIR);
         } else {
             GlobalCore::nwHeader('Location: ' . NWDIR);
         }
     } else {
         GlobalCore::nwHeader('Location: ' . NWDIR);
     }
 }