function dispLoggedIn($arrLoginInfo) { global $MAIN_ROOT, $mysqli; $memberObj = new Member($mysqli); /* $arrLoginInfo['memberID'] = $memberID; $arrLoginInfo['memberUsername'] = $memberUsername; $arrLoginInfo['memberRank'] = $memberRank; $arrLoginInfo['pmCID'] = $pmCID; $arrLoginInfo['pmCount'] = $dispPMCount; */ $memberInfo = $arrLoginInfo['memberInfo']; $memberObj->select($memberInfo['member_id']); $dispLoggedinBox = "\n\t\t<div class='loggedInSection'>\n\t\t\t<b>Account Name:</b><br>\n\t\t\t<p>" . $memberObj->getMemberLink() . "</p>\n\t\t\t<div class='dottedLine' style='margin: 5px 0px'></div>\n\t\t\t<b>Rank:</b>\n\t\t\t<p>" . $arrLoginInfo['memberRank'] . "</p>\n\t\t\t<div class='dottedLine' style='margin: 5px 0px'></div>\n\t\t\t<b>Member Options:</b><br>\n\t\t\t<ul class='loggedInMenuList'>\n\t\t\t\t<li><a href='" . $MAIN_ROOT . "members'>My Account</a></li>\n\t\t\t\t<li><a href='" . $MAIN_ROOT . "members/console.php?cID=" . $arrLoginInfo['pmCID'] . "'>PM Inbox " . $arrLoginInfo['pmCountDisp'] . "</a></li>\n\t\t\t\t<li><a href='" . $MAIN_ROOT . "members/signout.php'>Sign Out</a></li>\n\t\t\t</ul>\n\t\t</div>\n\t"; /* <div class='loggedInIMG'></div> <div class='menuLinks' style='padding-left: 8px'> <b>Account Name:</b><br> <a href='".$MAIN_ROOT."profile.php?mID=".$arrLoginInfo['memberID']."'>".$arrLoginInfo['memberUsername']."</a> <hr style='width: 135px; margin: 6px 1px; padding: 0px; border: dotted whitesmoke 1px'> <b>Rank:</b><br> ".$arrLoginInfo['memberRank']." <hr style='width: 135px; margin: 6px 1px; padding: 0px; border: dotted whitesmoke 1px'> <b>Member Options:</b><br> <b>·</b> <a href='".$MAIN_ROOT."members'>My Account</a><br> <b>·</b> <a href='".$MAIN_ROOT."members/console.php?cID=".$arrLoginInfo['pmCID']."'>PM Inbox ".$arrLoginInfo['pmCountDisp']."</a><br> <b>·</b> <a href='".$MAIN_ROOT."members/signout.php'>Sign Out</a><br> </div> "; */ return $dispLoggedinBox; }
function validateUsername() { global $formObj, $mysqli; $checkMemberObj = new Member($mysqli); if ($checkMemberObj->select($_POST['newusername'])) { $formObj->errors[] = "There is already a member with that username."; } }
function setupStreamPage() { global $mysqli, $hooksObj; $memberObj = new Member($mysqli); $returnVal = false; if ($memberObj->select($_GET['user'])) { $streamTitle = $memberObj->get_info_filtered("username") . "'s Stream"; $hooksObj->addHook("breadcrumb", "setStreamPageBreadcrumb", array($streamTitle)); $returnVal = true; } return $returnVal; }
function dispLoggedIn($arrLoginInfo) { global $MAIN_ROOT, $mysqli; $memberObj = new Member($mysqli); $memberInfo = $arrLoginInfo['memberInfo']; if ($memberInfo['avatar'] == "") { $memberInfo['avatar'] = $MAIN_ROOT . "themes/rockyice/images/defaultavatar.png"; } else { $memberInfo['avatar'] = $MAIN_ROOT . $memberInfo['avatar']; } $memberObj->select($memberInfo['member_id']); $dispLoggedinBox = "\n\t\n\t\t<div class='loginSectionLeft'>\n\t\t\t<div class='loginSectionAvatar'>\n\t\t\t\t<img src='" . $memberInfo['avatar'] . "'>\n\t\t\t</div>\n\t\t\t<div class='loginInnerDiv loginSectionLoggedInUser'>\n\t\t\t\t" . $arrLoginInfo['memberRank'] . " " . $this->memberObj->getMemberLink() . "\n\t\t\t</div>\n\t\t</div>\n\t\t\n\n\t\t<div class='loginSectionRight'>\n\t\t\n\t\t\t<div class='loginSectionLoggedInOptions'><p align='center'><b>Member Options:</b></p>\n\t\t\t\t<a href='" . $MAIN_ROOT . "members'>My Account</a> - <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $arrLoginInfo['pmCID'] . "'>PM Inbox " . $arrLoginInfo['pmCountDisp'] . "</a> - <a href='" . $MAIN_ROOT . "members/signout.php'>Sign Out</a>\n\t\t\t</div>\n\t\t\t\n\t\t</div>\n\t\t\n\t"; return $dispLoggedinBox; }
public function checkManageAllSquads() { $this->blnManageAllSquads = false; if (isset($_SESSION['btUsername']) && isset($_SESSION['btPassword'])) { $member = new Member($this->MySQL); $consoleObj = new ConsoleOption($this->MySQL); $manageAllSquadsCID = $consoleObj->findConsoleIDByName("Manage All Squads"); if ($member->select($_SESSION['btUsername']) && $member->authorizeLogin($_SESSION['btPassword'])) { $consoleObj->select($manageAllSquadsCID); $this->blnManageAllSquads = $member->hasAccess($consoleObj); } } return $this->blnManageAllSquads; }
/** * This function responses to * the get request of /admin/member * and show all member as list */ public function getViewAllMember($msg = null) { if (!empty($msg) && $msg == 1) { return View::make('adminArea.member.view')->with('members', Member::orderBy('id', 'desc')->get())->with('success', 'Member has been deleted successfully'); } if (!empty($msg) && $msg == 'csv-for-mailchimp') { $members = Member::select('first_name', 'last_name', 'email')->get()->toArray(); return CSV::fromArray($members)->render('Members CSV for MailChimp.csv'); } if (!empty($msg) && $msg == 'csv-for-sms-sender') { $members = Member::select('mobile_no')->get()->toArray(); return CSV::fromArray($members)->render('Members CSV for SMS Sender.csv'); } return View::make('adminArea.member.view')->with('members', Member::orderBy('id', 'desc')->get()); }
function dispIAMessages($iaID) { global $MAIN_ROOT, $dbprefix, $mysqli; $iaMember = new Member($mysqli); $counter = 0; $iaMessages = ""; $iaMessagesQuery = $mysqli->query("SELECT * FROM " . $dbprefix . "iarequest_messages WHERE iarequest_id = '" . $iaID . "' ORDER BY messagedate DESC"); while ($iaMessageRow = $iaMessagesQuery->fetch_assoc()) { if ($counter == 1) { $addCSS = ""; $counter = 0; } else { $addCSS = " alternateBGColor"; $counter = 1; } $iaMember->select($iaMessageRow['member_id']); $iaMessages .= "\n\t\t\t<div class='dottedLine" . $addCSS . "' style='padding: 10px 5px; margin-left: auto; margin-right: auto; width: 80%;'>\n\t\t\t\t" . $iaMember->getMemberLink() . " - " . getPreciseTime($iaMessageRow['messagedate']) . "<br><br>\n\t\t\t\t<div style='padding-left: 5px'>" . nl2br(filterText($iaMessageRow['message'])) . "</div>\n\t\t\t</div>\n\t\t"; } if ($iaMessagesQuery->num_rows == 0) { $iaMessages = "<i>No Messages</i>"; } return $iaMessages; }
* 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/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();
* 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/rank.php"; include_once "../../../../../classes/consoleoption.php"; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $consoleObj = new ConsoleOption($mysqli); $intAddConsoleCID = $consoleObj->findConsoleIDByName("Add Console Option"); $consoleObj->select($intAddConsoleCID); $checkAccess1 = $member->hasAccess($consoleObj); $intManageConsoleCID = $consoleObj->findConsoleIDByName("Manage Console Options"); $consoleObj->select($intManageConsoleCID); $checkAccess2 = $member->hasAccess($consoleObj); $checkAccess = $checkAccess1 || $checkAccess2; $blnSuccess = false; if ($member->authorizeLogin($_SESSION['btPassword'])) { $memberInfo = $member->get_info_filtered(); if ($checkAccess && is_numeric($_POST['mID'])) { if ($member->select($_POST['mID']) && ($_POST['accessrule'] == "allow" || $_POST['accessrule'] == "deny")) { $intAlreadyAdded = "no"; $counter = 0;
<?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";
$member = new Member($mysqli); $member->select($_SESSION['btUsername']); $memberInfo = $member->get_info_filtered(); $objMember = new Member($mysqli); $eventObj = new Event($mysqli); $consoleObj = new ConsoleOption($mysqli); $eventID = $_POST['eID']; } if (!$eventObj->select($eventID)) { exit; } echo "<ul>"; $focusID = ""; $result = $mysqli->query("SELECT * FROM " . $dbprefix . "eventmessages WHERE event_id = '" . $eventID . "' ORDER BY dateposted DESC"); while ($row = $result->fetch_assoc()) { $objMember->select($row['member_id']); $memInfo = $objMember->get_info_filtered(); if ($memInfo['profilepic'] == "") { $dispProfilePic = $MAIN_ROOT . "themes/" . $THEME . "/images/defaultprofile.png"; } else { $dispProfilePic = $MAIN_ROOT . $memInfo['profilepic']; } $dispDeleteMessage = ""; if ($eventObj->memberHasAccess($memberInfo['member_id'], "managemessages")) { $dispDeleteMessage = " - <a href='javascript:void(0)' onclick=\"deleteMessage('" . $row['eventmessage_id'] . "', 'm')\">Delete</a>"; } echo "\n\t<li>\n\t<div class='profilePic'><img src='" . $dispProfilePic . "'></div>\n\t<div class='main messageDiv'><b>" . $objMember->getMemberLink() . "</b><br>\n\t" . nl2br(parseBBCode($row['message'])) . "<br>\n\t<div class='tinyFont' style='margin-top: 5px'>" . getPreciseTime($row['dateposted']) . $dispDeleteMessage . "</div>\n\t</div>\n\t<div style='clear: both'></div>\n\t<ul id='commentsUL_" . $row['eventmessage_id'] . "'>\n\n\t"; $eventObj->objEventMessage->select($row['eventmessage_id']); $arrMessageComments = $eventObj->objEventMessage->getComments(" ORDER BY dateposted ASC"); foreach ($arrMessageComments as $commentID) { if ($eventObj->objEventMessageComment->select($commentID) && $objMember->select($row['member_id'])) {
$taggerObj = new Basic($mysqli, "membersonlypage", "pageurl"); $siteDomain = $_SERVER['SERVER_NAME']; if (trim($_SERVER['HTTPS']) == "" || $_SERVER['HTTPS'] == "off") { $dispHTTP = "http://"; } else { $dispHTTP = "https://"; } if ((!isset($_COOKIE['btUsername']) || !isset($_COOKIE['btPassword'])) && isset($_SESSION['btRememberMe']) && $_SESSION['btRememberMe'] == 1 && isset($_SESSION['btUsername']) && isset($_SESSION['btPassword'])) { $cookieExpTime = time() + 60 * 60 * 24 * 3; setcookie("btUsername", $_SESSION['btUsername'], $cookieExpTime, $MAIN_ROOT); setcookie("btPassword", $_SESSION['btPassword'], $cookieExpTime, $MAIN_ROOT); } $menuXML = new SimpleXMLElement(BASE_DIRECTORY . "themes/" . $THEME . "/themeinfo.xml", NULL, true); if (isset($_SESSION['btUsername']) && isset($_SESSION['btPassword'])) { $memberObj = new Member($mysqli); if ($memberObj->select($_SESSION['btUsername'])) { if ($memberObj->authorizeLogin($_SESSION['btPassword'])) { define("LOGGED_IN", true); $memberInfo = $memberObj->get_info(); $memberUsername = $memberInfo['username']; $memberID = $memberInfo['member_id']; if ($memberInfo['loggedin'] == 0) { $memberObj->update(array("loggedin"), array(1)); } $actualPageNameLoc = strrpos($PAGE_NAME, " - "); $actualPageName = substr($PAGE_NAME, 0, $actualPageNameLoc); if ($PAGE_NAME == "") { $actualPageName = "Home Page"; } $lastSeenLink = "<a href='" . $dispHTTP . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . "'>" . $actualPageName . "</a>"; $arrUpdateColLastSeen = array("lastseen", "lastseenlink");
* Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.php * */ if (!isset($prevFolder) || $prevFolder == "") { $prevFolder = "../../../../"; } include_once $prevFolder . "_setup.php"; // Classes needed for console.php include_once $prevFolder . "classes/member.php"; include_once $prevFolder . "classes/rank.php"; include_once $prevFolder . "classes/rankcategory.php"; include_once $prevFolder . "classes/consoleoption.php"; $member = new Member($mysqli); $checkMember = $member->select($_SESSION['btUsername']); if ($checkMember) { if ($member->authorizeLogin($_SESSION['btPassword'])) { $cOptObj = new ConsoleOption($mysqli); if (!isset($_GET['cID'])) { $_GET['cID'] = $cOptObj->findConsoleIDByName("Manage Ranks"); } $cOptObj->select($_GET['cID']); $intAddNewRankCID = $cOptObj->findConsoleIDByName("Add New Rank"); $memberInfo = $member->get_info(); if ($member->hasAccess($cOptObj)) { echo "\n\t\t\t<script type='text/javascript'>\n\t\t\t\n\t\t\t\$(document).ready(function() {\n\t\t\t\t\$('#breadCrumb').html(\"<a href='" . $MAIN_ROOT . "'>Home</a> > <a href='" . $MAIN_ROOT . "members'>My Account</a> > Manage Ranks\");\n\t\t\t});\n\t\t\t\n\t\t\t</script>\n\t\t\t"; $cOptObj = new ConsoleOption($mysqli); $intAddNewRankCID = $cOptObj->findConsoleIDByName("Add New Rank"); $x = 0; $counter = 0;
echo $MAIN_ROOT; ?> '>Home</a> > Inactive Members </div> <table class='formTable'> <tr> <td class='formTitle'>Rank:</td> <td class='formTitle'>Username:</td> <td class='formTitle'>Main Game:</td> <td class='formTitle'>Inactive Since:</td> </tr> <?php $result = $mysqli->query("SELECT " . $dbprefix . "members.member_id, " . $dbprefix . "ranks.ordernum FROM " . $dbprefix . "members, " . $dbprefix . "ranks WHERE " . $dbprefix . "members.rank_id = " . $dbprefix . "ranks.rank_id AND " . $dbprefix . "members.onia = '1' AND " . $dbprefix . "members.disabled = '0' AND " . $dbprefix . "members.rank_id != '1' ORDER BY " . $dbprefix . "ranks.ordernum DESC"); while ($row = $result->fetch_assoc()) { $member->select($row['member_id']); $rankObj->select($member->get_info("rank_id")); $memberListInfo = $member->get_info_filtered(); $rankListInfo = $rankObj->get_info_filtered(); $dispMainGame = "Not Set"; if ($gameObj->select($memberListInfo['maingame_id'])) { $gameObj->refreshImageSize(); $gameInfo = $gameObj->get_info_filtered(); $dispMainGame = "<img src='" . $gameInfo['imageurl'] . "' width='" . $gameInfo['imagewidth'] . "' height='" . $gameInfo['imageheight'] . "' onmouseover=\"showToolTip('" . $gameInfo['name'] . "')\" onmouseout='hideToolTip()'>"; } echo "\n\t\t\t<tr>\n\t\t\t\t<td class='main' align='center'>\n\t\t\t\t\t<img src='" . $rankListInfo['imageurl'] . "' width='" . $rankListInfo['imagewidth'] . "' height='" . $rankListInfo['imageheight'] . "' onmouseover=\"showToolTip('" . $rankListInfo['name'] . "')\" onmouseout='hideToolTip()'>\n\t\t\t\t</td>\n\t\t\t\t<td class='main'>" . $member->getMemberLink() . "</td>\n\t\t\t\t<td class='main' align='center'>" . $dispMainGame . "</td>\n\t\t\t\t<td class='main' align='center'>" . getPreciseTime($memberListInfo['inactivedate']) . "</td>\n\t\t\t</tr>\n\t\t\n\t\t"; } ?> </table> <?php
* 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/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;
function dispMenu($intSectionNum) { global $MAIN_ROOT, $LOGGED_IN, $mysqli, $shoutBoxPostLink, $shoutBoxDeleteLink, $shoutBoxEditLink, $arrShoutBoxIDs, $websiteInfo, $arrLoginInfo; echo "<div id='menuSection_" . $intSectionNum . "'>"; $menuCatObj = new MenuCategory($mysqli); $menuItemObj = new MenuItem($mysqli); $customPageObj = new Basic($mysqli, "custompages", "custompage_id"); $customFormObj = new CustomForm($mysqli); $downloadCatObj = new Basic($mysqli, "downloadcategory", "downloadcategory_id"); $memberObj = new Member($mysqli); $pollObj = new Poll($mysqli); if ($LOGGED_IN) { $intMenuAccessType = 1; } else { $intMenuAccessType = 2; } $arrMenuCategories = $menuCatObj->getCategories($intSectionNum, $intMenuAccessType); foreach ($arrMenuCategories as $menuCatID) { $menuCatObj->select($menuCatID); $menuCatInfo = $menuCatObj->get_info(); $arrMenuItems = $menuItemObj->getItems($menuCatInfo['menucategory_id'], $intMenuAccessType); if ($menuCatInfo['headertype'] == "image") { echo "<img src='" . $MAIN_ROOT . $menuCatInfo['headercode'] . "' class='menuHeaderImg'><br>"; } else { $menuCatInfo['headercode'] = str_replace("[MAIN_ROOT]", $MAIN_ROOT, $menuCatInfo['headercode']); $menuCatInfo['headercode'] = str_replace("[MEMBER_ID]", $arrLoginInfo['memberID'], $menuCatInfo['headercode']); $menuCatInfo['headercode'] = str_replace("[MEMBERUSERNAME]", $arrLoginInfo['memberUsername'], $menuCatInfo['headercode']); $menuCatInfo['headercode'] = str_replace("[MEMBERRANK]", $arrLoginInfo['memberRank'], $menuCatInfo['headercode']); $menuCatInfo['headercode'] = str_replace("[PMLINK]", $arrLoginInfo['pmLink'], $menuCatInfo['headercode']); echo $menuCatInfo['headercode']; } foreach ($arrMenuItems as $menuItemID) { $menuItemObj->select($menuItemID); $menuItemInfo = $menuItemObj->get_info(); $menuItemInfo['itemtype'] = $menuItemInfo['itemtype'] == "customcode" || $menuItemInfo['itemtype'] == "customformat" ? "customblock" : $menuItemInfo['itemtype']; switch ($menuItemInfo['itemtype']) { case "link": $menuItemObj->objLink->select($menuItemInfo['itemtype_id']); $menuLinkInfo = $menuItemObj->objLink->get_info(); $checkURL = parse_url($menuLinkInfo['link']); if (!isset($checkURL['scheme']) || ($checkURL['scheme'] = "")) { $menuLinkInfo['link'] = $MAIN_ROOT . $menuLinkInfo['link']; } echo "<div style='text-align: " . $menuLinkInfo['textalign'] . "'> " . $menuLinkInfo['prefix'] . "<a href='" . $menuLinkInfo['link'] . "' target='" . $menuLinkInfo['linktarget'] . "'>" . $menuItemInfo['name'] . "</a></div>"; break; case "top-players": $dispTopPlayers = unserialize(SPECIAL_MENU_ITEM); echo $dispTopPlayers['top-players']; break; case "customform": $menuItemObj->objCustomPage->select($menuItemInfo['itemtype_id']); $menuCustomFormInfo = $menuItemObj->objCustomPage->get_info(); $customFormObj->select($menuCustomFormInfo['custompage_id']); echo "<div style='text-align: " . $menuCustomFormInfo['textalign'] . "'> " . $menuCustomFormInfo['prefix'] . "<a href='" . $MAIN_ROOT . "customform.php?pID=" . $menuCustomFormInfo['custompage_id'] . "' target='" . $menuCustomFormInfo['linktarget'] . "'>" . $customFormObj->get_info_filtered("name") . "</a></div>"; break; case "custompage": $menuItemObj->objCustomPage->select($menuItemInfo['itemtype_id']); $menuCustomPageInfo = $menuItemObj->objCustomPage->get_info(); $customPageObj->select($menuCustomPageInfo['custompage_id']); echo "<div style='text-align: " . $menuCustomPageInfo['textalign'] . "'> " . $menuCustomPageInfo['prefix'] . "<a href='" . $MAIN_ROOT . "custompage.php?pID=" . $menuCustomPageInfo['custompage_id'] . "' target='" . $menuCustomPageInfo['linktarget'] . "'>" . $customPageObj->get_info_filtered("pagename") . "</a></div>"; break; case "downloads": $menuItemObj->objCustomPage->select($menuItemInfo['itemtype_id']); $menuDownloadLinkInfo = $menuItemObj->objCustomPage->get_info(); $downloadCatObj->select($menuDownloadLinkInfo['custompage_id']); echo "<div style='text-align: " . $menuDownloadLinkInfo['textalign'] . "'> " . $menuDownloadLinkInfo['prefix'] . "<a href='" . $MAIN_ROOT . "downloads/index.php?catID=" . $menuDownloadLinkInfo['custompage_id'] . "' target='" . $menuDownloadLinkInfo['linktarget'] . "'>" . $downloadCatObj->get_info_filtered("name") . "</a></div>"; break; case "customblock": $menuItemObj->objCustomBlock->select($menuItemInfo['itemtype_id']); $menuCustomBlockInfo = $menuItemObj->objCustomBlock->get_info(); $menuCustomBlockInfo['code'] = str_replace("[MAIN_ROOT]", $MAIN_ROOT, $menuCustomBlockInfo['code']); $menuCustomBlockInfo['code'] = str_replace("[MEMBER_ID]", $arrLoginInfo['memberID'], $menuCustomBlockInfo['code']); $menuCustomBlockInfo['code'] = str_replace("[MEMBERUSERNAME]", $arrLoginInfo['memberUsername'], $menuCustomBlockInfo['code']); $menuCustomBlockInfo['code'] = str_replace("[MEMBERRANK]", $arrLoginInfo['memberRank'], $menuCustomBlockInfo['code']); $menuCustomBlockInfo['code'] = str_replace("[PMLINK]", $arrLoginInfo['pmLink'], $menuCustomBlockInfo['code']); echo $menuCustomBlockInfo['code']; break; case "image": $menuItemObj->objImage->select($menuItemInfo['itemtype_id']); $menuImageInfo = $menuItemObj->objImage->get_info(); $checkURL = parse_url($menuItemInfo['imageurl']); if (!isset($checkURL['scheme']) || ($checkURL['scheme'] = "")) { $menuImageInfo['imageurl'] = $MAIN_ROOT . $menuImageInfo['imageurl']; } $dispSetWidth = ""; if ($menuImageInfo['width'] != 0) { $dispSetWidth = "width: " . $menuImageInfo['width'] . "px; "; } $dispSetHeight = ""; if ($menuImageInfo['height'] != 0) { $dispSetHeight = "height: " . $menuImageInfo['height'] . "px; "; } echo "<div style='text-align: " . $menuImageInfo['imagealign'] . "; margin-top: 15px; margin-bottom: 15px'>"; if ($menuImageInfo['link'] != "") { $checkURL = parse_url($menuImageInfo['link']); if (!isset($checkURL['scheme']) || ($checkURL['scheme'] = "")) { $menuImageInfo['link'] = $MAIN_ROOT . $menuImageInfo['link']; } echo "<a href='" . $menuImageInfo['link'] . "' target='" . $menuImageInfo['linktarget'] . "'><img src='" . $menuImageInfo['imageurl'] . "' style='" . $dispSetWidth . $dispSetHeight . "' title='" . $menuItemInfo['name'] . "'></a>"; } else { echo "<img src='" . $menuImageInfo['imageurl'] . "' title='" . $menuItemInfo['name'] . "' style='" . $dispSetWidth . $dispSetHeight . "'>"; } echo "</div>"; break; case "shoutbox": $menuItemObj->objShoutbox->select($menuItemInfo['itemtype_id']); $menuShoutboxInfo = $menuItemObj->objShoutbox->get_info(); if ($menuShoutboxInfo['width'] == 0) { $menuShoutboxInfo['width'] = "145"; } $blnShoutboxWidthPercent = false; if ($menuShoutboxInfo['percentwidth'] == 1) { $blnShoutboxWidthPercent = true; } if ($menuShoutboxInfo['height'] == 0) { $menuShoutboxInfo['height'] = "300"; } $blnShoutboxHeightPercent = false; if ($menuShoutboxInfo['percentheight'] == 1) { $blnShoutboxHeightPercent = true; } $mainShoutboxObj = new Shoutbox($mysqli, "news", "news_id"); $newShoutBoxID = uniqid("mainShoutBox_"); $arrShoutBoxIDs[] = $newShoutBoxID; $mainShoutboxObj->strDivID = $newShoutBoxID; $mainShoutboxObj->intDispWidth = $setShoutBoxWidth; $mainShoutboxObj->intDispHeight = $setShoutBoxHeight; $mainShoutboxObj->strEditLink = $shoutBoxEditLink; $mainShoutboxObj->strDeleteLink = $shoutBoxDeleteLink; $mainShoutboxObj->strPostLink = $shoutBoxPostLink; echo $mainShoutboxObj->dispShoutbox($menuShoutboxInfo['width'], $menuShoutboxInfo['height'], $blnShoutboxWidthPercent, $menuShoutboxInfo['textboxwidth'], $blnShoutboxHeightPercent); echo "\n\t\t\t\t\t\n\t\t\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\t\t\t\t\$('#" . $newShoutBoxID . "').animate({\n\t\t\t\t\t\t\t\t\t\tscrollTop:\$('#" . $newShoutBoxID . "')[0].scrollHeight\n\t\t\t\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$('#" . $newShoutBoxID . "_message').keypress(function(eventObj) {\n\t\t\t\t\t\t\t\t\tif(eventObj.which == 13) {\n\t\t\t\t\t\t\t\t\t\tif(\$('#" . $newShoutBoxID . "_message').val() != \"\") {\n\t\t\t\t\t\t\t\t\t\t\t\$('#" . $newShoutBoxID . "_postShoutbox input[type=button]').click();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\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});\n\t\t\t\t\t\t\n\t\t\t\t\t\t</script>\n\t\t\t\t\t\n\t\t\t\t\t"; break; case "newestmembers": $dispNewMembers = unserialize(SPECIAL_MENU_ITEM); echo $dispNewMembers['newmembers']; break; case "forumactivity": $dispNewMembers = unserialize(SPECIAL_MENU_ITEM); echo $dispNewMembers['forumactivity']; break; case "login": echo constant("LOGIN_BOX"); break; case "poll": $pollObj->select($menuItemInfo['itemtype_id']); $memberObj->select($_SESSION['btUsername']); $pollObj->dispPollMenu($memberObj); break; } } echo "<br>"; } echo "</div>"; }
$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 { $dispProfilePic = $MAIN_ROOT . $memInfo['profilepic']; } $dispDeleteMessage = ""; if ($eventObj->memberHasAccess($memberInfo['member_id'], "managemessages")) { $dispDeleteMessage = " - <a href='javascript:void(0)' onclick=\"deleteMessage('" . $row['comment_id'] . "', 'c')\">Delete</a>"; } echo "\n\t\t\t\t\t<li class='dottedLine'>\n\t\t\t\t\t\t<div class='profilePic'><img src='" . $dispProfilePic . "'></div>\n\t\t\t\t\t\t<div class='main messageDiv'><b>" . $objMember->getMemberLink() . "</b><br>\n\t\t\t\t\t\t\t" . nl2br(parseBBCode($row['comment'])) . "<br>\n\t\t\t\t\t\t\t<div class='tinyFont' style='margin-top: 5px'>" . getPreciseTime($row['dateposted']) . $dispDeleteMessage . "</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style='clear: both'></div>\n\t\t\t\t\t</li>\n\t\t\t\t"; } } } }
public function insertMember() { $cre = ["member" => Input::get('member'), "username" => Input::get('username'), "dob" => Input::get('dob'), "city_id" => Input::get('city_id'), "center_id" => Input::get('center_id'), "doj" => Input::get('doj'), "mobile" => Input::get('mobile'), "address" => Input::get('address'), "city" => Input::get('city'), "priv" => Input::get('priv'), "state" => Input::get('state')]; $rules = ["member" => 'required', "username" => 'required', "member" => 'required', "dob" => 'required', "doj" => 'required', "mobile" => 'required', "address" => 'required']; $validator = Validator::make($cre, $rules); if ($validator->passes()) { $member = new Member(); $member->name = Input::get('member'); $member->username = Input::get('username'); $member->dob = Input::get('dob'); $member->city_id = Input::get('city_id'); $member->center_id = Input::get('center_id'); $member->doj = Input::get('doj'); $member->mobile = Input::get('mobile'); $member->address = Input::get('address'); $member->city = Input::get('city'); $member->priv = Input::get('priv'); $member->state = Input::get('state'); $member->save(); $member_info = Member::select('center.center_name', 'city.city_name', 'members.id', 'members.name', 'members.priv')->join('city', 'members.city_id', '=', 'city.id')->join('center', 'members.center_id', '=', 'center.id')->where('members.id', '=', $member->id)->first(); $count = Member::count(); $data['success'] = 'true'; $data['message'] = html_entity_decode(View::make('admin.manage.members.view', ["data" => $member_info, "count" => $count])); } else { $data["success"] = false; $data["message"] = "All fields are not filled"; } return json_encode($data); }
if ($ipbanObj->select($IP_ADDRESS, false)) { $ipbanInfo = $ipbanObj->get_info(); if (time() < $ipbanInfo['exptime'] or $ipbanInfo['exptime'] == 0) { die("<script type='text/javascript'>window.location = '" . $MAIN_ROOT . "banned.php';</script>"); } else { $ipbanObj->delete(); } } // Start Page $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Private Messages"); $consoleObj->select($cID); $consoleInfo = $consoleObj->get_info_filtered(); $consoleTitle = $consoleInfo['pagetitle']; $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $PAGE_NAME = "Compose Message - " . $consoleTitle . " - "; $dispBreadCrumb = "<a href='" . $MAIN_ROOT . "'>Home</a> > <a href='" . $MAIN_ROOT . "members'>My Account</a> > <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "'>" . $consoleTitle . "</a> > Compose Message"; $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\n<style>\n\t.ui-autocomplete {\n\t\tmax-height: 150px;\n\t\toverflow-y: auto;\n\t}\n</style>\n"; $prevFolder = "../../"; include "../../themes/" . $THEME . "/_header.php"; echo "\n<div class='breadCrumbTitle' id='breadCrumbTitle'>Compose Message</div>\n<div class='breadCrumb' id='breadCrumb' style='padding-top: 0px; margin-top: 0px'>\n{$dispBreadCrumb}\n</div>\n"; $pmObj = new BasicOrder($mysqli, "privatemessages", "pm_id"); $rankCatObj = new RankCategory($mysqli); $squadObj = new Squad($mysqli); $tournamentObj = new Tournament($mysqli); $multiMemPMObj = new Basic($mysqli, "privatemessage_members", "pmmember_id"); $pmObj->set_assocTableName("privatemessage_members"); $pmObj->set_assocTableKey("member_id"); // Check Login $LOGIN_FAIL = true;
* 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/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(); if ($member->authorizeLogin($_SESSION['btPassword']) && $tournamentObj->select($tID) && $member->hasAccess($consoleObj)) { $memberInfo = $member->get_info(); $tmemberID = $tournamentObj->get_info("member_id"); $tournamentInfo = $tournamentObj->get_info_filtered(); if ($memberInfo['member_id'] == $tmemberID || $memberInfo['rank_id'] == "1" || $tournamentObj->isManager($memberInfo['member_id'])) { $arrPlayers = $tournamentObj->getPlayers(); $playerList = urlencode($_POST['players']); $arrNewPlayers = explode("%0A", $playerList); $maxPlayers = $tournamentInfo['playersperteam'] * $tournamentInfo['maxteams']; if (count($arrNewPlayers) + count($arrPlayers) <= $maxPlayers) { foreach ($arrNewPlayers as $newPlayer) { $newPlayer = urldecode($newPlayer);
// This is a little repeatative, but for security. $memberInfo = $member->get_info(); $consoleObj->select($cID); $eventObj->select($eID); if (!$member->hasAccess($consoleObj) || !$eventObj->memberHasAccess($memberInfo['member_id'], "invitemembers") && $memberInfo['rank_id'] != 1) { exit; } } echo "\n\n<script type='text/javascript'>\n\$(document).ready(function() {\n\$('#breadCrumbTitle').html(\"Invite Members\");\n\$('#breadCrumb').html(\"<a href='" . $MAIN_ROOT . "'>Home</a> > <a href='" . $MAIN_ROOT . "members'>My Account</a> > <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&select=" . $eventInfo['event_id'] . "'>" . $consoleTitle . "</a> > <b>" . $eventInfo['title'] . ":</b> Invite Members\");\n});\n</script>\n"; $dispError = ""; $countErrors = 0; $objInviteMember = new Member($mysqli); if ($_POST['submit']) { foreach ($_SESSION['btInviteList'] as $value) { $checkInvite = $eventObj->inviteMember($value, $memberInfo['member_id']); if ($objInviteMember->select($value) && $checkInvite === true) { $objInviteMember->postNotification("You have been invited to the event, <b>" . $eventInfo['title'] . "</b>!. Go to the <a href='" . $MAIN_ROOT . "events/info.php?eID=" . $eventInfo['event_id'] . "'>event</a> page to view more info.", "general"); } elseif ($objInviteMember->select($value) && $checkInvite === false) { $dispInviteErrorName = $objInviteMember->get_info_filtered("username"); $countErrors++; $dispError .= " <b>·</b> Unable to invite " . $dispInviteErrorName . ".<br>"; } elseif (!$objInviteMember->select($value)) { $countErrors++; $dispError .= " <b>·</b> You selected an invalid member.<br>"; } elseif ($checkInvite == "dup") { $dispInviteErrorName = $objInviteMember->get_info_filtered("username"); $countErrors++; $dispError .= " <b>·</b> Unable to invite " . $dispInviteErrorName . ". (already invited)<br>"; } } if ($countErrors == 0) {
<?php include "../../_setup.php"; include "classes/donate-paypalclass.php"; include "classes/donation.php"; include "classes/campaign.php"; $donationPlugin = new btPlugin($mysqli); if ($donationPlugin->selectByName("Donations")) { $donationObj = new Donation($mysqli); $p = new paypal_class(); $arrColumns = array("donationcampaign_id", "member_id", "name", "message", "datesent", "amount", "paypalemail", "transaction_id", "response"); $p->setMode($donationPlugin->getConfigInfo("mode")); if ($p->validate_ipn() && $p->ipn_data['payment_status'] != "Failed" && $p->ipn_data['payment_status'] != "Denied") { $member = new Member($mysqli); $campaignObj = new DonationCampaign($mysqli); $arrData = $p->ipn_data; $data = json_encode($arrData); $customVars = json_decode($arrData['custom'], true); if ($campaignObj->select($customVars['campaign_id']) && $member->select($customVars['member_id'])) { $campaignName = $campaignObj->get_info_filtered("title"); $medalID = $campaignObj->get_info("awardmedal"); $member->awardMedal($medalID, "Donated to " . $campaignName . " campaign"); } $arrValues = array($customVars['campaign_id'], $customVars['member_id'], $customVars['name'], $customVars['message'], time(), $arrData['mc_gross'], $arrData['payer_email'], $arrData['txn_id'], $data); $donationObj->addNew($arrColumns, $arrValues); } else { $data = json_encode($p->ipn_data); $data = "ERROR: - " . $p->last_error . " - " . $data; $donationObj->logError($data); } }
// NEWEST MEMBERS $arrSpecialMenuItems['newmembers'] = "<div style='margin-left: 3px; margin-right: 3px; margin-top: 0px; margin-bottom: 0px'>"; $menuMemberObj = new Member($mysqli); $menuMemberRankObj = new Rank($mysqli); $counter = 0; $result = $mysqli->query("SELECT member_id FROM " . $dbprefix . "members WHERE rank_id != '1' ORDER BY datejoined DESC LIMIT 3"); while ($row = $result->fetch_assoc()) { $addCSS = ""; if ($counter == 0) { $addCSS = " alternateBGColor"; $counter = 1; } else { $counter = 0; } $arrSpecialMenuItems['newmembers'] .= "<div class='dottedLine " . $addCSS . "' style='padding: 5px 5px'>"; $menuMemberObj->select($row['member_id']); $newestMemberInfo = $menuMemberObj->get_info_filtered(); $checkURL = parse_url($newestMemberInfo['profilepic']); if ((!isset($checkURL['scheme']) || $checkURL['scheme'] == "") && $newestMemberInfo['profilepic'] != "") { $newestMemberInfo['profilepic'] = $MAIN_ROOT . $newestMemberInfo['profilepic']; } elseif ($newestMemberInfo['profilepic'] == "") { $newestMemberInfo['profilepic'] = $MAIN_ROOT . "themes/simpletech/images/defaultprofile.png"; } $menuMemberRankObj->select($newestMemberInfo['rank_id']); $arrSpecialMenuItems['newmembers'] .= "<div style='float: left; width: 42px'><img src='" . $newestMemberInfo['profilepic'] . "' style='width: 34px; height: 45px; border: solid black 1px'></div>"; $arrSpecialMenuItems['newmembers'] .= "<div style='float: left; padding-left: 8px; width: 82px'><div style='font-size: 11px; overflow: hidden; text-overflow: ellipsis; width: 82px'>" . $menuMemberObj->getMemberLink() . "</div><div class='main' style='width: 82px; overflow: hidden; text-overflow: ellipsis'>" . $menuMemberRankObj->get_info_filtered("name") . "</div></div>"; $arrSpecialMenuItems['newmembers'] .= "<div style='clear: both'></div>"; $arrSpecialMenuItems['newmembers'] .= "</div>"; } $arrSpecialMenuItems['newmembers'] .= "<div style='clear: both'></div></div>"; // LATEST FORUM ACTIVITY
<?php include "_setup.php"; include_once "classes/member.php"; $ADMIN_USERNAME = "******"; $ADMIN_PASSWORD = "******"; $memberObj = new Member($mysqli); if (!$memberObj->select($ADMIN_USERNAME)) { $memberObj->addNew(array("username", "datejoined", "lastlogin", "rank_id"), array($ADMIN_USERNAME, time(), time(), 1)); $memberObj->set_password($ADMIN_PASSWORD); echo "\n\t\tAdmin Account Added:<br><br>\n\t\t\n\t\tUsername: "******"<br>\n\t\tPassword: "******"There is already a member with the username " . $ADMIN_USERNAME; }
<?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/pmfolder.php"; include_once "../../../classes/privatemessage.php"; // Start Page $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Private Messages"); $consoleObj->select($cID); $consoleInfo = $consoleObj->get_info_filtered(); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $pmObj = new PrivateMessage($mysqli); $multiMemPMObj = $pmObj->multiMemPMObj; // Check Login $LOGIN_FAIL = true; if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) { $memberInfo = $member->get_info_filtered(); $arrPM = array(); $arrPMMID = array(); $pmFolderObj = new PMFolder($mysqli); $pmFolderObj->intMemberID = $memberInfo['member_id']; // Stick Folder Conditions in variables $isFolderSet = isset($_POST['folder']); $selectedFolder = $pmFolderObj->select($_POST['folder']); $condition1 = !$selectedFolder || $selectedFolder && !$pmFolderObj->isMemberFolder(); $arrStandardFolders = array(0, -1, -2);
if (!isset($member) || substr($_SERVER['PHP_SELF'], -11) != "console.php") { $prevFolder = "../../"; include_once "../../_setup.php"; include_once "../../classes/member.php"; include_once "../../classes/rank.php"; include_once "../../classes/consolecategory.php"; // Plugin Info $PLUGIN_TABLE_NAME = $dbprefix . "youtube"; $PLUGIN_NAME = "Youtube Connect"; // Start Page $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("Youtube Connect"); $consoleObj->select($cID); $consoleInfo = $consoleObj->get_info_filtered(); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $memberInfo = $member->get_info_filtered(); // Check Login $LOGIN_FAIL = true; if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) { $LOGIN_FAIL = false; } else { die($MAIN_ROOT . "members"); } include "youtube.php"; } else { $memberInfo = $member->get_info_filtered(); $consoleObj->select($_GET['cID']); include_once "../plugins/youtube/youtube.php"; if (!$member->hasAccess($consoleObj)) { exit;
* E-mail: support@bluethrust.com * Website: http://www.bluethrust.com * * 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']); ?>
<?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!"; } ?>
* Website: http://www.bluethrust.com * * License: http://www.bluethrust.com/license.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/event.php"; // Start Page $consoleObj = new ConsoleOption($mysqli); $cID = $consoleObj->findConsoleIDByName("View Event Invitations"); $consoleObj->select($cID); $consoleInfo = $consoleObj->get_info_filtered(); $member = new Member($mysqli); $member->select($_SESSION['btUsername']); $eventObj = new Event($mysqli); // Check Login if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) { $memberInfo = $member->get_info(); } else { exit; } } else { $memberInfo = $member->get_info(); $consoleObj->select($consoleObj->findConsoleIDByName("View Event Invitations")); if (!$member->hasAccess($consoleObj)) { exit; } } $result = $mysqli->query("SELECT em.* FROM " . $dbprefix . "events_members em, " . $dbprefix . "events e WHERE em.event_id = e.event_id AND em.hide = '0' AND em.member_id = '" . $memberInfo['member_id'] . "'");