public function checkManageAllEvents() { $this->blnManageAllEvents = false; if (isset($_SESSION['btUsername']) && isset($_SESSION['btPassword'])) { $member = new Member($this->MySQL); $consoleObj = new ConsoleOption($this->MySQL); $manageAllEventsCID = $consoleObj->findConsoleIDByName("Manage All Events"); if ($member->select($_SESSION['btUsername']) && $member->authorizeLogin($_SESSION['btPassword'])) { $consoleObj->select($manageAllEventsCID); $this->blnManageAllEvents = $member->hasAccess($consoleObj); } } return $this->blnManageAllEvents; }
* */ // Config File $prevFolder = ""; include $prevFolder . "_setup.php"; // Start Page $PAGE_NAME = "Sign Up - "; include $prevFolder . "themes/" . $THEME . "/_header.php"; $member = new Member($mysqli); $rankObj = new Rank($mysqli); $consoleObj = new ConsoleOption($mysqli); $memberAppObj = new MemberApp($mysqli); $appComponentObj = $memberAppObj->objAppComponent; $appSelectValueObj = new Basic($mysqli, "app_selectvalues", "appselectvalue_id"); $profileOptionObj = new ProfileOption($mysqli); if ($member->select($_SESSION['btUsername']) && $member->authorizeLogin($_SESSION['btPassword']) || $websiteInfo['memberregistration'] == 1) { echo "\n\t\t<script type='text/javascript'>\n\t\t\twindow.location = '" . $MAIN_ROOT . "'\n\t\t</script>\n\t"; exit; } $breadcrumbObj->setTitle("Sign Up"); $breadcrumbObj->addCrumb("Home", $MAIN_ROOT); $breadcrumbObj->addCrumb("Sign Up"); include $prevFolder . "include/breadcrumb.php"; include BASE_DIRECTORY . "include/signup_form.php"; if ($_POST['submit']) { $additionalSuccessInfo = "<br><br>You must wait to be approved by a member to become a full member on the website."; if ($memberAppObj->save() && $websiteInfo['memberapproval'] == 0) { $memberAppObj->addMember(); $additionalSuccessInfo = "<br><br>You may now log in to your account."; } if ($_POST['submit']) {
include_once "../../../classes/member.php"; include_once "../../../classes/rank.php"; include_once "../../../classes/squad.php"; // Start Page $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("View Your Squads"); $consoleObj->select($cID); $consoleInfo = $consoleObj->get_info_filtered(); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $arrSquadPrivileges = $squadObj->arrSquadPrivileges; $squadObj = new Squad($mysqli); $squadAppObj = new Basic($mysqli, "squadapps", "squadapp_id"); // Check Login $LOGIN_FAIL = true; if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) { $LOGIN_FAIL = false; $memberInfo = $member->get_info_filtered(); if ($squadObj->select($_POST['sID']) && $squadObj->memberHasAccess($memberInfo['member_id'], "acceptapps") && $squadAppObj->select($_POST['saID'])) { $squadInfo = $squadObj->get_info_filtered(); $squadAppInfo = $squadAppObj->get_info(); $squadRankList = $squadObj->getRankList(); if ($squadAppInfo['squad_id'] == $_POST['sID'] && $squadAppInfo['status'] == 0 && count($squadRankList) > 1) { if ($_POST['action'] == "accept") { $squadRankKey = count($squadRankList) - 1; $newMemberSquadRank = $squadRankList[$squadRankKey]; $squadAppObj->update(array("dateaction", "status", "squadmember_id"), array(time(), "1", $memberInfo['member_id'])); $arrColumns = array("squad_id", "member_id", "squadrank_id", "datejoined"); $arrValues = array($squadAppInfo['squad_id'], $squadAppInfo['member_id'], $newMemberSquadRank, time()); $squadObj->objSquadMember->addNew($arrColumns, $arrValues); $intViewSquadsCID = $consoleObj->findConsoleIDByName("View Your Squads");
<?php /* * Bluethrust Clan Scripts v4 * Copyright 2014 * * Author: Bluethrust Web Development * E-mail: support@bluethrust.com * Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ include_once "../../_setup.php"; include_once "../../classes/member.php"; $prevFolder = "../../"; include "twitter.php"; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $twitterObj = new Twitter($mysqli); if ($member->authorizeLogin($_SESSION['btPassword']) && $twitterObj->hasTwitter($member->get_info("member_id"))) { $twitterObj->delete(); echo "\n\t\t\n\t\t<div class='shadedBox' style='width: 75%; margin-left: auto; margin-right: auto'>\n\t\t\n\t\t\t<p class='main' style='padding: 20px'>\n\t\t\t\tSuccessfully disconnected your Twitter account!<br><br>\n\t\t\t\tTo complete the process you must go to the <a href='https://twitter.com/settings/applications' target='_blank'>Application Settings</a> page in your Twitter account and click the revoke access button.\n\t\t\t</p>\n\t\t\n\t\t</div>\n\t\n\t"; }
* License: http://www.bluethrust.com/license.php * */ include_once "../../../_setup.php"; include_once "../../../classes/member.php"; include_once "../../../classes/rank.php"; include_once "../../../classes/news.php"; // Start Page $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage News"); $consoleObj->select($cID); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $memberInfo = $member->get_info_filtered(); $commentObj = new Basic($mysqli, "comments", "comment_id"); $newsObj = new News($mysqli); if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj) && $commentObj->select($_POST['commentID'])) { $commentInfo = $commentObj->get_info_filtered(); $newsObj->select($commentInfo['news_id']); $newsInfo = $newsObj->get_info_filtered(); $member->select($commentInfo['member_id']); $posterInfo = $member->get_info_filtered(); $logMessage = "Deleted comment by " . $member->getMemberLink() . " on news post: <b><a href='" . $MAIN_ROOT . "news/viewpost.php?nID=" . $newsInfo['news_id'] . "'>" . $newsInfo['postsubject'] . "</a></b>"; $member->select($memberInfo['member_id']); $member->logAction($logMessage); $commentObj->delete(); $arrComments = $newsObj->getComments(); $commentCount = $newsObj->countComments(); } include "../../../news/comments.php"; echo "\n\t<script type='text/javascript'>\n\t\t\$(document).ready(function() {\n\t\t\t\$('#commentCount').html('" . $commentCount . "');\n\t\t});\n\t</script>\n";
<?php /* * Bluethrust Clan Scripts v4 * Copyright 2014 * * Author: Bluethrust Web Development * E-mail: support@bluethrust.com * Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ $prevFolder = "../"; include "../_setup.php"; $memberObj = new Member($mysqli); if ($memberObj->select($_SESSION['btUsername']) && $memberObj->authorizeLogin($_SESSION['btPassword'])) { $memberObj->update(array("loggedin"), array(0)); } if (isset($_COOKIE['btUsername']) || isset($_COOKIE['btPassword'])) { setcookie("btUsername", "", time() - 3600, $MAIN_ROOT); setcookie("btPassword", "", time() - 3600, $MAIN_ROOT); } $_SESSION['btPassword'] = ""; $_SESSION['btUsername'] = ""; $_SESSION['btRememberMe'] = ""; echo "\n<script type='text/javascript'>\nwindow.location = '" . $MAIN_ROOT . "';\n</script>\n";
if (!isset($member) || !isset($eventObj) || substr($_SERVER['PHP_SELF'], -strlen("manage.php")) != "manage.php") { include_once "../../../_setup.php"; include_once "../../../classes/member.php"; include_once "../../../classes/event.php"; // Start Page $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage My Events"); $consoleObj->select($cID); $consoleInfo = $consoleObj->get_info_filtered(); $consoleTitle = $consoleInfo['pagetitle']; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $eventObj = new Event($mysqli); $memberInfo = $member->get_info(); // Check Login if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj) && $eventObj->select($_GET['eID']) && ($eventObj->memberHasAccess($memberInfo['member_id'], "eventpositions") || $memberInfo['rank_id'] == 1)) { $eventInfo = $eventObj->get_info_filtered(); } else { exit; } } else { $memberInfo = $member->get_info(); $consoleObj->select($consoleObj->findConsoleIDByName("Manage My Events")); if (!$member->hasAccess($consoleObj) || !$eventObj->memberHasAccess($memberInfo['member_id'], "eventpositions")) { exit; } } echo "\n<table class='formTable' style='border-spacing: 0px; margin-top: 0px'>\n\t<tr><td colspan='5' class='dottedLine'></td></tr>\n"; $counter = 0; $x = 1; $eventObj->objEventPosition->setCategoryKeyValue($eventInfo['event_id']);
* Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ include_once "../../_setup.php"; include_once "../../classes/member.php"; include_once "../../classes/rank.php"; include_once "../../classes/tournament.php"; $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage Tournaments"); $consoleObj->select($cID); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $tournamentObj = new Tournament($mysqli); $tID = $_POST['tID']; $arrMembers = array(); echo $tID; if ($member->authorizeLogin($_SESSION['btPassword']) && $tournamentObj->select($tID) && $member->hasAccess($consoleObj)) { $memberInfo = $member->get_info(); $tmemberID = $tournamentObj->get_info("member_id"); if ($memberInfo['member_id'] == $tmemberID || $memberInfo['rank_id'] == "1") { $tournamentObj->delete(); echo "deleted"; } } else { echo "no"; } ?>
* Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ include "../../../_setup.php"; include_once "../../../classes/member.php"; include_once "../../../classes/rank.php"; include_once "../../../classes/consoleoption.php"; include_once "../../../classes/event.php"; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $eventObj = new Event($mysqli); $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage My Events"); $consoleObj->select($cID); if ($member->authorizeLogin($_SESSION['btPassword']) && $eventObj->objEventPosition->select($_POST['posID'])) { $eventID = $eventObj->objEventPosition->get_info("event_id"); $memberInfo = $member->get_info_filtered(); $eventPositionInfo = $eventObj->objEventPosition->get_info_filtered(); if ($memberInfo['rank_id'] == 1 || $member->hasAccess($consoleObj) && $eventObj->select($eventID) && ($eventObj->memberHasAccess($memberInfo['member_id'], "eventpositions") || $memberInfo['rank_id'] == 1)) { if ($_POST['confirmDelete'] == 1) { $eventObj->objEventPosition->delete(); $mysqli->query("UPDATE " . $dbprefix . "events_members SET position_id = '0' WHERE position_id = '" . $eventPositionInfo['position_id'] . "'"); $_GET['eID'] = $eventID; include "manageposition_main.php"; } else { echo "\n\t\t\t\n\t\t\t\t<div id='confirmDeleteMessage' style='display: none'>\n\t\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\t\tAre you sure you want to delete the position: <b>" . $eventPositionInfo['name'] . "</b>?<br><br>\n\t\t\t\t\t\tAll members with this position will lose this position once it is deleted.\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\n\t\t\t\t\n\t\t\t\t<script type='text/javascript'>\n\n\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\n\t\t\t\t\t\t\$('#confirmDeleteMessage').dialog({\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttitle: 'Manage Event Positions - Confirm Delete',\n\t\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\t\twidth: 450,\n\t\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t'Yes': function() {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\$('#positionListDiv').fadeOut(250);\n\t\t\t\t\t\t\t\t\t\$('#loadingSpiral').show();\n\t\t\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/events/include/manageposition_delete.php', { posID: '" . $eventPositionInfo['position_id'] . "', confirmDelete: 1 }, function(data) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\$('#positionListDiv').html(data);\n\t\t\t\t\t\t\t\t\t\t\$('#positionListDiv').fadeIn(250);\n\t\t\t\t\t\t\t\t\t\t\$('#loadingSpiral').hide();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t'Cancel': function() {\n\t\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\t\t\t\t\t\n\n\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t</script>\n\t\t\t\n\t\t\t"; } } }
<?php include_once "../../_config.php"; include_once "../../classes/btmysql.php"; include_once "../../classes/member.php"; $mysqli = new btmysql($dbhost, $dbuser, $dbpass, $dbname); $mysqli->set_tablePrefix($dbprefix); $member = new Member($mysqli); $websiteInfoObj = new Basic($mysqli, "websiteinfo", "websiteinfo_id"); $member->select($_POST['user']); if ($member->authorizeLogin($_POST['pass'], 1) && $member->get_info("rank_id") == "1") { $memberInfo = $member->get_info_filtered(); $websiteInfoObj->select(1); $websiteInfoObj->update(array("theme"), array($_POST['themeName'])); echo "\n\t\t\n\t\t\t<script type='text/javascript'>\n\t\t\t\n\t\t\t\t\$.post('../themes/" . $_POST['themeName'] . "/menuimport_default.php');\n\t\t\t\n\t\t\t</script>\n\t\t\n\t\t"; } else { if (!$member->select($_POST['user'])) { echo "Unable to select user " . $_POST['user'] . "<br>"; } if (!$member->authorizeLogin($_POST['pass'], 1)) { echo "Not Authorized<br>"; } if (!$member->get_info("rank_id") == "1") { echo "Not Admin<br>"; } }
$prevFolder = "../"; include $prevFolder . "_setup.php"; include_once $prevFolder . "classes/member.php"; include_once $prevFolder . "classes/poll.php"; $consoleObj = new ConsoleOption($mysqli); $pollObj = new Poll($mysqli); $member = new Member($mysqli); $arrReturn = array("result" => "fail"); $pollOptionSelector = "poll_" . $_POST['pollID']; if ($pollObj->select($_POST['pollID'])) { $pollInfo = $pollObj->get_info_filtered(); $pollObj->objAccess->arrAccessFor = array("keyName" => "poll_id", "keyValue" => $pollInfo['poll_id']); $blnVote = false; $member->select($_SESSION['btUsername']); $memberID = ""; if ($pollInfo['accesstype'] == "members" && $member->authorizeLogin($_SESSION['btPassword'])) { $memberID = $member->get_info("member_id"); $blnVote = true; } elseif ($pollInfo['accesstype'] == "memberslimited" && $member->authorizeLogin($_SESSION['btPassword']) && $pollObj->hasAccess($member)) { $memberID = $member->get_info("member_id"); $blnVote = true; } elseif ($pollInfo['accesstype'] == "public") { $memberID = $member->authorizeLogin($_SESSION['btPassword']) ? $member->get_info("member_id") : ""; $blnVote = true; } if ($blnVote) { foreach (json_decode($_POST['pollOptionID'], true) as $pollOptionID) { $pollObj->objPollOption->select($pollOptionID); $pollOptionInfo = $pollObj->objPollOption->get_info_filtered(); $arrReturn = $pollObj->vote($memberID, $pollOptionInfo); }
$prevFolder = "../../"; $PAGE_NAME = "Tournaments - " . $consoleTitle . " - "; $dispBreadCrumb = "<a href='" . $MAIN_ROOT . "'>Home</a> > <a href='" . $MAIN_ROOT . "members'>My Account</a> > " . $consoleTitle; $EXTERNAL_JAVASCRIPT .= "\n<script type='text/javascript' src='" . $MAIN_ROOT . "members/js/console.js'></script>\n<script type='text/javascript' src='" . $MAIN_ROOT . "members/js/main.js'></script>\n"; include "../../themes/" . $THEME . "/_header.php"; echo "\n<div class='breadCrumbTitle' id='breadCrumbTitle'>{$consoleTitle}</div>\n<div class='breadCrumb' id='breadCrumb' style='padding-top: 0px; margin-top: 0px'>\n{$dispBreadCrumb}\n</div>\n"; if (isset($_GET['match'])) { echo "\n\t<p align='right' style='margin-bottom: 20px; margin-right: 20px;'>« <a href='" . $MAIN_ROOT . "members/tournaments/managetournament.php?tID=" . $tID . "&pID=ManageMatches'>Go Back</a></p>\n\t"; } elseif ($_GET['pID'] == "ManagePools" && isset($_GET['poolID'])) { echo "\n\t<p align='right' style='margin-bottom: 20px; margin-right: 20px;'>« <a href='" . $MAIN_ROOT . "members/tournaments/managetournament.php?tID=" . $tID . "&pID=ManagePools'>Go Back</a></p>\n\t"; } else { echo "\n\t<p align='right' style='margin-bottom: 20px; margin-right: 20px;'>« <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&select=" . $tID . "'>Go Back</a></p>\n\t"; } // Check Login $LOGIN_FAIL = true; if ($member->authorizeLogin($_SESSION['btPassword']) && $tournamentObj->select($tID)) { $tournamentInfo = $tournamentObj->get_info_filtered(); $memberInfo = $member->get_info_filtered(); if ($memberInfo['member_id'] == $tournamentInfo['member_id'] || $memberInfo['rank_id'] == "1" || $tournamentObj->isManager($memberInfo['member_id'])) { switch ($pID) { case "manageplayers": include "manageplayers.php"; break; case "manageteams": include "manageteams.php"; break; case "managepools": include "managepools.php"; break; case "deletetournament": if ($memberInfo['member_id'] == $tournamentInfo['member_id']) {
* Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ include "../../../_setup.php"; include_once "../../../classes/member.php"; include_once "../../../classes/event.php"; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $checkTerm = filterText($_GET['term']); $eventObj = new Event($mysqli); $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage My Events"); $consoleObj->select($cID); if ($member->authorizeLogin($_SESSION['btPassword']) && $eventObj->select($_SESSION['btEventID'])) { $eventID = $eventObj->get_info("event_id"); $eventMID = $eventObj->get_info("member_id"); $memberInfo = $member->get_info_filtered(); if ($member->hasAccess($consoleObj) && ($eventObj->memberHasAccess($memberInfo['member_id'], "invitemembers") || $memberInfo['rank_id'] == 1)) { $arrInvitedMembers = $eventObj->getInvitedMembers(true); $arrInvitedMembers = array_merge($arrInvitedMembers, $_SESSION['btInviteList']); $arrACMemberList = array(); $sqlInvitedMembers = "('" . implode("','", $arrInvitedMembers) . "')"; $memberoptions = "<option value=''>Select</option>"; $result = $mysqli->query("SELECT m.username,m.member_id,r.ordernum,r.name FROM " . $dbprefix . "members m, " . $dbprefix . "ranks r WHERE m.rank_id = r.rank_id AND m.member_id NOT IN " . $sqlInvitedMembers . " AND m.disabled = '0' AND m.rank_id != '1' AND m.member_id != '" . $eventMID . "' AND m.username LIKE '" . $checkTerm . "%' ORDER BY r.ordernum DESC"); while ($row = $result->fetch_assoc()) { $arrACMemberList[] = array("id" => $row['member_id'], "value" => filterText($row['username'])); } echo json_encode($arrACMemberList); }
* * Author: Bluethrust Web Development * E-mail: support@bluethrust.com * Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ include "../../../../_setup.php"; include_once "../../../../classes/member.php"; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $categoryObj = new BasicOrder($mysqli, "forum_category", "forumcategory_id"); $categoryObj->set_assocTableName("forum_board"); $categoryObj->set_assocTableKey("forumboard_id"); $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage Forum Categories"); $consoleObj->select($cID); if ($member->authorizeLogin($_SESSION['btPassword']) && $categoryObj->select($_POST['catID'])) { $categoryInfo = $categoryObj->get_info_filtered(); $arrBoards = $categoryObj->getAssociateIDs(); if (count($arrBoards) > 0) { echo "\n\t\t\n\t\t\t<div id='deleteMessage' style='display: none'>\n\t\t\t\n\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\tThere are currently boards with the category, <b>" . $categoryInfo['name'] . "</b>. You must move these boards to a different category before deleting.\n\t\t\t\t</p>\n\t\t\t\n\t\t\t</div>\n\t\t\t\n\t\t\t<script type='text/javascript'>\n\t\t\t\n\t\t\t\t\$('#deleteMessage').dialog({\n\t\t\t\t\n\t\t\t\t\ttitle: 'Delete Forum Category',\n\t\t\t\t\twidth: 400,\n\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\tresizable: false,\n\t\t\t\t\tmodal: true,\n\t\t\t\t\tshow: 'scale',\n\t\t\t\t\tbuttons: {\n\t\t\t\t\t\n\t\t\t\t\t\t'OK': function() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t});\n\t\t\t\n\t\t\t</script>\n\t\t\n\t\t"; } elseif (count($arrBoards) == 0 && !isset($_POST['confirm'])) { echo "\n\t\t\n\t\t\t<div id='deleteMessage' style='display: none'>\n\t\t\t\n\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\tAre you sure you want to delete the category, <b>" . $categoryInfo['name'] . "</b>?\n\t\t\t\t</p>\n\t\t\t\n\t\t\t</div>\n\t\t\t\n\t\t\t<script type='text/javascript'>\n\t\t\t\n\t\t\t\t\$('#deleteMessage').dialog({\n\t\t\t\t\n\t\t\t\t\ttitle: 'Delete Forum Category',\n\t\t\t\t\twidth: 400,\n\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\tresizable: false,\n\t\t\t\t\tmodal: true,\n\t\t\t\t\tshow: 'scale',\n\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\n\t\t\t\t\t\t'Yes': function() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\$('#loadingSpiral').show();\n\t\t\t\t\t\t\t\$('#categoryList').fadeOut(250);\n\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/include/forum/include/delete_category.php', { catID: '" . $_POST['catID'] . "', confirm: 1 }, function(data) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$('#categoryList').html(data);\n\t\t\t\t\t\t\t\t\$('#loadingSpiral').hide();\n\t\t\t\t\t\t\t\t\$('#categoryList').fadeIn(250);\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'Cancel': function() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t});\n\t\t\t\n\t\t\t</script>\n\t\t\n\t\t\n\t\t"; } elseif (count($arrBoards) == 0 && isset($_POST['confirm'])) { $categoryObj->delete(); $categoryObj->resortOrder(); include "main_managecategory.php"; } }
include_once "../../../../../_setup.php"; include_once "../../../../../classes/member.php"; include_once "../../../../../classes/customform.php"; $consoleObj = new ConsoleOption($mysqli); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $cID = $consoleObj->findConsoleIDByName("Add Custom Form Page"); $consoleObj->select($cID); $checkAccess1 = $member->hasAccess($consoleObj); $cID = $consoleObj->findConsoleIDByName("Manage Custom Form Pages"); $consoleObj->select($cID); $checkAccess2 = $member->hasAccess($consoleObj); $customFormObj = new CustomForm($mysqli); $appComponentObj = $customFormObj->objComponent; $componentIndex = $_POST['whichComponent']; if ($member->authorizeLogin($_SESSION['btPassword']) && ($checkAccess1 || $checkAccess2) && is_numeric($componentIndex)) { $countErrors == 0; $dispError = ""; if ($_POST['editComponent']) { $arrTypes = array("input", "largeinput", "select", "multiselect", "separator"); // Check Name if (trim($_POST['componentName']) == "") { $countErrors++; $dispError .= " <b>·</b> Component name may not be blank.<br>"; } // Check Component Type if (!in_array($_POST['componentType'], $arrTypes)) { $countErrors++; $dispError .= " <b>·</b> You selected an invalid component type.<br>"; } $intRequired = 1;
* License: http://www.bluethrust.com/license.php * */ include "../../../_setup.php"; include_once "../../../classes/member.php"; include_once "../../../classes/rank.php"; include_once "../../../classes/consoleoption.php"; include_once "../../../classes/event.php"; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $objMember = new Member($mysqli); $eventObj = new Event($mysqli); $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage My Events"); $consoleObj->select($cID); if ($member->authorizeLogin($_SESSION['btPassword']) && $eventObj->objEventMessage->select($_POST['messageID'])) { $eventID = $eventObj->objEventMessage->get_info("event_id"); $eventObj->select($eventID); $eventInfo = $eventObj->get_info_filtered(); $memberInfo = $member->get_info_filtered(); if (trim($_POST['commentMessage']) != "" && $member->hasAccess($consoleObj) && ($eventObj->memberHasAccess($memberInfo['member_id'], "postmessages") || $memberInfo['rank_id'] == 1)) { $eventObj->objEventMessageComment->addNew(array("eventmessage_id", "member_id", "dateposted", "comment"), array($_POST['messageID'], $memberInfo['member_id'], time(), $_POST['commentMessage'])); } if (in_array($memberInfo['member_id'], $eventObj->getInvitedMembers(true)) || $memberInfo['member_id'] == $eventInfo['member_id'] || $memberInfo['rank_id'] == 1) { $result = $mysqli->query("SELECT * FROM " . $dbprefix . "eventmessage_comment WHERE eventmessage_id = '" . $_POST['messageID'] . "' ORDER BY dateposted ASC"); while ($row = $result->fetch_assoc()) { if ($objMember->select($row['member_id'])) { $memInfo = $objMember->get_info_filtered(); if ($memInfo['profilepic'] == "") { $dispProfilePic = $MAIN_ROOT . "themes/" . $THEME . "/images/defaultprofile.png"; } else {
* * License: http://www.bluethrust.com/license.php * */ if (!defined("SHOW_MANAGERLIST")) { include_once "../../../_setup.php"; include_once "../../../classes/member.php"; include_once "../../../classes/rank.php"; include_once "../../../classes/tournament.php"; $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage Tournaments"); $consoleObj->select($cID); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $tournamentObj = new Tournament($mysqli); if (!$member->authorizeLogin($_SESSION['btPassword']) || !$tournamentObj->select($_POST['tID']) || $tournamentObj->get_info("member_id") != $memberInfo['member_id'] || !$member->hasAccess($consoleObj)) { exit; } } $arrManagers = $tournamentObj->getManagers(); foreach ($arrManagers as $tManagerID => $tMemberID) { $member->select($tMemberID); echo "<div class='mttPlayerSlot main'>" . $member->getMemberLink() . "<div class='mttDeletePlayer'><a href='javascript:void(0)' onclick=\"deleteManager('" . $tManagerID . "')\">X</a></div></div>"; } if (count($arrManagers) == 0) { echo "\n\t\t<div class='shadedBox' style='width: 75%; margin-top: 10px; margin-left: auto; margin-right: auto'>\n\t\t\t<p class='main' align='center'>\n\t\t\t\t<i>No managers assigned to this tournament.</i>\n\t\t\t</p>\n\t\t</div>\n\t"; } $member->select($memberInfo['member_id']); ?>
*/ include_once "../../../_setup.php"; include_once "../../../classes/member.php"; include_once "../../../classes/rank.php"; include_once "../../../classes/tournament.php"; include_once "../../../classes/squad.php"; $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage Tournaments"); $consoleObj->select($cID); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $countErrors = 0; $dispError = ""; $tournamentObj = new Tournament($mysqli); $squadObj = new Squad($mysqli); if ($member->authorizeLogin($_SESSION['btPassword']) && $squadObj->select($_POST['squadID']) && $tournamentObj->objTeam->select($_POST['teamID']) && $member->hasAccess($consoleObj)) { $memberInfo = $member->get_info_filtered(); $teamInfo = $tournamentObj->objTeam->get_info_filtered(); $tournamentObj->select($teamInfo['tournament_id']); $tournamentInfo = $tournamentObj->get_info(); if ($tournamentInfo['member_id'] == $memberInfo['member_id'] || $memberInfo['rank_id'] == 1 || $tournamentObj->isManager($memberInfo['member_id'])) { $arrSquadMembers = $squadObj->getMemberListSorted(); echo "\n\t\t\t<input type='hidden' value='" . $squadObj->get_info_filtered("name") . "' id='squadName'>\n\t\t\t<div id='squadMemberList' style='max-height: 200px; overflow-y: auto'>\n\t\t\t<table class='formTable' style='width: 95%'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td class='main' align='center'>\n\t\t\t\t\t\t<a href='javascript:void(0)' id='checkAllLink'>Check All</a>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t"; foreach ($arrSquadMembers as $value) { if ($member->select($value)) { $tempMemberInfo = $member->get_info_filtered(); echo "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='formLabel'>" . $tempMemberInfo['username'] . "</td>\n\t\t\t\t\t\t<td class='main' align='center'><input type='checkbox' value='" . $tempMemberInfo['member_id'] . "'></td>\n\t\t\t\t\t</tr>\n\t\t\t\t"; } } $member->select($memberInfo['member_id']); echo "\n\t\t\t</table>\n\t\t\t</div>\n\t\t\t\n\t\t\t<script type='text/javascript'>\n\t\t\t\n\t\t\t\tvar intCheckAll = 1;\n\t\t\t\n\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\$('#checkAllLink').click(function() {\n\t\t\t\t\t\n\t\t\t\t\t\t\$('#squadMemberList input[type=checkbox]').each(function() {\n\t\t\t\t\t\t\tif(intCheckAll == 1) {\n\t\t\t\t\t\t\t\t\$(this).attr('checked', true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\$(this).attr('checked', false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(intCheckAll == 1) {\n\t\t\t\t\t\t\tintCheckAll = 0;\n\t\t\t\t\t\t\t\$('#checkAllLink').html('Uncheck All');\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tintCheckAll = 1;\n\t\t\t\t\t\t\t\$('#checkAllLink').html('Check All');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t});\n\t\t\t\n\t\t\t</script>\n\t\t\t\n\t\t";
<?php /* * Bluethrust Clan Scripts v4 * Copyright 2014 * * Author: Bluethrust Web Development * E-mail: support@bluethrust.com * Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ include_once "../../../../_setup.php"; include_once "../../../../classes/member.php"; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $consoleObj = new ConsoleOption($mysqli); $manageClanCID = $consoleObj->findConsoleIDByName("Diplomacy: Manage Clans"); $consoleObj->select($manageClanCID); $diplomacyClanObj = new Basic($mysqli, "diplomacy", "diplomacy_id"); if ($member->authorizeLogin($_SESSION['btPassword']) && $diplomacyClanObj->select($_POST['dClanID']) && $member->hasAccess($consoleObj)) { $dClanName = $diplomacyClanObj->get_info_filtered("clanname"); if (isset($_POST['confirmDelete'])) { $diplomacyClanObj->delete(); $member->logAction("Deleted " . $dClanName . " from the diplomacy page."); include "main_manageclans.php"; } else { echo "<p class='main' align='center'>Are you sure you want to delete " . $dClanName . " from the diplomacy page?</p>"; } }
<?php /* * Bluethrust Clan Scripts v4 * Copyright 2014 * * Author: Bluethrust Web Development * E-mail: support@bluethrust.com * Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ include_once "../../../../_setup.php"; $consoleObj = new ConsoleOption($mysqli); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $memberInfo = $member->get_info_filtered(); $newMemberObj = new Member($mysqli); $cID = $consoleObj->findConsoleIDByName("View Member Applications"); $consoleObj->select($cID); $memberAppObj = new MemberApp($mysqli); if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj) && $memberAppObj->select($_POST['mAppID']) && $memberAppObj->get_info("memberadded") == 1) { $memberAppUser = $memberAppObj->get_info_filtered("username"); if (!$memberAppObj->delete()) { echo "\n\t\t\t<div id='memberAppMessage' style='display: none'>\n\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\tUnable to remove member application! Please contact the website administrator.\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\n\t\t\t<script type='text/javascript'>\n\t\t\n\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\n\t\t\t\t\t\$('#memberAppMessage').dialog({\n\t\t\t\t\t\n\t\t\t\t\t\ttitle: 'Remove Member Application - Error',\n\t\t\t\t\t\twidth: 400,\n\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t'OK': function() {\n\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t});\n\t\t\t\n\t\t\t</script>\n\t\t"; } else { $member->logAction("Removed the member application for " . $memberAppUser . "."); } include "memberapplist.php"; }
* License: http://www.bluethrust.com/license.php * */ include_once "../../../_setup.php"; include_once "../../../classes/member.php"; include_once "../../../classes/rank.php"; include_once "../../../classes/tournament.php"; $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage Tournaments"); $consoleObj->select($cID); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $countErrors = 0; $dispError = ""; $tournamentObj = new Tournament($mysqli); if ($member->authorizeLogin($_SESSION['btPassword']) && $tournamentObj->objTeam->select($_POST['teamID']) && $tournamentObj->objTournamentPool->select($_POST['poolID']) && $tournamentObj->objTournamentPool->objTournamentPoolMatch->select($_POST['poolTeamID']) && $member->hasAccess($consoleObj)) { $memberInfo = $member->get_info(); $teamInfo = $tournamentObj->objTeam->get_info_filtered(); $tournamentObj->select($teamInfo['tournament_id']); $tournamentInfo = $tournamentObj->get_info_filtered(); $poolInfo = $tournamentObj->objTournamentPool->get_info(); $poolTeamInfo = $tournamentObj->objTournamentPool->objTournamentPoolMatch->get_info(); $dispTeamName = $tournamentObj->getPlayerName(); $tmemberID = $tournamentInfo['member_id']; if (($memberInfo['member_id'] == $tmemberID || $memberInfo['rank_id'] == "1" || $tournamentObj->isManager($memberInfo['member_id'])) && $poolInfo['tournament_id'] == $teamInfo['tournament_id'] && $poolTeamInfo['tournament_id'] == $teamInfo['tournament_id']) { // Check Match Score if (!is_numeric($_POST['teamScore']) || !is_numeric($_POST['opponentScore'])) { $countErrors++; $dispError .= " <b>·</b> Scores must be a numeric value."; } // Check Winner
<?php /* * Bluethrust Clan Scripts v4 * Copyright 2014 * * Author: Bluethrust Web Development * E-mail: support@bluethrust.com * Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ include_once "../../_setup.php"; include_once "../../classes/member.php"; $prevFolder = "../../"; include "facebook.php"; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $fbObj = new Facebook($mysqli); if ($member->authorizeLogin($_SESSION['btPassword']) && $fbObj->hasFacebook($member->get_info("member_id"))) { $fbObj->accessToken = $fbObj->get_info_filtered("access_token"); $fbObj->getFBInfo(); $fbObj->delete(); echo "\n\t\t\n\t\t<div class='shadedBox' style='width: 50%; margin-left: auto; margin-right: auto'>\n\t\t\n\t\t\t<p align='center' class='main' style='padding: 20px'>\n\t\t\t\tSuccessfully disconnected your Facebook account!<br><br>\n\t\t\t\t<a href='" . $MAIN_ROOT . "members'>Return to My Account</a>\n\t\t\t</p>\n\t\t\n\t\t</div>\n\t\n\t"; }
$checkAccess1 = $member->hasAccess($consoleObj); $cID = $consoleObj->findConsoleIDByName("Manage Custom Form Pages"); $consoleObj->select($cID); $checkAccess2 = $member->hasAccess($consoleObj); $customFormObj = new CustomForm($mysqli); $appComponentObj = $customFormObj->objComponent; if ($_POST['whichValue'] == "" || !is_numeric($_POST['whichValue'])) { $componentIndex = $_SESSION['btFormComponentCount']; $tempArr = $_SESSION['btFormComponent'][$componentIndex]['cOptions']; asort($tempArr); } else { $componentIndex = $_POST['whichValue']; $tempArr = $_SESSION['btFormComponentTempSelectValues']; asort($tempArr); } if ($member->authorizeLogin($_SESSION['btPassword']) && ($checkAccess1 || $checkAccess2)) { $countErrors = 0; if ($_POST['action'] == "add") { if (trim($_POST['optionValue']) == "") { $countErrors++; } if ($countErrors == 0 && !isset($_POST['whichValue'])) { $_SESSION['btFormComponentTempSelectValues'] = array(); $tempArr = $_SESSION['btFormComponent'][$componentIndex]['cOptions']; $tempArr[] = $_POST['optionValue']; asort($tempArr); $_SESSION['btFormComponent'][$componentIndex]['cOptions'] = $tempArr; } elseif ($countErrors == 0 && isset($_POST['whichValue'])) { $_SESSION['btFormComponentTempSelectValues'][] = $_POST['optionValue']; $tempArr = $_SESSION['btFormComponentTempSelectValues']; asort($tempArr);
include_once "../../../classes/member.php"; include_once "../../../classes/rank.php"; include_once "../../../classes/consoleoption.php"; include_once "../../../classes/event.php"; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $objMember = new Member($mysqli); $eventObj = new Event($mysqli); $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage My Events"); $consoleObj->select($cID); if ($_POST['comment'] == 1) { $checkMessage = $eventObj->objEventMessageComment->select($_POST['messageID']); $objMessage = $eventObj->objEventMessageComment; $eventMessageID = $objMessage->get_info("eventmessage_id"); $eventObj->objEventMessage->select($eventMessageID); $eventID = $eventObj->objEventMessage->get_info("event_id"); } else { $checkMessage = $eventObj->objEventMessage->select($_POST['messageID']); $objMessage = $eventObj->objEventMessage; $eventID = $objMessage->get_info("event_id"); } if ($member->authorizeLogin($_SESSION['btPassword']) && $checkMessage) { $eventObj->select($eventID); $eventInfo = $eventObj->get_info_filtered(); $memberInfo = $member->get_info_filtered(); if ($member->hasAccess($consoleObj) && $eventObj->memberHasAccess($memberInfo['member_id'], "managemessages") || $memberInfo['rank_id'] == 1) { $objMessage->delete(); } include "eventmessages.php"; }
* Author: Bluethrust Web Development * E-mail: support@bluethrust.com * Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ include_once "../../../../_setup.php"; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $medalObj = new Medal($mysqli); $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Manage Medals"); $consoleObj->select($cID); $_GET['cID'] = $cID; if ($member->authorizeLogin($_SESSION['btPassword'])) { $memberInfo = $member->get_info_filtered(); if ($member->hasAccess($consoleObj) && $medalObj->select($_POST['itemID'])) { define("LOGGED_IN", true); if ($_POST['confirm'] == 1) { $medalObj->delete(); $objManageList = new btOrderManageList($medalObj); $objManageList->strMainListLink = BASE_DIRECTORY . "members/include/admin/medals/main.php"; include $objManageList->strMainListLink; include BASE_DIRECTORY . "members/console.managelist.list.php"; } else { $medalName = $medalObj->get_info_filtered("name"); echo "<p align='center'>Are you sure you want to delete the medal <b>" . $medalName . "</b>?</p>"; } } elseif (!$medalObj->select($_POST['itemID'])) { echo "<p align='center'>Unable find the selected medal. Please try again or contact the website administrator.</p>";
/* * Bluethrust Clan Scripts v4 * Copyright 2014 * * Author: Bluethrust Web Development * E-mail: support@bluethrust.com * Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ include_once "../../../../_setup.php"; include_once "../../../../classes/member.php"; include_once "../../../../classes/poll.php"; // Start Page $consoleObj = new ConsoleOption($mysqli); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $createPollCID = $consoleObj->findConsoleIDByName("Create a Poll"); $consoleObj->select($createPollCID); $blnConsoleCheck1 = $member->hasAccess($consoleObj); $managePollsCID = $consoleObj->findConsoleIDByName("Manage Polls"); $consoleObj->select($managePollsCID); $blnConsoleCheck2 = $member->hasAccess($consoleObj); $blnConsoleCheck = $blnConsoleCheck1 || $blnConsoleCheck2; $pollObj = new Poll($mysqli); // Check Login $LOGIN_FAIL = true; if ($member->authorizeLogin($_SESSION['btPassword']) && $blnConsoleCheck) { $pollObj->moveCache($_POST['direction'], $_POST['optionOrder']); }
<?php /* * Bluethrust Clan Scripts v4 * Copyright 2014 * * Author: Bluethrust Web Development * E-mail: support@bluethrust.com * Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ include_once "../../../_setup.php"; include_once "../../../classes/member.php"; include_once "../../../classes/medal.php"; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $memberObj = new Member($mysqli); $medalObj = new Medal($mysqli); $medalOptions = "<option value=''>Select</option>"; if ($member->authorizeLogin($_SESSION['btPassword']) && $memberObj->select($_POST['mID'])) { $arrMedals = $memberObj->getMedalList(); foreach ($arrMedals as $medalID) { $medalObj->select($medalID); $medalInfo = $medalObj->get_info_filtered(); $medalOptions .= "<option value='" . $medalInfo['medal_id'] . "'>" . $medalInfo['name'] . "</option>"; } } echo $medalOptions;
* * License: http://www.bluethrust.com/license.php * */ include_once "../../../_setup.php"; include_once "../../../classes/member.php"; include_once "../../../classes/rank.php"; include_once "../../../classes/squad.php"; $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("View Your Squads"); $consoleObj->select($cID); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $pID = "manageranks"; $squadObj = new Squad($mysqli); if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj) && $squadObj->select($_POST['sID']) && $squadObj->memberHasAccess($member->get_info("member_id"), $pID)) { $squadInfo = $squadObj->get_info_filtered(); $memberInfo = $member->get_info_filtered(); if ($squadObj->objSquadRank->select($_POST['rID'])) { $squadRankInfo = $squadObj->objSquadRank->get_info(); $addTo = 1; if ($_POST['rDir'] == "up") { $addTo = -1; } if ($squadRankInfo['sortnum'] != 1 && $squadRankInfo['sortnum'] + $addTo != 1) { $newSortNum = $squadRankInfo['sortnum'] + $addTo; $result = $mysqli->query("SELECT * FROM " . $dbprefix . "squadranks WHERE squad_id = '" . $squadRankInfo['squad_id'] . "' AND sortnum = '" . $newSortNum . "'"); $row = $result->fetch_assoc(); $newSortNumRankID = $row['squadrank_id']; $arrColumns = array("sortnum"); $arrValues = array($newSortNum);
<?php include "../../_setup.php"; include "../../classes/member.php"; $member = new Member($mysqli); $consoleObj = new ConsoleOption($mysqli); $websiteSettingsCID = $consoleObj->findConsoleIDByName("Website Settings"); $consoleObj->select($websiteSettingsCID); if (!isset($_SESSION['btUsername']) || !isset($_SESSION['btPassword']) || !$member->select($_SESSION['btUsername']) || $member->select($_SESSION['btUsername']) && !$member->authorizeLogin($_SESSION['btPassword']) || $member->select($_SESSION['btUsername']) && $member->authorizeLogin($_SESSION['btPassword']) && !$member->hasAccess($consoleObj)) { header("HTTP/1.0 404 Not Found"); exit; } $menuSQL = "\nINSERT INTO `menuitem_custompage` (`menucustompage_id`, `menuitem_id`, `custompage_id`, `prefix`, `linktarget`, `textalign`) VALUES(3, 19, 12, '<b>·</b> ', '', 'left');\nINSERT INTO `menuitem_custompage` (`menucustompage_id`, `menuitem_id`, `custompage_id`, `prefix`, `linktarget`, `textalign`) VALUES(2, 18, 11, '<b>·</b> ', '', 'left');\n\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(1, 1, 'index.php', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(3, 8, 'news', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(4, 9, 'members.php', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(5, 10, 'ranks.php', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(6, 11, 'squads', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(7, 12, 'tournaments', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(8, 13, 'events', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(9, 14, 'medals.php', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(10, 15, 'diplomacy', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(11, 16, 'diplomacy/request.php', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(12, 20, 'forum', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(13, 21, 'signup.php', '', '<b>·</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(29, 45, 'forgotpassword.php', '', '<b>·</b> ', 'left');\n\nINSERT INTO `menuitem_shoutbox` (`menushoutbox_id`, `menuitem_id`, `width`, `height`, `percentwidth`, `percentheight`, `textboxwidth`) VALUES(2, 47, 0, 0, 0, 0, 0);\n\nINSERT INTO `menu_category` (`menucategory_id`, `section`, `name`, `sortnum`, `headertype`, `headercode`, `accesstype`, `hide`) VALUES(3, 0, 'Main Menu', 1, 'customcode', '<div class=''mainMenuIMG''></div>', 0, 0);\nINSERT INTO `menu_category` (`menucategory_id`, `section`, `name`, `sortnum`, `headertype`, `headercode`, `accesstype`, `hide`) VALUES(2, 0, 'Top Players', 2, 'customcode', '<div class=''topPlayersIMG''></div>', 0, 0);\nINSERT INTO `menu_category` (`menucategory_id`, `section`, `name`, `sortnum`, `headertype`, `headercode`, `accesstype`, `hide`) VALUES(9, 0, 'Shoutbox', 4, 'customcode', '<div class=''shoutboxIMG''></div>', 0, 0);\nINSERT INTO `menu_category` (`menucategory_id`, `section`, `name`, `sortnum`, `headertype`, `headercode`, `accesstype`, `hide`) VALUES(8, 1, 'Default Login', 1, 'customcode', '', 0, 0);\nINSERT INTO `menu_category` (`menucategory_id`, `section`, `name`, `sortnum`, `headertype`, `headercode`, `accesstype`, `hide`) VALUES(10, 0, 'Poll', 3, 'customcode', '<div style=''position: relative; margin: 0px auto; text-align: center''>\r\n <img src=''[MAIN_ROOT]themes/armygreen/images/layout/poll.png''>\r\n</div>', 0, 1);\n\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(3, 2, 'Top Players Links', 'top-players', 0, 0, 0, 1);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(1, 3, 'Home', 'link', 1, 0, 0, 1);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(8, 3, 'News', 'link', 3, 0, 0, 2);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(9, 3, 'Members', 'link', 4, 0, 0, 3);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(10, 3, 'Ranks', 'link', 5, 0, 0, 4);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(11, 3, 'Squads', 'link', 6, 0, 0, 5);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(12, 3, 'Tournaments', 'link', 7, 0, 0, 6);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(13, 3, 'Events', 'link', 8, 0, 0, 7);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(14, 3, 'Medals', 'link', 9, 0, 0, 8);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(15, 3, 'Diplomacy', 'link', 10, 0, 0, 9);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(16, 3, 'Diplomacy Request', 'link', 11, 0, 0, 10);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(19, 3, 'Rules', 'custompage', 3, 0, 0, 11);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(18, 3, 'History', 'custompage', 2, 0, 0, 12);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(20, 3, 'Forum', 'link', 12, 0, 0, 13);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(21, 3, 'Sign Up', 'link', 13, 2, 0, 14);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(45, 3, 'Forgot Password', 'link', 29, 2, 0, 15);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(46, 8, 'Login', 'login', 0, 0, 0, 1);\nINSERT INTO `menu_item` (`menuitem_id`, `menucategory_id`, `name`, `itemtype`, `itemtype_id`, `accesstype`, `hide`, `sortnum`) VALUES(47, 9, 'Shoutbox', 'shoutbox', 2, 0, 0, 1);\n\n"; $menuSQL = str_replace("INSERT INTO `", "INSERT INTO `" . $dbprefix, $menuSQL); $emptyMenusSQL = "TRUNCATE `" . $dbprefix . "menuitem_customblock`;"; $emptyMenusSQL .= "TRUNCATE `" . $dbprefix . "menuitem_custompage`;"; $emptyMenusSQL .= "TRUNCATE `" . $dbprefix . "menuitem_image`;"; $emptyMenusSQL .= "TRUNCATE `" . $dbprefix . "menuitem_link`;"; $emptyMenusSQL .= "TRUNCATE `" . $dbprefix . "menuitem_shoutbox`;"; $emptyMenusSQL .= "TRUNCATE `" . $dbprefix . "menu_category`;"; $emptyMenusSQL .= "TRUNCATE `" . $dbprefix . "menu_item`;"; $fullSQL = $emptyMenusSQL . $menuSQL; if ($mysqli->multi_query($fullSQL)) { do { if ($result = $mysqli->store_result()) { $result->free(); } } while ($mysqli->next_result()); echo "Menus restored to default!"; } ?>
<?php if (!isset($member) || substr($_SERVER['PHP_SELF'], -11) != "console.php" || !isset($_GET['cID'])) { include_once "../../../../_setup.php"; include_once "../../../../classes/member.php"; include_once "../../../../classes/customform.php"; // Start Page $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("View Custom Form Submissions"); $consoleObj->select($cID); $consoleInfo = $consoleObj->get_info_filtered(); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $customFormPageObj = new CustomForm($mysqli); // Check Login if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj) && $customFormPageObj->select($_POST['cfID'])) { $memberInfo = $member->get_info(); } else { exit; } } else { $memberInfo = $member->get_info(); $consoleObj->select($consoleObj->findConsoleIDByName("View Custom Form Submissions")); if (!$member->hasAccess($consoleObj)) { exit; } } $arrSubmissions = $customFormPageObj->getSubmissions(); foreach ($arrSubmissions as $submissionID) { $customFormPageObj->objSubmission->select($submissionID); if ($customFormPageObj->objSubmission->get_info("seenstatus") == 0) {