示例#1
0
 static function getBadContentItem($type, $id, $reason)
 {
     $href = CGlobal::$referer_url;
     if (!User::is_login()) {
         return "not_login";
     }
     if ($type == "1") {
         if (BadContent::isNotice(User::$current->data['id'], 1, $id) == 0) {
             $arr_data = array('type' => 1, 'id_item' => $id, 'user_id' => User::$current->data['id'], 'user_name' => User::$current->data['user_name'], 'reason' => $reason, 'time_post' => TIME_NOW);
             DB::insert('bad_content', $arr_data);
             return "success_bad";
         } else {
             return "fail_bad";
         }
     } else {
         return "fail";
     }
 }