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


PHP Member::select方法代码示例

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


在下文中一共展示了Member::select方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dispLoggedIn

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>&middot;</b> <a href='".$MAIN_ROOT."members'>My Account</a><br>
    		<b>&middot;</b> <a href='".$MAIN_ROOT."members/console.php?cID=".$arrLoginInfo['pmCID']."'>PM Inbox ".$arrLoginInfo['pmCountDisp']."</a><br>
    		<b>&middot;</b> <a href='".$MAIN_ROOT."members/signout.php'>Sign Out</a><br>		
    	</div>
    
    ";
    */
    return $dispLoggedinBox;
}
开发者ID:bluethrust,项目名称:clanscriptsv4,代码行数:33,代码来源:_logindisplay.php

示例2: validateUsername

function validateUsername()
{
    global $formObj, $mysqli;
    $checkMemberObj = new Member($mysqli);
    if ($checkMemberObj->select($_POST['newusername'])) {
        $formObj->errors[] = "There is already a member with that username.";
    }
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:8,代码来源:changeusername.php

示例3: setupStreamPage

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

示例4: checkManageAllSquads

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

示例5: getViewAllMember

 /**
  *  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());
 }
开发者ID:madiarsa,项目名称:DVD-Rental,代码行数:20,代码来源:MemberController.php

示例6: dispIAMessages

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

示例7: ConsoleOption

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

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

示例9: Member

<?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";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:27,代码来源:signout.php

示例10: Member

    $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'])) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:eventmessages.php

示例11: Basic

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

示例12: Member

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

示例13: getPreciseTime

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

示例14: ConsoleOption

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

示例15: dispMenu

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'] . "'>&nbsp;&nbsp;" . $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'] . "'>&nbsp;&nbsp;" . $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'] . "'>&nbsp;&nbsp;" . $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'] . "'>&nbsp;&nbsp;" . $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 {
//.........这里部分代码省略.........
开发者ID:bluethrust,项目名称:clanscriptsv4,代码行数:101,代码来源:_menus.php


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