Пример #1
0
 function clearReport($post_id)
 {
     if (!$post_id || !$this->_admin || 0 != strcasecmp($_SERVER['REQUEST_METHOD'], 'POST')) {
         return '<ret>0</ret>';
     }
     $db = new DbAdmin();
     if (!$db->clearReport((int) $post_id)) {
         return '<ret>0</ret>';
     }
     return '<ret>1</ret>';
 }