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


PHP Member::hasAccess方法代码示例

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


在下文中一共展示了Member::hasAccess方法的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

 */
include_once "../../../../_setup.php";
include_once "../../../../classes/member.php";
include_once "../../../../classes/rank.php";
include_once "../../../../classes/consoleoption.php";
include_once "../../../../classes/downloadcategory.php";
$consoleObj = new ConsoleOption($mysqli);
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$downloadCatObj = new DownloadCategory($mysqli);
$cID = $consoleObj->findConsoleIDByName("Manage Download Categories");
$consoleObj->select($cID);
$_GET['cID'] = $cID;
if ($member->authorizeLogin($_SESSION['btPassword'])) {
    $memberInfo = $member->get_info_filtered();
    if ($member->hasAccess($consoleObj) && $downloadCatObj->select($_POST['catID'])) {
        define('MEMBERRANK_ID', $memberInfo['rank_id']);
        $downloadCatInfo = $downloadCatObj->get_info_filtered();
        $arrCats = $downloadCatObj->getAssociateIDs();
        if (count($arrCats) > 0) {
            echo "<div id='newDeleteMessage' style='display: none'><p align='center'>There are currently downloads with the download category <b>" . $downloadCatInfo['name'] . "</b>.  Please move all downloads out of this category before deleting it.</p></div>";
            echo "\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\t\$('#deleteMessage').dialog('close');\n\t\t\t\t\t\t\$('#newDeleteMessage').dialog({\n\t\t\t\t\t\t\n\t\t\t\t\t\t\ttitle: 'Manage Download Categories - Delete',\n\t\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\t\tzIndex: 9999,\n\t\t\t\t\t\t\tresizable: false,\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\tbuttons: {\n\t\t\t\t\t\t\t\t'OK': function() {\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}\n\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t</script>\n\t\t\t";
        } elseif ($_POST['confirm'] == "1") {
            $downloadCatObj->delete();
            include "main.php";
        } else {
            echo "<p align='center'>Are you sure you want to delete the download category <b>" . $downloadCatInfo['name'] . "</b>?</p>";
        }
    } elseif (!$downloadCatObj->select($_POST['catID'])) {
        echo "<p align='center'>Unable find the selected download category.  Please try again or contact the website administrator.</p>";
    }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:delete.php

示例3: ConsoleOption

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;
                $newMemberSquadRank = $squadRankList[$squadRankKey];
                $squadAppObj->update(array("dateaction", "status", "squadmember_id"), array(time(), "1", $memberInfo['member_id']));
                $arrColumns = array("squad_id", "member_id", "squadrank_id", "datejoined");
                $arrValues = array($squadAppInfo['squad_id'], $squadAppInfo['member_id'], $newMemberSquadRank, time());
                $squadObj->objSquadMember->addNew($arrColumns, $arrValues);
                $intViewSquadsCID = $consoleObj->findConsoleIDByName("View Your Squads");
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:appdecision.php

示例4: Member

 * 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>";
        }
    } elseif (!$medalObj->select($_POST['itemID'])) {
        echo "<p align='center'>Unable find the selected medal.  Please try again or contact the website administrator.</p>";
    }
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:delete.php

示例5: ConsoleOption

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) {
                    if ($arrFlipped[$_POST['oID']] == $highestIndex) {
                        $temp = $highestIndex - 1;
                        $selectedOption = $arrAssociates[$temp];
                    } else {
                        $temp = $arrFlipped[$_POST['oID']] + 1;
                        $selectedConsole = $arrAssociates[$temp];
                    }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:profilelist.php

示例6: Member

$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'])) {
    $memberInfo = $member->get_info_filtered();
    define("LOGGED_IN", true);
    if ($member->hasAccess($consoleObj)) {
        if (!$objManageList->blnConfirmDelete || isset($_POST['confirm']) && $objManageList->blnConfirmDelete) {
            $objManageList->delete();
            include $objManageList->strMainListLink;
            include BASE_DIRECTORY . "members/console.managelist.list.php";
        } else {
            echo "\n\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\tAre you sure you want to delete <b>" . $objManageList->strDeleteName . "</b>?\n\t\t\t\t</p>\n\t\t\t";
        }
    }
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:console.managelist.delete.php

示例7: ConsoleOption

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 {
    $memberInfo = $member->get_info();
    $consoleObj->select($consoleObj->findConsoleIDByName("Manage My Events"));
    if (!$member->hasAccess($consoleObj) || !$eventObj->memberHasAccess($memberInfo['member_id'], "eventpositions")) {
        exit;
    }
}
echo "\n<table class='formTable' style='border-spacing: 0px; margin-top: 0px'>\n\t<tr><td colspan='5' class='dottedLine'></td></tr>\n";
$counter = 0;
$x = 1;
$eventObj->objEventPosition->setCategoryKeyValue($eventInfo['event_id']);
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:manageposition_main.php

示例8: 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/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";
    }
} else {
    echo "no";
}
?>

开发者ID:nsystem1,项目名称:clanscripts,代码行数:29,代码来源:deletetournament.php

