示例#1
0
 function Problems_Delete($id)
 {
     if (!$this->GetAllowed('CONTEST.MANAGE')) {
         return;
     }
     $r = db_row_value('tester_problems', '`id`=' . $id);
     iframe_destroy_content($r['description']);
     db_delete('tester_problems', '`id`=' . $id);
     db_delete('tester_tasks', '`problem_id`=' . $id);
 }
示例#2
0
 function Delete($id)
 {
     if ($id == '') {
         return false;
     }
     $desc = $this->ProblemDescription($id);
     iframe_destroy_content($desc);
     db_delete('tester_problems', "`id`={$id}");
     $q = db_select('tester_tasks', array('contest_id'), "`problem_id`={$id}");
     while ($r = db_row($q)) {
         $this->lib->Problem_Drop($r['contest_id'], $id);
     }
     WT_delete_solution_from_xpfs("`problem_id`={$id}");
     db_delete('tester_solutions', "`problem_id`={$id}");
     $this->FillData();
     return true;
 }
示例#3
0
 function DestroyValue()
 {
     iframe_destroy_content($this->GetValue());
 }