当前位置: 首页>>代码示例>>PHP>>正文


PHP ConsoleOption::findConsoleIDByName方法代码示例

本文整理汇总了PHP中ConsoleOption::findConsoleIDByName方法的典型用法代码示例。如果您正苦于以下问题:PHP ConsoleOption::findConsoleIDByName方法的具体用法?PHP ConsoleOption::findConsoleIDByName怎么用?PHP ConsoleOption::findConsoleIDByName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ConsoleOption的用法示例。


在下文中一共展示了ConsoleOption::findConsoleIDByName方法的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;
 }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:14,代码来源:event.php

示例2: ConsoleOption

 *
 * License: http://www.bluethrust.com/license.php
 *
 */
if (!isset($member)) {
    exit;
} else {
    $memberInfo = $member->get_info_filtered();
    $consoleObj->select($_GET['cID']);
    if (!$member->hasAccess($consoleObj)) {
        exit;
    }
}
echo "\n<script type='text/javascript'>\n\n\$(document).ready(function() {\n\$('#breadCrumb').html(\"<a href='" . $MAIN_ROOT . "'>Home</a> > <a href='" . $MAIN_ROOT . "members'>My Account</a> > Manage Console Options\");\n});\n\n</script>\n";
$cOptObj = new ConsoleOption($mysqli);
$intAddConsoleOptionsCID = $cOptObj->findConsoleIDByName("Add Console Option");
$intManageConsoleCatCID = $cOptObj->findConsoleIDByName("Manage Console Categories");
if ($cID == "") {
    $cID = $cOptObj->findConsoleIDByName("Manage Console Options");
}
$arrConsoleCatIDs = array();
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "consolecategory ORDER BY ordernum DESC");
while ($row = $result->fetch_assoc()) {
    $arrConsoleCatIDs[] = $row['consolecategory_id'];
}
foreach ($arrConsoleCatIDs as $consoleCatID) {
    $consoleCatObj->select($consoleCatID);
    $consoleCatInfo = $consoleCatObj->get_info_filtered();
    $catAssoc = $consoleCatObj->getAssociateIDs("ORDER BY sortnum");
    $dispConsoles .= "<tr><td class='dottedLine main' style='text-decoration: underline; padding-top: 5px; padding-bottom: 5px'><b>" . $consoleCatInfo['name'] . "</b></td><td colspan='2' class='dottedLine' align='center'><a href='javascript:void(0)' onclick=\"addSeparator('" . $consoleCatInfo['consolecategory_id'] . "')\"><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/insertseparator1.png' title='Insert Separator in " . $consoleCatInfo['name'] . "'></td><td colspan='2' class='dottedLine' align='center'><a href='" . $MAIN_ROOT . "members/console.php?cID=" . $intManageConsoleCatCID . "&catID=" . $consoleCatInfo['consolecategory_id'] . "&action=edit'><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/edit.png' width='24' height='24' title='Edit Console Category'></a></tr>";
    $intHighestOrder = count($catAssoc);
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:main.php

示例3: 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/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();
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:appdecision.php

示例4: ConsoleOption

<?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>";
开发者ID:bluethrust,项目名称:clanscriptsv4,代码行数:31,代码来源:_menus.php

示例5: 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/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";
        }
    }
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:deleteevent.php

示例6: 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");
            echo "<p align='center'>Are you sure you want to delete the medal <b>" . $medalName . "</b>?</p>";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:delete.php

示例7: ConsoleOption

 *
 * 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();
            if ($profileOptionInfo['profilecategory_id'] == $_POST['catID']) {
                $arrAssociates = $profileCatObj->getAssociateIDs("ORDER BY sortnum");
                $highestIndex = count($arrAssociates) - 1;
                $arrFlipped = array_flip($arrAssociates);
                if ($highestIndex > 0) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:profilelist.php

示例8: 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/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);
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:deletecomment.php

示例9: 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" || !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)) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:invitelist.php

示例10: Member

 * 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++;
                $dispError .= "&nbsp;&nbsp;<b>middot;</b> You must enter a stat name.<br>";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:add.php

示例11: 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";
    }
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:move.php