示例9: Member

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 ($_POST['comment'] == 1) {
    $checkMessage = $eventObj->objEventMessageComment->select($_POST['messageID']);
    $objMessage = $eventObj->objEventMessageComment;
    $eventMessageID = $objMessage->get_info("eventmessage_id");
    $eventObj->objEventMessage->select($eventMessageID);
    $eventID = $eventObj->objEventMessage->get_info("event_id");
} else {
    $checkMessage = $eventObj->objEventMessage->select($_POST['messageID']);
    $objMessage = $eventObj->objEventMessage;
    $eventID = $objMessage->get_info("event_id");
}
if ($member->authorizeLogin($_SESSION['btPassword']) && $checkMessage) {
    $eventObj->select($eventID);
    $eventInfo = $eventObj->get_info_filtered();
    $memberInfo = $member->get_info_filtered();
    if ($member->hasAccess($consoleObj) && $eventObj->memberHasAccess($memberInfo['member_id'], "managemessages") || $memberInfo['rank_id'] == 1) {
        $objMessage->delete();
    }
    include "eventmessages.php";
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:deletemessage.php

示例10: notifyManagers

 public function notifyManagers()
 {
     $webInfoObj = new WebsiteInfo($this->MySQL);
     $memberObj = new Member($this->MySQL);
     $consoleObj = new ConsoleOption($this->MySQL);
     $webInfoObj->select(1);
     $webInfo = $webInfoObj->get_info_filtered();
     $viewMemberAppCID = $consoleObj->findConsoleIDByName("View Member Applications");
     $consoleObj->select($viewMemberAppCID);
     $arrBCC = array();
     $result = $this->MySQL->query("SELECT member_id FROM " . $this->MySQL->get_tablePrefix() . "members WHERE disabled = '0'");
     while ($row = $result->fetch_assoc()) {
         $memberObj->select($row['member_id']);
         if ($memberObj->hasAccess($consoleObj)) {
             if ($memberObj->get_info("email") != "") {
                 $arrBCC[] = array("email" => $memberObj->get_info("email"), "name" => $memberObj->get_info("username"));
             }
             $memberObj->postNotification("A new member has signed up!  Go to the <a href='" . MAIN_ROOT . "members/console.php?cID=" . $viewMemberAppCID . "'>View Member Applications</a> page to review the application.");
         }
     }
     $subject = $webInfo['clanname'] . ": New Member Application";
     $message = "A new member, " . $this->arrObjInfo['username'] . ", has signed up at your website: <a href='" . FULL_SITE_URL . "'>" . $webInfo['clanname'] . "</a>!";
     $webInfoObj->objBTMail->sendMail("", $subject, $message, array("bcc" => $arrBCC));
 }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:24,代码来源:memberapp.php

示例11: ConsoleOption

<?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']) && $memberAppObj->get_info("memberadded") == 1) {
    $memberAppUser = $memberAppObj->get_info_filtered("username");
    if (!$memberAppObj->delete()) {
        echo "\n\t\t\t<div id='memberAppMessage' style='display: none'>\n\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\tUnable to remove member application!  Please contact the website administrator.\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\n\t\t\t<script type='text/javascript'>\n\t\t\n\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\n\t\t\t\t\t\$('#memberAppMessage').dialog({\n\t\t\t\t\t\n\t\t\t\t\t\ttitle: 'Remove Member Application - Error',\n\t\t\t\t\t\twidth: 400,\n\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t'OK': function() {\n\t\t\t\t\t\t\t\t\$(this).dialog('close');\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\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t});\n\t\t\t\n\t\t\t</script>\n\t\t";
    } else {
        $member->logAction("Removed the member application for " . $memberAppUser . ".");
    }
    include "memberapplist.php";
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:removememberapp.php

示例12: ConsoleOption

 */
include_once "../../../_setup.php";
include_once "../../../classes/member.php";
include_once "../../../classes/rank.php";
include_once "../../../classes/tournament.php";
include_once "../../../classes/squad.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);
$squadObj = new Squad($mysqli);
if ($member->authorizeLogin($_SESSION['btPassword']) && $squadObj->select($_POST['squadID']) && $tournamentObj->objTeam->select($_POST['teamID']) && $member->hasAccess($consoleObj)) {
    $memberInfo = $member->get_info_filtered();
    $teamInfo = $tournamentObj->objTeam->get_info_filtered();
    $tournamentObj->select($teamInfo['tournament_id']);
    $tournamentInfo = $tournamentObj->get_info();
    if ($tournamentInfo['member_id'] == $memberInfo['member_id'] || $memberInfo['rank_id'] == 1 || $tournamentObj->isManager($memberInfo['member_id'])) {
        $arrSquadMembers = $squadObj->getMemberListSorted();
        echo "\n\t\t\t<input type='hidden' value='" . $squadObj->get_info_filtered("name") . "' id='squadName'>\n\t\t\t<div id='squadMemberList' style='max-height: 200px; overflow-y: auto'>\n\t\t\t<table class='formTable' style='width: 95%'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td></td>\n\t\t\t\t\t<td class='main' align='center'>\n\t\t\t\t\t\t<a href='javascript:void(0)' id='checkAllLink'>Check All</a>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t";
        foreach ($arrSquadMembers as $value) {
            if ($member->select($value)) {
                $tempMemberInfo = $member->get_info_filtered();
                echo "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='formLabel'>" . $tempMemberInfo['username'] . "</td>\n\t\t\t\t\t\t<td class='main' align='center'><input type='checkbox' value='" . $tempMemberInfo['member_id'] . "'></td>\n\t\t\t\t\t</tr>\n\t\t\t\t";
            }
        }
        $member->select($memberInfo['member_id']);
        echo "\n\t\t\t</table>\n\t\t\t</div>\n\t\t\t\n\t\t\t<script type='text/javascript'>\n\t\t\t\n\t\t\t\tvar intCheckAll = 1;\n\t\t\t\n\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\$('#checkAllLink').click(function() {\n\t\t\t\t\t\n\t\t\t\t\t\t\$('#squadMemberList input[type=checkbox]').each(function() {\n\t\t\t\t\t\t\tif(intCheckAll == 1) {\n\t\t\t\t\t\t\t\t\$(this).attr('checked', true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\$(this).attr('checked', false);\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\tif(intCheckAll == 1) {\n\t\t\t\t\t\t\tintCheckAll = 0;\n\t\t\t\t\t\t\t\$('#checkAllLink').html('Uncheck All');\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tintCheckAll = 1;\n\t\t\t\t\t\t\t\$('#checkAllLink').html('Check All');\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\n\t\t\t\t});\n\t\t\t\n\t\t\t</script>\n\t\t\t\n\t\t";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:squadmemberlist.php

示例13: Member

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();
                if ($memInfo['profilepic'] == "") {
                    $dispProfilePic = $MAIN_ROOT . "themes/" . $THEME . "/images/defaultprofile.png";
                } else {
                    $dispProfilePic = $MAIN_ROOT . $memInfo['profilepic'];
                }
                $dispDeleteMessage = "";
                if ($eventObj->memberHasAccess($memberInfo['member_id'], "managemessages")) {
                    $dispDeleteMessage = " - <a href='javascript:void(0)' onclick=\"deleteMessage('" . $row['comment_id'] . "', 'c')\">Delete</a>";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:postcomment.php

示例14: ConsoleOption

 *
 * License: http://www.bluethrust.com/license.php
 *
 */
if (!defined("SHOW_MANAGERLIST")) {
    include_once "../../../_setup.php";
    include_once "../../../classes/member.php";
    include_once "../../../classes/rank.php";
    include_once "../../../classes/tournament.php";
    $consoleObj = new ConsoleOption($mysqli);
    $cID = $consoleObj->findConsoleIDByName("Manage Tournaments");
    $consoleObj->select($cID);
    $member = new Member($mysqli);
    $member->select($_SESSION['btUsername']);
    $tournamentObj = new Tournament($mysqli);
    if (!$member->authorizeLogin($_SESSION['btPassword']) || !$tournamentObj->select($_POST['tID']) || $tournamentObj->get_info("member_id") != $memberInfo['member_id'] || !$member->hasAccess($consoleObj)) {
        exit;
    }
}
$arrManagers = $tournamentObj->getManagers();
foreach ($arrManagers as $tManagerID => $tMemberID) {
    $member->select($tMemberID);
    echo "<div class='mttPlayerSlot main'>" . $member->getMemberLink() . "<div class='mttDeletePlayer'><a href='javascript:void(0)' onclick=\"deleteManager('" . $tManagerID . "')\">X</a></div></div>";
}
if (count($arrManagers) == 0) {
    echo "\n\t\t<div class='shadedBox' style='width: 75%; margin-top: 10px; margin-left: auto; margin-right: auto'>\n\t\t\t<p class='main' align='center'>\n\t\t\t\t<i>No managers assigned to this tournament.</i>\n\t\t\t</p>\n\t\t</div>\n\t";
}
$member->select($memberInfo['member_id']);
?>

开发者ID:nsystem1,项目名称:clanscripts,代码行数:29,代码来源:managerlist.php

示例15: 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/poll.php";
// Start Page
$consoleObj = new ConsoleOption($mysqli);
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$createPollCID = $consoleObj->findConsoleIDByName("Create a Poll");
$consoleObj->select($createPollCID);
$blnConsoleCheck1 = $member->hasAccess($consoleObj);
$managePollsCID = $consoleObj->findConsoleIDByName("Manage Polls");
$consoleObj->select($managePollsCID);
$blnConsoleCheck2 = $member->hasAccess($consoleObj);
$blnConsoleCheck = $blnConsoleCheck1 || $blnConsoleCheck2;
$pollObj = new Poll($mysqli);
// Check Login
$LOGIN_FAIL = true;
if ($member->authorizeLogin($_SESSION['btPassword']) && $blnConsoleCheck) {
    $pollObj->moveCache($_POST['direction'], $_POST['optionOrder']);
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:moveoption.php


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