Beispiel #1
0
 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;
 }
Beispiel #2
0
/*
 * 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
 *
 */
// Config File
$prevFolder = "../";
include "../_setup.php";
// Check for valid Console Option
$consoleObj = new ConsoleOption($mysqli);
$checkConsole = $mysqli->query("SELECT console_id FROM " . $dbprefix . "console ORDER BY console_id");
while ($row = $checkConsole->fetch_assoc()) {
    $arrConsoleOptions[] = $row['console_id'];
}
if (!$consoleObj->select($_GET['cID'])) {
    die("<script type='text/javascript'>window.location = '" . $MAIN_ROOT . "members';</script>");
}
$cID = $_GET['cID'];
// Load any plugins
$consolePluginObj = new btPlugin($mysqli);
$arrPlugins = $consolePluginObj->getPluginPage("console");
foreach ($arrPlugins as $pluginPageInfo) {
    include_once $pluginPageInfo['pagepath'];
}
// Start Page
Beispiel #3
0
 * 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/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();
Beispiel #4
0
/*
 * 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";
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("IP Banning");
$consoleObj->select($cID);
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) {
    $memberInfo = $member->get_info_filtered();
} else {
    exit;
}
$countErrors = 0;
$arrErrors = array();
// Check IP
if (trim($_POST['ipaddress']) == "") {
    $countErrors++;
    $arrErrors[] = "IP address may not be blank.";
Beispiel #5
0
/*
 * 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";
$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");
Beispiel #6
0
 * 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";
include_once "../../../../classes/profilecategory.php";
include_once "../../../../classes/profileoption.php";
$consoleObj = new ConsoleOption($mysqli);
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$profileCatObj = new ProfileCategory($mysqli);
$profileObj = new ProfileOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Manage Profile Options");
$consoleObj->select($cID);
$_GET['cID'] = $cID;
if ($member->authorizeLogin($_SESSION['btPassword'])) {
    $memberInfo = $member->get_info_filtered();
    $selectedOption = "";
    $addSQL = "";
    if ($member->hasAccess($consoleObj) && $profileCatObj->select($_POST['catID'])) {
        if ($_POST['oID'] != "" and $profileObj->SELECT($_POST['oID'])) {
            $addSQL = " AND profileoption_id != '" . $_POST['oID'] . "'";
            $profileOptionInfo = $profileObj->get_info_filtered();
 * Author: Bluethrust Web Development
 * E-mail: support@bluethrust.com
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
if (!defined("LOGGED_IN") || !LOGGED_IN) {
    $setupManageListArgs = json_decode($_POST['listArgs'], true);
    include "../_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);
    if (!$consoleObj->select($setupManageListArgs['console_id'])) {
        exit;
    }
    if (!$member->authorizeLogin($_SESSION['btPassword']) || !$member->hasAccess($consoleObj)) {
        exit;
    }
    $actionsWidth = count($setupManageListArgs['actions']) * 6;
    $titleWidth = 100 - $actionsWidth;
}
echo "\n\t\n\t\t<table class='formTable' style='border-spacing: 0px; margin-top: 0px'>\n\t";
$counter = 0;
foreach ($setupManageListArgs['items'] as $itemInfo) {
    if ($itemInfo['type'] == "listitem") {
        if ($counter == 1) {
            $addCSS = " alternateBGColor";
/*
 * 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/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;
if ($_POST['whichValue'] == "" || !is_numeric($_POST['whichValue'])) {
    $componentIndex = $_SESSION['btFormComponentCount'];
    $tempArr = $_SESSION['btFormComponent'][$componentIndex]['cOptions'];
    asort($tempArr);
} else {
/*
 * 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/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";
    }
Beispiel #10
0
 * 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
 *
 */
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) {
Beispiel #11
0
 * 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";
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();
Beispiel #12
0
 * 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";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$consoleObj = new ConsoleOption($mysqli);
$manageCID = $consoleObj->findConsoleIDByName("Manage Games Played");
$consoleObj->select($manageCID);
$checkAccess1 = $member->hasAccess($consoleObj);
$addCID = $consoleObj->findConsoleIDByName("Add Games Played");
$consoleObj->select($addCID);
$checkAccess2 = $member->hasAccess($consoleObj);
$checkAccess = $checkAccess1 || $checkAccess2;
if ($member->authorizeLogin($_SESSION['btPassword'])) {
    $memberInfo = $member->get_info_filtered();
    if ($checkAccess) {
        if ($_POST['submit']) {
            $countErrors = 0;
            // Check Stat Name
            if (trim($_POST['statName'] == "")) {
                $countErrors++;
Beispiel #13
0
 *
 * 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";
include_once "../../../../classes/rank.php";
include_once "../../../../classes/pmfolder.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$pmFolderObj = new PMFolder($mysqli);
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Manage PM Folders");
$consoleObj->select($cID);
if ($member->authorizeLogin($_SESSION['btPassword'])) {
    $memberInfo = $member->get_info_filtered();
    $arrSpecialFolders = array(0, -1, -2);
    $pmFolderObj->intMemberID = $memberInfo['member_id'];
    if ($member->hasAccess($consoleObj) && $pmFolderObj->select($_POST['folder']) && $pmFolderObj->isMemberFolder() && !in_array($_POST['folder'], $arrSpecialFolders)) {
        define('SHOW_FOLDERLIST', true);
        $pmFolderObj->setCategoryKeyValue($memberInfo['member_id']);
        $pmFolderObj->move($_POST['folderDir']);
        $pmFolderObj->resortOrder();
        $_GET['cID'] = $cID;
        include "folderlist.php";
    }
}
Beispiel #14
0
 * Copyright 2014
 *
 * Author: Bluethrust Web Development
 * E-mail: support@bluethrust.com
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
if (!isset($member) || substr($_SERVER['PHP_SELF'], -11) != "console.php") {
    $prevFolder = "../../../../";
    include_once $prevFolder . "_setup.php";
    include_once $prevFolder . "classes/member.php";
    include_once $prevFolder . "classes/rank.php";
    include_once $prevFolder . "classes/btplugin.php";
    $consoleObj = new ConsoleOption($mysqli);
    $cID = $consoleObj->findConsoleIDByName("Plugin Manager");
    $consoleObj->select($cID);
    $member = new Member($mysqli);
    $member->select($_SESSION['btUsername']);
    if (!$member->authorizeLogin($_SESSION['btPassword']) || !$member->hasAccess($consoleObj)) {
        exit;
    }
    $pluginObj = new btPlugin($mysqli);
}
echo "\n<table class='formTable' style='margin-top: 0px; border-spacing: 0px'>\n\t";
$dispPlugins = "";
$pluginsDir = scandir($prevFolder . "plugins");
$addCSS = "";
$x = 0;
foreach ($pluginsDir as $dir) {
Beispiel #15
0
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;
            $result = $mysqli->query("SELECT * FROM " . $dbprefix . "ranks WHERE rank_id != '1' ORDER BY ordernum DESC");
            $dispRanks = "";
            while ($row = $result->fetch_assoc()) {
                if ($counter == 1) {
                    $addCSS = " alternateBGColor";
                    $counter = 0;
                } else {
                    $addCSS = "";
                    $counter = 1;
                }
                $dispRanks .= "\n\t\t\t\t<tr>\n\t\t\t\t<td class='dottedLine" . $addCSS . "' width=\"80%\">&nbsp;&nbsp;<span class='main'><b><a href='console.php?cID=" . $cID . "&rID=" . $row['rank_id'] . "&action=edit'>" . $row['name'] . "</a></b></td>\n\t\t\t\t<td align='center' class='dottedLine" . $addCSS . "' width=\"10%\"><a href='console.php?cID=" . $cID . "&rID=" . $row['rank_id'] . "&action=edit'><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/edit.png' title='Edit Rank'></a></td>\n\t\t\t\t<td align='center' class='dottedLine" . $addCSS . "' width=\"10%\"><a href='javascript:void(0)' onclick=\"deleteRank('" . $row['rank_id'] . "')\"><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/delete.png' title='Delete Rank'></a></td>\n\t\t\t\t</tr>\n\t\t\t\t";
                $x++;
/*
 * 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 "../_setup.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$imageSliderObj = new ImageSlider($mysqli);
$consoleObj = new ConsoleOption($mysqli);
$cID = $_GET['cID'];
$consoleObj->select($cID);
$consoleInfo = $consoleObj->get_info_filtered();
$_SERVER['PHP_SELF'] = "console.php";
$_GET['action'] = "delete";
if (substr($consoleInfo['filename'], 0, strlen("../")) != "../") {
    $requireFile = BASE_DIRECTORY . "members/include/" . $consoleInfo['filename'];
} else {
    $requireFile = $consoleInfo['filename'];
}
require $requireFile;
if (!isset($objManageList)) {
    exit;
}
if ($member->authorizeLogin($_SESSION['btPassword'])) {
Beispiel #17
0
 * Author: Bluethrust Web Development
 * E-mail: support@bluethrust.com
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
if (!isset($member) || !isset($squadObj) || substr($_SERVER['PHP_SELF'], -strlen("managesquad.php")) != "managesquad.php") {
    exit;
} else {
    // This is a little repeatative, but for security.
    $memberInfo = $member->get_info();
    $consoleObj->select($cID);
    $squadObj->select($sID);
    $manageAllSquadsCID = $consoleObj->findConsoleIDByName("Manage All Squads");
    $consoleAllSquads = new ConsoleOption($mysqli);
    $consoleAllSquads->select($manageAllSquadsCID);
    if (!$member->hasAccess($consoleObj) || $squadInfo['member_id'] != $memberInfo['member_id'] && !$member->hasAccess($consoleAllSquads)) {
        exit;
    }
}
echo "\n\n<script type='text/javascript'>\n\$(document).ready(function() {\n\$('#breadCrumbTitle').html(\"Close Squad\");\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=" . $squadInfo['squad_id'] . "'>" . $consoleTitle . "</a> > <b>" . $squadInfo['name'] . ":</b> Close Squad\");\n});\n</script>\n";
$dispError = "";
$countErrors = 0;
$squadMemberList = $squadObj->getMemberListSorted();
if ($_POST['submitted']) {
    if ($squadObj->delete()) {
        $dispMessage = "Successfully closed squad: <b>" . $squadInfo['name'] . "</b>";
        $dispFounderName = $member->getMemberLink();
        foreach ($squadMemberList as $memberID) {
            if ($memberID != $squadInfo['member_id']) {
Beispiel #18
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
 *
 */
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>";
    }
}
Beispiel #19
0
 * 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/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']);
<?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'])) {
    $arrMemAppInfo = $memberAppObj->get_info_filtered();
    if ($_POST['confirmDecline'] && $arrMemAppInfo['memberadded'] == 0) {
        if ($memberAppObj->delete()) {
            $memberAppObj->notifyNewMember(false);
            $member->logAction("Declined " . $arrMemAppInfo['username'] . "'s member application.");
            echo "\n\t\t\t\n\t\t\t\t<div id='resultDeclineMessage' style='display: none'>\n\t\t\t\t\t<p class='main' align='center'>" . $arrMemAppInfo['username'] . "'s member application has been declined!</p>\n\t\t\t\t</div>\n\t\t\t\n\t\t\t";
        } else {
            echo "\n\t\t\t\n\t\t\t<div id='resultDeclineMessage' style='display: none'>\n\t\t\t\t<p class='main' align='center'>Unable to decline " . $arrMemAppInfo['username'] . "'s member application!  Please contact the website administrator.</p>\n\t\t\t</div>\n\t\t\t\n\t\t\t";
/*
 * 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
 *
 */
if (!isset($member) || substr($_SERVER['PHP_SELF'], -11) != "console.php" || !isset($_GET['cID'])) {
    include_once "../../../../_setup.php";
    include_once "../../../../classes/member.php";
    // Start Page
    $consoleObj = new ConsoleOption($mysqli);
    $cID = $consoleObj->findConsoleIDByName("Diplomacy: Manage Clans");
    $consoleObj->select($cID);
    $consoleInfo = $consoleObj->get_info_filtered();
    $consoleTitle = $consoleInfo['pagetitle'];
    $member = new Member($mysqli);
    $member->select($_SESSION['btUsername']);
    // 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("Diplomacy: Manage Clans"));
Beispiel #22
0
     if ($PAGE_NAME == "") {
         $actualPageName = "Home Page";
     }
     $lastSeenLink = "<a href='" . $dispHTTP . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . "'>" . $actualPageName . "</a>";
     $arrUpdateColLastSeen = array("lastseen", "lastseenlink");
     $arrUpdateValLastSeen = array(time(), $lastSeenLink);
     if (time() - $memberInfo['lastlogin'] > 3600) {
         $arrUpdateColLastSeen[] = "lastlogin";
         $arrUpdateValLastSeen[] = time();
     }
     $memberObj->update($arrUpdateColLastSeen, $arrUpdateValLastSeen);
     $rankObj = new Rank($mysqli);
     $rankObj->select($memberInfo['rank_id']);
     $rankInfo = $rankObj->get_info();
     $memberRank = $rankInfo['name'];
     $consoleOptionObj = new ConsoleOption($mysqli);
     // Members Only Tagger
     $dispMembersOnlyTagger = "";
     if (isset($_SESSION['btMembersOnlyTagger']) && $_SESSION['btMembersOnlyTagger'] == 1 && substr($_SERVER['PHP_SELF'], -11) != "console.php") {
         $pageTaggerURL = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
         $taggerCID = $consoleOptionObj->findConsoleIDByName("Member's Only Pages");
         if ($taggerObj->select($pageTaggerURL, false)) {
             $pageTagStatus = "<span class='pendingFont'>Member's Only</span>";
             $dispTagOrUntag = "Untag";
         } else {
             $pageTagStatus = "<span class='publicNewsColor'>Public</span>";
             $dispTagOrUntag = "Tag";
         }
         $dispMembersOnlyTagger = "\n\t\t\t\t<div id='membersOnlyTagger'>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t<div id='membersOnlyLoadingSpiral' style='display: none'>\n\t\t\t\t\t\t<p align='center' class='main'>\n\t\t\t\t\t\t\t<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/loading-spiral2.gif'><br>Loading\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t<div id='membersOnlyTaggerHTML'>\n\t\t\t\t\t\t<p align='center' style='margin: 0px; margin-bottom: 15px'><b>Members Only Tagger: " . $actualPageName . "</b></p>\n\t\t\t\t\t\n\t\t\t\t\t\t<p align='center'>Current Status: " . $pageTagStatus . "<br>Return to <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $taggerCID . "'>Member's Only Pages</a></p>\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t<div class='taggerBottomLeft'><a href='javascript:void(0)' onclick='setMembersOnlyTaggerStatus()'>Turn Off</a></div>\n\t\t\t\t\t\t<div class='taggerBottomRight'><a href='javascript:void(0)' onclick='setMembersOnlyPageStatus()'>" . $dispTagOrUntag . " Page</a></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\t\t\n\t\t\t\t\tfunction setMembersOnlyTaggerStatus() {\n\t\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/include/admin/membersonlypagetagger.php', { setTaggerStatus: '1' }, function(data) {\n\t\t\t\t\t\t\t\t\$('#membersOnlyTagger').fadeOut(250);\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}\n\t\t\t\t\t\n\t\t\t\t\tfunction setMembersOnlyPageStatus() {\n\t\t\t\t\t\n\t\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\t\t\$('#membersOnlyTaggerHTML').hide();\n\t\t\t\t\t\t\t\$('#membersOnlyLoadingSpiral').show();\n\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/include/admin/membersonlypagetagger.php', { setPageStatus: '1', pageName: '" . filterText($actualPageName) . "', tagURL: '" . $pageTaggerURL . "' }, function(data) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$('#membersOnlyTaggerHTML').html(data);\n\t\t\t\t\t\t\t\t\$('#membersOnlyLoadingSpiral').hide();\n\t\t\t\t\t\t\t\t\$('#membersOnlyTaggerHTML').fadeIn(250);\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\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\t\n\t\t\t\t";
     }
 }
Beispiel #23
0
 * 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";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Add Profile Option");
$consoleObj->select($cID);
$checkAccess1 = $member->hasAccess($consoleObj);
$cID = $consoleObj->findConsoleIDByName("Manage Profile Options");
$consoleObj->select($cID);
$checkAccess2 = $member->hasAccess($consoleObj);
$checkAccess = $checkAccess1 || $checkAccess2;
if ($member->authorizeLogin($_SESSION['btPassword'])) {
    $memberInfo = $member->get_info_filtered();
    if ($checkAccess) {
        if (trim($_POST['selectValue']) != "") {
            $_SESSION['btProfileCache'][] = $_POST['selectValue'];
        }
        $_SESSION['btProfileCacheRefresh'] = true;
        include "view.php";
Beispiel #24
0
			<?php 
define("SHOW_MANAGERLIST", true);
include "include/managerlist.php";
?>
			</div>
		</div>
		<div class='mttRightColumn'>
			<div class='dottedLine' style='padding-bottom: 3px'><b>Assign Managers:</b></div>
			<p><b>Enter Username:</b></p>
			<input type='text' class='textBox' id='newManager'>
			<p><i>- OR -</i></p>
			<p><b>Select from player list:</b></p>
			<select id='newManagerSelect' class='textBox'>
				<option value=''>Select</option>
				<?php 
$tournamentConsoleCheck = new ConsoleOption($mysqli);
$tournamentConsoleCheck->select($cID);
$result = $mysqli->query("SELECT " . $dbprefix . "tournamentplayers.member_id FROM " . $dbprefix . "tournamentplayers, " . $dbprefix . "members, " . $dbprefix . "ranks WHERE " . $dbprefix . "members.member_id = " . $dbprefix . "tournamentplayers.member_id AND " . $dbprefix . "members.rank_id = " . $dbprefix . "ranks.rank_id AND " . $dbprefix . "tournamentplayers.tournament_id = '" . $tID . "' AND " . $dbprefix . "tournamentplayers.member_id != '0' ORDER BY " . $dbprefix . "ranks.ordernum DESC");
while ($row = $result->fetch_assoc()) {
    $member->select($row['member_id']);
    if ($member->hasAccess($tournamentConsoleCheck)) {
        echo "<option value='" . $row['member_id'] . "'>" . $member->getMemberLink() . "</option>";
    }
}
$member->select($memberInfo['member_id']);
?>
			</select>
			<br><br>
			<p align='center'>
				<input type='button' class='submitButton' value='Add Manager' id='btnAddManager'>
				
Beispiel #25
0
 *
 * 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";
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->select($_POST['eID'])) {
    $memberInfo = $member->get_info();
    $eventInfo = $eventObj->get_info_filtered();
    if ($eventInfo['member_id'] == $memberInfo['member_id']) {
        if ($_POST['confirmDelete'] == 1) {
            $eventObj->delete();
        } else {
            echo "\n\t\t\t\n\t\t\t\t<div id='confirmDeleteMessage' style='display: none'>\n\t\t\t\t\n\t\t\t\t\t<p class='main' align='center'>Are you sure you want to delete the event, <b>" . $eventInfo['title'] . "</b>?</p>\n\t\t\t\t\n\t\t\t\t</div>\t\t\t\n\t\t\t\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\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\n\t\t\t\t\t\t\ttitle: 'Delete Event',\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\twidth: 400,\n\t\t\t\t\t\t\tresizable: false,\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\n\t\t\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/events/include/deleteevent.php', { confirmDelete: 1, eID: '" . $eventInfo['event_id'] . "' }, function(data) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\twindow.location = '" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "'\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\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\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\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\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\t\n\t\t\t\t\n\t\t\t";
        }
    }
}
 * 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
 *
 */
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 {
Beispiel #27
0
<?php

// Check for Objects
if (!isset($consoleOptionObj)) {
    $consoleOptionObj = new ConsoleOption($mysqli);
}
if (!isset($memberObj)) {
    $memberObj = new Member($mysqli);
}
// SPECIAL MENU COMPONENTS
// Shoutbox
$arrShoutBoxIDs = array();
$manageNewsCID = $consoleOptionObj->findConsoleIDByName("Manage News");
$consoleOptionObj->select($manageNewsCID);
if ($memberObj->hasAccess($consoleOptionObj)) {
    $shoutBoxEditLink = $MAIN_ROOT . "members/console.php?cID=" . $manageNewsCID . "&newsID=";
    $shoutBoxDeleteLink = $MAIN_ROOT . "members/include/news/include/deleteshoutpost.php";
}
$postShoutboxCID = $consoleOptionObj->findConsoleIDByName("Post in Shoutbox");
$consoleOptionObj->select($postShoutboxCID);
if ($memberObj->hasAccess($consoleOptionObj)) {
    $shoutBoxPostLink = $MAIN_ROOT . "members/include/news/include/postshoutbox.php";
}
$arrSpecialMenuItems = array();
// TOP PLAYERS
$arrSpecialMenuItems['top-players'] = "&nbsp;&nbsp;<b>&middot;</b> <a href='" . $MAIN_ROOT . "top-players/recruiters.php'>Recruiters</a><br>";
$hpGameObj = new Game($mysqli);
$arrGames = $hpGameObj->getGameList();
foreach ($arrGames as $gameID) {
    $hpGameObj->select($gameID);
    $arrSpecialMenuItems['top-players'] .= "&nbsp;&nbsp;<b>&middot;</b> <a href='" . $MAIN_ROOT . "top-players/game.php?gID=" . $gameID . "'>" . $hpGameObj->get_info_filtered("name") . "</a><br>";
Beispiel #28
0
 public function prepareLinks($memberObj)
 {
     $this->memberObj->select($_SESSION['btUsername']);
     $consoleObj = new ConsoleOption($this->MySQL);
     $manageNewsCID = $consoleObj->findConsoleIDByName("Manage News");
     $consoleObj->select($manageNewsCID);
     if (LOGGED_IN && $this->memberObj->hasAccess($consoleObj)) {
         $this->strEditLink = MAIN_ROOT . "members/console.php?cID=" . $manageNewsCID . "&newsID=";
         $this->strDeleteLink = MAIN_ROOT . "members/include/news/include/deleteshoutpost.php";
     }
     $postInShoutboxCID = $consoleObj->findConsoleIDByName("Post in Shoutbox");
     $consoleObj->select($postInShoutboxCID);
     if (LOGGED_IN && $this->memberObj->hasAccess($consoleObj)) {
         $this->strPostLink = MAIN_ROOT . "members/include/news/include/postshoutbox.php";
     }
 }
<?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>&middot;</b> ', '', 'left');\nINSERT INTO `menuitem_custompage` (`menucustompage_id`, `menuitem_id`, `custompage_id`, `prefix`, `linktarget`, `textalign`) VALUES(2, 18, 11, '<b>&middot;</b> ', '', 'left');\n\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(1, 1, 'index.php', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(3, 8, 'news', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(4, 9, 'members.php', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(5, 10, 'ranks.php', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(6, 11, 'squads', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(7, 12, 'tournaments', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(8, 13, 'events', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(9, 14, 'medals.php', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(10, 15, 'diplomacy', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(11, 16, 'diplomacy/request.php', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(12, 20, 'forum', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(13, 21, 'signup.php', '', '<b>&middot;</b> ', 'left');\nINSERT INTO `menuitem_link` (`menulink_id`, `menuitem_id`, `link`, `linktarget`, `prefix`, `textalign`) VALUES(29, 45, 'forgotpassword.php', '', '<b>&middot;</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!";
}
?>
Beispiel #30
0
/*
 * 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/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();