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


PHP Member::get_info方法代码示例

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


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

示例1: 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

示例2: ConsoleOption

 */
include_once "../../../../_setup.php";
include_once "../../../../classes/member.php";
include_once "../../../../classes/rank.php";
include_once "../../../../classes/news.php";
include_once "../../../../classes/shoutbox.php";
// Start Page
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Post in Shoutbox");
$consoleObj->select($cID);
$consoleInfo = $consoleObj->get_info_filtered();
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$newsObj = new News($mysqli);
// Check Login
$LOGIN_FAIL = true;
if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) {
    $newsObj->addNew(array("member_id", "newstype", "newspost", "dateposted", "postsubject"), array($member->get_info("member_id"), 3, $_POST['message'], time(), "Shoutbox Post"));
    $mangeNewsCID = $consoleObj->findConsoleIDByName("Manage News");
    $consoleObj->select($manageNewsCID);
    $shoutboxObj = new Shoutbox($mysqli, "news", "news_id");
    $shoutboxObj->strDivID = filterText($_POST['updateDiv']);
    $shoutboxObj->intDispWidth = 140;
    $shoutboxObj->intDispHeight = 300;
    $shoutboxObj->blnUpdateShoutbox = true;
    if ($member->hasAccess($consoleObj)) {
        $shoutboxObj->strEditLink = $MAIN_ROOT . "members/console.php?cID=" . $manageNewsCID . "&newsID=";
        $shoutboxObj->strDeleteLink = $MAIN_ROOT . "members/include/news/include/deleteshoutpost.php";
    }
    echo $shoutboxObj->dispShoutbox();
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:postshoutbox.php

示例3: 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

示例4: Member

 $p = new paypal_class();
 $member = new Member($mysqli);
 $campaignInfo = $campaignObj->get_info_filtered();
 $p->setMode($donationPlugin->getConfigInfo("mode"));
 $link = $p->paypal_url . "?cmd=_donations";
 $_POST['business'] = $donationPlugin->getConfigInfo("email");
 $_POST['item_name'] = "Donation for " . $campaignInfo['title'];
 $_POST['notify_url'] = $notifyURL;
 $_POST['rm'] = 1;
 $_POST['return'] = FULL_SITE_URL . "plugins/donations/?campaign_id=" . $_GET['campaign_id'] . "&p=thankyou";
 if ($campaignInfo['currency'] != "") {
     $_POST['currency_code'] = $campaignInfo['currency'];
 }
 // Check For Custom Variables
 if (isset($_SESSION['btUsername']) && isset($_SESSION['btPassword']) && $member->select($_SESSION['btUsername']) && $member->authorizeLogin($_SESSION['btPassword'])) {
     $customVars['member_id'] = $member->get_info("member_id");
 }
 $customVars['campaign_id'] = $_GET['campaign_id'];
 $addToLink = "";
 $customVals = array("name", "message", "hideamount");
 $filterFormInputs = array("submit", "checkCSRF");
 if ($campaignInfo['minimumamount'] > 0 && $_POST['amount'] >= $campaignInfo['minimumamount'] || $campaignInfo['minimumamount'] <= 0) {
     foreach ($_POST as $key => $value) {
         if (in_array($key, $customVals)) {
             $customVars[$key] = $value;
         } elseif (!in_array($key, $filterFormInputs)) {
             $addToLink .= "&" . $key . "=" . $value;
         }
     }
     $jsonCustomVars = json_encode($customVars);
     $link .= "&custom=" . $jsonCustomVars . $addToLink;
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:paypal-redirect.php

示例5: ConsoleOption

 *
 */
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();
if ($member->authorizeLogin($_SESSION['btPassword']) && $tournamentObj->select($tID) && $member->hasAccess($consoleObj)) {
    $memberInfo = $member->get_info();
    $tmemberID = $tournamentObj->get_info("member_id");
    $tournamentInfo = $tournamentObj->get_info_filtered();
    if ($memberInfo['member_id'] == $tmemberID || $memberInfo['rank_id'] == "1" || $tournamentObj->isManager($memberInfo['member_id'])) {
        $arrPlayers = $tournamentObj->getPlayers();
        $playerList = urlencode($_POST['players']);
        $arrNewPlayers = explode("%0A", $playerList);
        $maxPlayers = $tournamentInfo['playersperteam'] * $tournamentInfo['maxteams'];
        if (count($arrNewPlayers) + count($arrPlayers) <= $maxPlayers) {
            foreach ($arrNewPlayers as $newPlayer) {
                $newPlayer = urldecode($newPlayer);
                $arrPlayers = $tournamentObj->getPlayers();
                if ($member->select($newPlayer)) {
                    $newPlayerID = $member->get_info("member_id");
                    if (!in_array($newPlayerID, $arrPlayers)) {
                        // Prevent multiple entries of same person
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:addplayers.php

示例6: time

    $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");
            $arrUpdateValLastSeen = array(time(), $lastSeenLink);
            if (time() - $memberInfo['lastlogin'] > 3600) {
                $arrUpdateColLastSeen[] = "lastlogin";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:include_header.php

示例7: DateTime

    $dispRankImg = "\n\t\t<div id='profilePageRankPic' class='main' style='margin-left: auto; margin-right: auto; text-align: center; margin-top: 5px; width: 150px; padding: 0px'>\n\t\t\t<img src='" . $rankInfo['imageurl'] . "' width='" . $rankInfo['imagewidth'] . "' height='" . $rankInfo['imageheight'] . "'>\n\t\t</div>\n\t";
}
$dispBirthday = "";
if ($memberInfo['birthday'] != 0) {
    $bdayDate = new DateTime();
    $bdayDate->setTimestamp($memberInfo['birthday']);
    $bdayDate->setTimezone(new DateTimeZone("UTC"));
    $formatBirthday = $bdayDate->format("M j, Y");
    $calcAge = floor((time() - $memberInfo['birthday']) / 31536000);
    $dispBirthday = "<br><br>\n\t<b>Birthday:</b><br>\n\t" . $formatBirthday . "<br><br>\n\t<b>Age:</b> " . $calcAge;
}
if ($memberInfo['lastseenlink'] == "") {
    $dispLastSeenLink = "No Where";
} else {
    $member->select($memberInfo['member_id']);
    $dispLastSeenLink = $member->get_info("lastseenlink");
}
$dispInactive = "";
if ($memberInfo['onia'] == 1) {
    $dispInactive = "<div style='display: inline-block; vertical-align: middle' class='failedFont tinyFont'>&nbsp;&nbsp;&nbsp;INACTIVE</div>";
}
$breadcrumbObj->setTitle("<div style='display: inline-block'>" . $memberInfo['username'] . "'s Profile</div><div id='profilePageOnlineStatus' style='display: inline-block; margin-left: 8px; vertical-align: middle'>" . $dispOnlineStatus . "</div>" . $dispInactive);
$breadcrumbObj->addCrumb("Home", $MAIN_ROOT);
$breadcrumbObj->addCrumb("Members", $MAIN_ROOT . "members.php");
$breadcrumbObj->addCrumb($memberInfo['username'] . "'s Profile");
include $prevFolder . "include/breadcrumb.php";
?>

<div style='position: relative; margin-left: auto; margin-right: auto; width: 95%; margin-top: 15px'>
	<div class='main userProfileLeft'>
	
开发者ID:nsystem1,项目名称:clanscripts,代码行数:30,代码来源:profile.php

示例8: array

        $arrLogColumns = array("member_id", "logdate", "message");
        $arrLogValues = array($row['member_id'], $time, "Disabled due to inactivity.");
        $logObj->addNew($arrLogColumns, $arrLogValues);
    }
}
// Disable members who fail to be promoted for auto-disable ranks
$arrRanks = array();
$result = $mysqli->query("SELECT rank_id FROM " . $dbprefix . "ranks WHERE autodisable != '0'");
while ($row = $result->fetch_assoc()) {
    $arrRanks[] = $row['rank_id'];
}
$sqlRanks = "('" . implode("','", $arrRanks) . "')";
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "members WHERE rank_id IN " . $sqlRanks . " AND onia = '0'");
while ($row = $result->fetch_assoc()) {
    $member->select($row['member_id']);
    $memberListInfo = $member->get_info();
    $rankObj->select($row['rank_id']);
    $memRankListInfo = $rankObj->get_info();
    if (floor(time() / 86400) - floor($memberListInfo['datejoined'] / 86400) >= $memRankListInfo['autodisable']) {
        $member->update(array("disabled", "disableddate"), array(1, $time));
        $member->logAction("Disabled for failure to be promoted before " . $memRankListInfo['autodisable'] . " days.");
    }
}
$rankCatObj = new RankCategory($mysqli);
$gameObj = new Game($mysqli);
$breadcrumbObj->setTitle("Members");
$breadcrumbObj->addCrumb("Home", $MAIN_ROOT);
$breadcrumbObj->addCrumb("Members");
include $prevFolder . "include/breadcrumb.php";
?>
<div id='tiltPhoneImg' style='display: none'><img src='<?php 
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:members.php

示例9: ConsoleOption

include $prevFolder . "_setup.php";
include_once $prevFolder . "classes/member.php";
include_once $prevFolder . "classes/poll.php";
$consoleObj = new ConsoleOption($mysqli);
$pollObj = new Poll($mysqli);
$member = new Member($mysqli);
if (!$pollObj->select($_GET['pID'])) {
    echo "\n\t\t<script type='text/javascript'>window.location = '" . $MAIN_ROOT . "';</script>\n\t";
    exit;
}
$viewPollResultsCID = $consoleObj->findConsoleIDByName("View Poll Results");
$consoleObj->select($viewPollResultsCID);
$pollInfo = $pollObj->get_info_filtered();
$member->select($_SESSION['btUsername']);
$blnMemberVoted = false;
if ($member->authorizeLogin($_SESSION['btPassword']) && $pollObj->hasVoted($member->get_info("member_id"))) {
    $blnMemberVoted = true;
}
if ($member->authorizeLogin($_SESSION['btPassword'])) {
    $memberInfo = $member->get_info_filtered();
}
$blnShowResults = false;
if ($pollObj->totalVotes() > 0 && ($member->hasAccess($consoleObj) || $pollInfo['member_id'] == $memberInfo['member_id'] || $pollInfo['resultvisibility'] == "open" || $pollInfo['resultvisibility'] == "votedonly" && $blnMemberVoted || $pollInfo['resultvisibility'] == "pollend" && $pollInfo['pollend'] < time())) {
    $blnShowResults = true;
}
if ($blnShowResults) {
    $arrResults = array("['Option', 'Votes']");
    $arrOptions = array();
    $x = 0;
    $countTotalVotes = 0;
    foreach ($pollObj->getPollResults() as $pollOptionID => $votes) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:view.php

示例10: foreach

if (count($arrAttachments) > 0 && $blnShowAttachments) {
    echo "\n\t\t\t\t<div class='forumAttachmentsContainer'>\n\t\t\t\t\t<b>Attachments:</b><br>\n\t\t\t\t\t";
    foreach ($arrAttachments as $downloadID) {
        $attachmentObj->select($downloadID);
        $attachmentInfo = $attachmentObj->get_info_filtered();
        $addS = $attachmentInfo['downloadcount'] != 1 ? "s" : "";
        $dispFileSize = $attachmentInfo['filesize'] / 1024;
        if ($dispFileSize < 1) {
            $dispFileSize = $attachmentInfo['filesize'] . "B";
        } elseif ($dispFileSize / 1024 < 1) {
            $dispFileSize = round($dispFileSize, 2) . "KB";
        } else {
            $dispFileSize = round($dispFileSize / 1024, 2) . "MB";
        }
        echo "<a href='" . $MAIN_ROOT . "downloads/file.php?dID=" . $downloadID . "'>" . $attachmentInfo['filename'] . "</a> - downloaded " . $attachmentInfo['downloadcount'] . " time" . $addS . " - " . $dispFileSize . "<br>";
    }
    echo "\n\t\t\t\t\t</div>\n\t\t\t\t\t";
}
if ($postMemberInfo['forumsignature'] != "" && $websiteInfo['forum_hidesignatures'] == 0) {
    echo "\n\t\t\t\t<div class='forumSignatureContainer'>" . parseBBCode($posterMemberObj->get_info("forumsignature")) . "</div>\n\t\t\t";
}
echo "<div class='forumManageLinks'>";
if ($this->blnManageable || $postMemberInfo['member_id'] == $memberInfo['member_id']) {
    echo "&raquo; <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $intManagePostsCID . "&pID=" . $postInfo['forumpost_id'] . "'>EDIT POST</a> &laquo;&nbsp&nbsp;&nbsp;";
    echo "&raquo; <a href='javascript:void(0)' onclick=\"deletePost('" . $postInfo['forumpost_id'] . "')\">DELETE POST</a> &laquo;&nbsp&nbsp;&nbsp;";
    $countManagablePosts++;
}
if (LOGGED_IN && $topicInfo['lockstatus'] == 0) {
    echo "&raquo; <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $intPostTopicCID . "&bID=" . $topicInfo['forumboard_id'] . "&tID=" . $topicInfo['forumtopic_id'] . "&quote=" . $postInfo['forumpost_id'] . "'>QUOTE</a> &laquo;";
}
echo "\n\t\t\t</div>\n\t\t\t</div>\n\t\t</div>";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:post.php

示例11: elseif

} elseif ($stage == "send" && $countErrors == 0) {
    if (isset($_POST['validator'])) {
        if ($_POST['validator'] != '20473833234') {
            $countErrors++;
            $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> Validator Entry Not Correct. Most likely due to an invalid form submission.<br>";
        }
    } else {
        $countErrors++;
        $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> Validator Entry Not Existant. Most likely due to an invalid form submission.<br>";
    }
    $username = $_POST['username'];
    $email = $_POST['email'];
    $changekey = sha1(rand(-100000, 100000) . rand(-100000, 100000) . $username);
    $time = time();
    if ($memberObj->select($username)) {
        if ($memberObj->get_info("email") == $email) {
            $emailvalid = true;
        } else {
            $countErrors++;
            $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> Email Address Not Valid.<br>";
        }
    } else {
        $countErrors++;
        $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> Username Not Valid.<br>";
    }
    if ($countErrors == 0) {
        $arrayCol = array('username', 'email', 'changekey', 'timeofrq');
        $arrayVal = array($username, $email, $changekey, $time);
        $forgotPassObj->addNew($arrayCol, $arrayVal);
        $subject = 'Your Forgotten Password Request - ' . $CLAN_NAME;
        $message = "\n<html>\n<body>\nHello,<br>\nYou've requested a change in your password on the clan website.<br>\n<br>\nPlease click the following link to continue and follow the instructions on the page it opens:<br>\n--------------------------------------------<br>\n<a href='{$url}?stage=validate&changekey={$changekey}'>{$url}?stage=validate&changekey={$changekey}</a><br>\n<br>\nThanks!\n";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:forgotpassword.php

示例12: Member

     if ($_POST['adminpassword'] != $_POST['adminpassword_repeat']) {
         $countErrors++;
         $dispError .= "&nbsp;&nbsp;<b>&middot;</b> Your passwords did not match.<br>";
     }
     if (strlen(trim($_POST['adminpassword'])) < 6) {
         $countErrors++;
         $dispError .= "&nbsp;&nbsp;<b>&middot;</b> The admin password must be at least 6 characters long.<br>";
     }
 } else {
     // Updating
     $member = new Member($mysqli);
     $member->select($_POST['adminusername']);
     if (!$member->authorizeLogin($_POST['adminpassword'], 1)) {
         $countErrors++;
         $dispError .= "&nbsp;&nbsp;<b>&middot;</b> The admin username/password combination was incorrect.<br>";
     } elseif ($member->authorizeLogin($_POST['adminpassword'], 1) && $member->get_info("rank_id") != 1) {
         $countErrors++;
         $dispError .= "&nbsp;&nbsp;<b>&middot;</b> You entered incorrect admin login information.<br>";
     }
 }
 // Check Admin Key
 if (strlen(trim($_POST['adminkey'])) < 3) {
     $countErrors++;
     $dispError .= "&nbsp;&nbsp;<b>&middot;</b> The admin key must be at least 3 characters long.<br>";
 }
 if ($_POST['adminkey'] != $_POST['adminkey_repeat']) {
     $countErrors++;
     $dispError .= "&nbsp;&nbsp;<b>&middot;</b> Your admin keys did not match.<br>";
 }
 if ($countErrors == 0) {
     echo "\n\t\t\t\t\t<table class='mainTable'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class='tdTitle'>\n\t\t\t\t\t\t\t\tInstalling Bluethrust Clan Scripts v4\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\tCreating Config File...<br><br>\n\t\t\t\t";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:step3.php

示例13: 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
 *
 */
include_once "../../_setup.php";
include_once "../../classes/member.php";
$prevFolder = "../../";
include "youtube.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$ytObj = new Youtube($mysqli);
if ($member->authorizeLogin($_SESSION['btPassword']) && $ytObj->hasYoutube($member->get_info("member_id"))) {
    $ytObj->delete();
    echo "\n\t\t\n\t\t<div class='shadedBox' style='width: 50%; margin-left: auto; margin-right: auto'>\n\t\t\n\t\t\t<p align='center' class='main' style='padding: 20px'>\n\t\t\t\tSuccessfully disconnected your Youtube account!<br><br>\n\t\t\t\t<a href='" . $MAIN_ROOT . "members'>Return to My Account</a>\n\t\t\t</p>\n\t\t\n\t\t</div>\n\t\n\t";
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:24,代码来源:disconnect.php

示例14: 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/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->objTeam->select($_POST['teamID']) && $member->hasAccess($consoleObj)) {
    $memberInfo = $member->get_info();
    $teamInfo = $tournamentObj->objTeam->get_info_filtered();
    $tournamentObj->select($teamInfo['tournament_id']);
    $tournamentInfo = $tournamentObj->get_info_filtered();
    $tmemberID = $tournamentInfo['member_id'];
    if ($memberInfo['member_id'] == $tmemberID || $memberInfo['rank_id'] == "1" || $tournamentObj->isManager($memberInfo['member_id'])) {
        $arrAllPlayers = $tournamentObj->getPlayers();
        $playerList = urlencode($_POST['players']);
        $arrNewPlayers = explode("%0A", $playerList);
        $arrTeamPlayers = $tournamentObj->getTeamPlayers($_POST['teamID']);
        $teamPlayerCount = count($arrTeamPlayers);
        $blnErrorDuplicatePlayer = false;
        $blnErrorFullTeam = false;
        foreach ($arrNewPlayers as $newPlayer) {
            $newPlayer = urldecode($newPlayer);
            if ($teamPlayerCount < $tournamentInfo['playersperteam']) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:addteamplayers.php

示例15: elseif

    $rankInfo['promotepower'] = 0;
}
if ($memberInfo['rank_id'] == 1) {
    $highestOrderNum = $rankObj->getHighestOrderNum();
    $rankObj->selectByOrder($highestOrderNum);
    $powerRankInfo = $rankObj->get_info();
} else {
    $rankObj->select($rankInfo['promotepower']);
    $powerRankInfo = $rankObj->get_info();
}
if ($_POST['submit']) {
    if (!$memberObj->select($_POST['member'])) {
        $countErrors++;
        $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You selected an invalid member.<br>";
    } elseif ($memberObj->select($_POST['member'])) {
        $tempMemInfo = $memberObj->get_info();
        $rankObj->select($tempMemInfo['rank_id']);
        $tempRankInfo = $rankObj->get_info();
        if ($powerRankInfo['ordernum'] < $tempRankInfo['ordernum']) {
            $countErrors++;
            $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You may not change the selected member's recruit date.<br>";
        }
    }
    $recruitDate = $_POST['newrecruitdate'] / 1000;
    if ($recruitDate > time()) {
        $countErrors++;
        $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You selected an invalid date.<br>";
    }
    if ($countErrors == 0) {
        $arrColumn = array("datejoined");
        $arrValue = array($recruitDate);
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:setrecruitdate.php


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