示例#1
0
         }
         updateforum($fid);
         $logdb = array('type' => 'recycle', 'username1' => '', 'username2' => $windid, 'field1' => $fid, 'field2' => '', 'field3' => '', 'descrip' => 'recycle_topic_restore', 'timestamp' => $timestamp, 'ip' => $onlineip, 'affect' => '', 'forum' => $forum[$fid]['name'], 'reason' => '');
         writelog($logdb);
         refreshto("forumcp.php?action=edit&type=trecycle&fid={$fid}", 'operate_success');
     } elseif ($step == '3' && $forumset['recycle'] & 8) {
         PostCheck();
         $ids = array();
         $flag = false;
         $query = $db->query("SELECT * FROM pw_recycle WHERE fid=" . pwEscape($fid) . " AND pid='0' LIMIT 100");
         while ($rt = $db->fetch_array($query)) {
             $flag || ($flag = true);
             $ids[] = $rt['tid'];
         }
         if ($flag) {
             recycle($ids);
             refreshto("forumcp.php?action=edit&type=trecycle&fid={$fid}&step=3&verify={$verifyhash}", 'delete_recycle');
         } else {
             $logdb = array('type' => 'recycle', 'username1' => '', 'username2' => $windid, 'field1' => $fid, 'field2' => '', 'field3' => '', 'descrip' => 'recycle_topic_empty', 'timestamp' => $timestamp, 'ip' => $onlineip, 'affect' => '', 'forum' => $forum[$fid]['name'], 'reason' => '');
             writelog($logdb);
             refreshto("forumcp.php?action=edit&type=trecycle&fid={$fid}", 'operate_success');
         }
     }
 } elseif ($type == 'precycle' && $db_recycle) {
     require_once R_P . 'require/updateforum.php';
     require_once R_P . 'require/writelog.php';
     InitGP(array('ptable'));
     InitGP(array('step', 'page'), 'GP', 2);
     $db_perpage = 5;
     if (empty($step)) {
         InitGP(array('username', 'starttime', 'endtime', 't_type'));
示例#2
0
    }
    if (isset($_POST['reply'])) {
        print replyComment();
    }
    if (isset($_POST['profile_pic'])) {
        print changeProfilePic();
    }
    if (isset($_POST['changeInfo'])) {
        print changeInfo();
    }
    if (isset($_POST['del_user'])) {
        deleteUser();
    }
    if (isset($_POST['del_post'])) {
        print deletePost();
    }
    if (isset($_POST['del_comment'])) {
        print deleteComment();
    }
    if (isset($_POST['recycle'])) {
        print recycle();
    }
    if (isset($_POST['follow'])) {
        print follow();
    }
    if (isset($_POST['unfollow'])) {
        print follow();
    }
    print '</h3><button type="button" id="hide_btn" class="button">close</button>';
    print '</div>';
}