本文整理汇总了PHP中ConsoleOption类的典型用法代码示例。如果您正苦于以下问题:PHP ConsoleOption类的具体用法?PHP ConsoleOption怎么用?PHP ConsoleOption使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ConsoleOption类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkManageAllEvents
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;
}
示例2: ConsoleOption
/*
* 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
示例3: ConsoleOption
* 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();
示例4: ConsoleOption
/*
* 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.";
示例5: Member
/*
* 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");
示例6: ConsoleOption
* 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();
示例7: json_decode
* 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";
示例8: ConsoleOption
/*
* 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 {
示例9: ConsoleOption
/*
* 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";
}
示例10: ConsoleOption
* 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) {
示例11: Member
* 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();
示例12: Member
* 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++;
示例13: Member
*
* 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";
}
}
示例14: ConsoleOption
* 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) {
示例15: Member
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%\"> <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++;