//Get my created pages link $pageIns = new BuckysPage(); $pageList = $pageIns->getPagesByUserId($userID); if (count($pageList) > 0) { foreach ($pageList as $pageD) { echo sprintf('<a href="/page.php?pid=%d" class="accountSubLinks">%s</a><br/>', $pageD['pageID'], $pageD['title']); } } ?> <!-- Control Panel--> <?php if (buckys_check_user_acl(USER_ACL_MODERATOR)) { ?> <?php $reportedItems = BuckysReport::getReportedObjectCount(); $pendingAds = BuckysAds::getPendingAdsCount(); ?> <h6>Moderator Panel</h6> <a href="/reported.php" class="accountSubLinks<?php echo $reportedItems > 0 ? 'Bold' : ''; ?> ">Reported Items<?php echo $reportedItems > 0 ? ' (' . $reportedItems . ')' : ''; ?> </a> <br/> <a href="/manage_ads.php" class="accountSubLinks<?php echo $pendingAds > 0 ? 'Bold' : '';
<?php } ?> <?php if (BuckysModerator::isModerator($userID, MODERATOR_FOR_TRADE)) { ?> <!-- Trade Moderator Links --> <?php } ?> <?php if (BuckysModerator::isModerator($userID, MODERATOR_FOR_FORUM)) { ?> <?php $reportedTopics = BuckysReport::getReportedObjectCount('topic'); $reportedReplies = BuckysReport::getReportedObjectCount('reply'); ?> <a href="/reported.php?type=topic" class="accountLinks">Moderator Panel</a> <a href="/reported.php?type=topic" class="accountSubLinks<?php echo $reportedTopics > 0 ? 'Bold' : ''; ?> ">Reported Topics<?php echo $reportedTopics > 0 ? ' (' . $reportedTopics . ')' : ''; ?> </a><br /> <a href="/reported.php?type=reply" class="accountSubLinks<?php echo $reportedReplies > 0 ? 'Bold' : ''; ?> ">Reported Replies<?php echo $reportedReplies > 0 ? ' (' . $reportedReplies . ')' : ''; ?>
buckys_redirect('/reported.php?type=' . $reportType, MSG_REPORTED_OBJECT_REMOVED); } else { if ($_REQUEST['action'] == 'approve-objects') { BuckysReport::approveObjects($_REQUEST['reportID'], $reportType, $moderatorType); buckys_redirect('/reported.php?type=' . $reportType, MSG_REPORTED_OBJECT_APPROVED); } else { if ($_REQUEST['action'] == 'ban-users') { BuckysReport::banUsers($_REQUEST['reportID'], $reportType, $moderatorType); buckys_redirect('/reported.php?type=' . $reportType, MSG_BAN_USERS); } } } exit; } $page = isset($_GET['page']) ? $_GET['page'] : 1; $totalCount = BuckysReport::getReportedObjectCount($reportType); //Init Pagination Class $pagination = new Pagination($totalCount, BuckysReport::$COUNT_PER_PAGE, $page); $page = $pagination->getCurrentPage(); $objects = BuckysReport::getReportedObject($reportType, $page, BuckysReport::$COUNT_PER_PAGE); buckys_enqueue_stylesheet('account.css'); buckys_enqueue_stylesheet('moderator.css'); buckys_enqueue_stylesheet('moderator.css'); buckys_enqueue_stylesheet('prettify.css'); buckys_enqueue_javascript('prettyprint/run_prettify.js?skin=default&'); buckys_enqueue_javascript('reported.js'); $BUCKYS_GLOBALS['content'] = 'reported'; //Reported Object Type Label $reportLabel = array('post' => array('Post', 'Posts'), 'comment' => array('Comment', 'Comments'), 'message' => array('Message', 'Messages'), 'topic' => array('Topic', 'Topics'), 'reply' => array('Reply', 'Replies')); $BUCKYS_GLOBALS['title'] = "Manage Reported " . $reportLabel[$reportType][1] . " - BuckysRoom"; require DIR_FS_TEMPLATE . $BUCKYS_GLOBALS['template'] . "/" . $BUCKYS_GLOBALS['layout'] . ".php";
buckys_add_message(MSG_REPORTED_OBJECT_REMOVED); } else { if ($_REQUEST['action'] == 'approve-objects') { BuckysReport::approveObjects($_REQUEST['reportID']); buckys_add_message(MSG_REPORTED_OBJECT_APPROVED); } else { if ($_REQUEST['action'] == 'ban-users') { $return = BuckysReport::banUsers($_REQUEST['reportID']); if ($return > 0) { buckys_add_message(MSG_BAN_USERS); } } } } buckys_redirect('/reported.php'); exit; } $page = isset($_GET['page']) ? $_GET['page'] : 1; $totalCount = BuckysReport::getReportedObjectCount(); //Init Pagination Class $pagination = new Pagination($totalCount, BuckysReport::$COUNT_PER_PAGE, $page); $page = $pagination->getCurrentPage(); $objects = BuckysReport::getReportedObject($page, BuckysReport::$COUNT_PER_PAGE); buckys_enqueue_stylesheet('account.css'); buckys_enqueue_stylesheet('moderator.css'); buckys_enqueue_javascript('reported.js'); $TNB_GLOBALS['content'] = 'reported'; //Reported Object Type Label $reportLabel = ['post' => ['Post', 'Posts'], 'comment' => ['Comment', 'Comments'], 'message' => ['Message', 'Messages'], 'topic' => ['Topic', 'Topics'], 'reply' => ['Reply', 'Replies']]; $TNB_GLOBALS['title'] = "Moderator Panel"; require DIR_FS_TEMPLATE . $TNB_GLOBALS['template'] . "/" . $TNB_GLOBALS['layout'] . ".php";