示例12: Member

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++;
            }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:main.php

示例13: Member

include "../themes/" . $THEME . "/_header.php";
$breadcrumbObj->setTitle($consoleTitle);
$breadcrumbObj->addCrumb("Home", $MAIN_ROOT);
$breadcrumbObj->addCrumb("My Account", $MAIN_ROOT . "members/index.php?select=" . $consoleInfo['consolecategory_id']);
$breadcrumbObj->addCrumb($consoleTitle);
$hooksObj->addHook("breadcrumb", "resetConsoleBreadcrumb");
$member = new Member($mysqli);
$checkMember = $member->select($_SESSION['btUsername']);
$LOGIN_FAIL = true;
if ($checkMember) {
    if ($member->authorizeLogin($_SESSION['btPassword'])) {
        $LOGIN_FAIL = false;
        $memberInfo = $member->get_info();
        $_SESSION['lastConsoleCategory'] = array("catID" => $consoleInfo['consolecategory_id'], "exptime" => time() + 300);
        // Check for IA
        if ($memberInfo['onia'] == 1 && $cID != $consoleObj->findConsoleIDByName("Cancel IA")) {
            $cancelIACID = $consoleObj->findConsoleIDByName("Cancel IA");
            echo "\n\t\t\t\n\t\t\t\t<div id='iaMessage' style='display: none'>\n\t\t\t\t\t<p class='main' align='center'>You are currently Inactive!<br><br>While inactive, you do not have access to console options.<br><br><a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cancelIACID . "'><b>Click Here</b></a> to become active again!</p>\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\tpopupDialog('Inactive Member', '" . $MAIN_ROOT . "members', 'iaMessage');\n\t\t\t\t</script>\n\t\t\t";
            exit;
        }
        $memberRankID = $memberInfo['rank_id'];
        define("MEMBERRANK_ID", $memberRankID);
        $memberRank = new Rank($mysqli);
        $memberRank->select($memberRankID);
        $rankPrivileges = $memberRank->get_privileges();
        if ($member->hasAccess($consoleObj) || $consoleInfo['pagetitle'] == "Manage Forum Posts" && !isset($_GET['noaccess'])) {
            //$getClanInfo = $mysqli->query("SELECT * FROM ".$dbprefix."websiteinfo WHERE websiteinfo_id = '1'");
            $arrClanInfo = $websiteInfo;
            //$getClanInfo->fetch_assoc();
            // Console Security
            define("PREVENT_HACK", $arrClanInfo['preventhack']);
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:console.php

示例14: ConsoleOption

<?php

if (!isset($member) || substr($_SERVER['PHP_SELF'], -11) != "console.php" || !isset($_GET['cID'])) {
    include_once "../../../../_setup.php";
    include_once "../../../../classes/member.php";
    include_once "../../../../classes/customform.php";
    // Start Page
    $consoleObj = new ConsoleOption($mysqli);
    $cID = $consoleObj->findConsoleIDByName("View Custom Form Submissions");
    $consoleObj->select($cID);
    $consoleInfo = $consoleObj->get_info_filtered();
    $member = new Member($mysqli);
    $member->select($_SESSION['btUsername']);
    $customFormPageObj = new CustomForm($mysqli);
    // Check Login
    if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj) && $customFormPageObj->select($_POST['cfID'])) {
        $memberInfo = $member->get_info();
    } else {
        exit;
    }
} else {
    $memberInfo = $member->get_info();
    $consoleObj->select($consoleObj->findConsoleIDByName("View Custom Form Submissions"));
    if (!$member->hasAccess($consoleObj)) {
        exit;
    }
}
$arrSubmissions = $customFormPageObj->getSubmissions();
foreach ($arrSubmissions as $submissionID) {
    $customFormPageObj->objSubmission->select($submissionID);
    if ($customFormPageObj->objSubmission->get_info("seenstatus") == 0) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:submissiondetail.php

示例15: Member

 *
 * 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;
            foreach ($_SESSION['btAccessRules'] as $key => $accessInfo) {
                if ($accessInfo['mID'] == $_POST['mID']) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:add.php


注:本文中的ConsoleOption::findConsoleIDByName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。