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


PHP Member::get_info_filtered方法代码示例

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


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

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

示例2: elseif

  * 1 - Full Access
  * 2 - Read Only
  */
 if (isset($_POST['action']) && $accessMemberObj->select($_POST['mID'])) {
     if ($_POST['action'] == "add" && ($_POST['accessRule'] == "1" || $_POST['accessRule'] == "0" || $_POST['accessRule'] == "2")) {
         $_SESSION['btMemberAccessCache'][$_POST['mID']] = $_POST['accessRule'];
     } elseif ($_POST['action'] == "delete") {
         $_SESSION['btMemberAccessCache'][$_POST['mID']] = "";
     }
 }
 // Display Cache List
 echo "\n\t\n\t\t<table align='left' border='0' cellspacing='2' cellpadding='2' width=\"90%\">\n\t\t\t<tr>\n\t\t\t\t<td class='formTitle' width=\"60%\">Member:</td>\n\t\t\t\t<td class='formTitle' width=\"20%\">Access:</td>\n\t\t\t\t<td class='formTitle' width=\"20%\">Actions:</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t";
 $countRules = 0;
 foreach ($_SESSION['btMemberAccessCache'] as $memID => $accessRule) {
     if ($accessRule != "" && $accessMemberObj->select($memID)) {
         $tempMemInfo = $accessMemberObj->get_info_filtered();
         $rankObj->select($tempMemInfo['rank_id']);
         $dispRankName = $rankObj->get_info_filtered("name");
         $dispAccess = "<span class='denyText'>Deny</span>";
         if ($accessRule == 1) {
             $dispAccess = "<span class='pendingFont'>Full</span>";
         } elseif ($accessRule == 2) {
             $dispAccess = "<span class='allowText'>Read-Only</span>";
         }
         echo "\n\t\t\t\t<tr>\n\t\t\t\t\t<td class='main'><a href='" . $MAIN_ROOT . "profile.php?mID=" . $tempMemInfo['username'] . "'>" . $dispRankName . " " . $tempMemInfo['username'] . "</a></td>\n\t\t\t\t\t<td class='main' align='center'>" . $dispAccess . "</td>\n\t\t\t\t\t<td class='main' align='center'><a href='javascript:void(0)' onclick=\"deleteAccessRule('" . $memID . "')\"><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/delete.png' title='Delete'></a></td>\n\t\t\t\t</tr>\t\t\t\n\t\t\t";
         $countRules++;
     }
 }
 if ($countRules == 0) {
     echo "\n\t\t\t<tr>\n\t\t\t\t<td class='main' colspan='3'>\n\t\t\t\t\t<p align='center' style='padding-top: 10px'><i>No special member access rules set!</i></p>\n\t\t\t\t</td>\n\t\t\t</tr>\t\t\n\t\t";
 }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:boardaccesscache.php

示例3: Member

 */
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);
$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);
$rank = new Rank($mysqli);
if ($member->authorizeLogin($_SESSION['btPassword'])) {
    $memberInfo = $member->get_info_filtered();
    if ($checkAccess1 || $checkAccess2) {
        echo "\n\t\t\n\t\t\t<table align='left' border='0' cellspacing='2' cellpadding='2' width=\"90%\">\n\t\t\t\t<tr>\n\t\t\t\t\t<td class='formTitle' width=\"60%\">Member:</td>\n\t\t\t\t\t<td class='formTitle' width=\"20%\">Access:</td>\n\t\t\t\t\t<td class='formTitle' width=\"20%\">Actions:</td>\n\t\t\t\t</tr>\n\t\t\t\t\n\t\t\t";
        $counter = 0;
        foreach ($_SESSION['btAccessRules'] as $key => $accessInfo) {
            if ($member->select($accessInfo['mID']) and ($accessInfo['accessRule'] == "allow" or $accessInfo['accessRule'] == "deny")) {
                $tempMemInfo = $member->get_info_filtered();
                $rank->select($tempMemInfo['rank_id']);
                $dispRankName = $rank->get_info_filtered("name");
                if ($accessInfo['accessRule'] == "allow") {
                    $dispAccess = "<span class='allowText'>Allow</span>";
                } else {
                    $dispAccess = "<span class='denyText'>Deny</span>";
                }
                echo "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='main'><a href='" . $MAIN_ROOT . "profile.php?mID=" . $tempMemInfo['username'] . "'>" . $dispRankName . " " . $tempMemInfo['username'] . "</a></td>\n\t\t\t\t\t\t<td class='main' align='center'>" . $dispAccess . "</td>\n\t\t\t\t\t\t<td class='main' align='center'><a href='javascript:void(0)' onclick=\"deleteAccessRule('" . $key . "')\"><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/delete.png' title='Delete'></a></td>\n\t\t\t\t\t</tr>\n\t\t\t\t";
                $counter++;
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:view.php

示例4: Member

$member->select($_SESSION['btUsername']);
$objInviteMember = 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($_SESSION['btEventID'])) {
    $eventID = $eventObj->get_info("event_id");
    $memberInfo = $member->get_info_filtered();
    if ($member->hasAccess($consoleObj) && ($eventObj->memberHasAccess($memberInfo['member_id'], "invitemembers") || $memberInfo['rank_id'] == 1)) {
        $arrInviteList = $eventObj->getInvitedMembers(true);
        $arrInviteList = array_merge($arrInviteList, $_SESSION['btInviteList']);
        switch ($_POST['action']) {
            case "add":
                if ($objInviteMember->select($_POST['memberID'])) {
                    $inviteMemberInfo = $objInviteMember->get_info_filtered();
                    if (!in_array($inviteMemberInfo['member_id'], $arrInviteList)) {
                        $_SESSION['btInviteList'][] = $inviteMemberInfo['member_id'];
                    } else {
                        echo "\n\t\t\t\t\t\t\t<div id='dupInviteDiv' style='display: none'>\n\t\t\t\t\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\t\t\t\t\tThe selected member, <b>" . $inviteMemberInfo['username'] . "</b> is already on the invite list!\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\$('#dupInviteDiv').dialog({\n\t\t\t\t\t\t\t\t\t\ttitle: 'Invite Members - Error',\n\t\t\t\t\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\t\t\t\t\twidth: 400,\n\t\t\t\t\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t'OK': function() {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\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\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</script>\n\t\t\t\t\t\t";
                    }
                }
                break;
            case "delete":
                unset($_SESSION['btInviteList'][$_POST['memberID']]);
                break;
        }
        foreach ($_SESSION['btInviteList'] as $key => $value) {
            $objInviteMember->select($value);
            echo "\n\t\t\t\t<div class='mttPlayerSlot' style='width: 95%'>" . $objInviteMember->get_info_filtered("username") . "<div class='mttDeletePlayer'><a href='javascript:void(0)' onclick=\"removeMember('" . $key . "')\">X</a></div></div>\n\t\t\t";
        }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:invitemember_cache.php

示例5: Member

$arrSpecialMenuItems['newmembers'] = "<div style='margin-left: 3px; margin-right: 3px; margin-top: 5px; margin-bottom: 20px'>";
$menuMemberObj = new Member($mysqli);
$menuMemberRankObj = new Rank($mysqli);
$counter = 0;
$result = $mysqli->query("SELECT member_id FROM " . $dbprefix . "members WHERE rank_id != '1' ORDER BY datejoined DESC LIMIT 5");
while ($row = $result->fetch_assoc()) {
    $addCSS = "";
    if ($counter == 0) {
        $addCSS = " alternateBGColor";
        $counter = 1;
    } else {
        $counter = 0;
    }
    $arrSpecialMenuItems['newmembers'] .= "<div class='dottedLine " . $addCSS . "' style='padding: 5px 5px'>";
    $menuMemberObj->select($row['member_id']);
    $newestMemberInfo = $menuMemberObj->get_info_filtered();
    $checkURL = parse_url($newestMemberInfo['profilepic']);
    if ((!isset($checkURL['scheme']) || $checkURL['scheme'] == "") && $newestMemberInfo['profilepic'] != "") {
        $newestMemberInfo['profilepic'] = $MAIN_ROOT . $newestMemberInfo['profilepic'];
    } elseif ($newestMemberInfo['profilepic'] == "") {
        $newestMemberInfo['profilepic'] = $MAIN_ROOT . "themes/orangegrunge/images/defaultprofile.png";
    }
    $menuMemberRankObj->select($newestMemberInfo['rank_id']);
    $arrSpecialMenuItems['newmembers'] .= "<div style='float: left; width: 43px'><img src='" . $newestMemberInfo['profilepic'] . "' style='width: 40px; height: 53px; border: solid black 1px'></div>";
    $arrSpecialMenuItems['newmembers'] .= "<div style='float: left; padding-left: 8px; width: 80px'><div style='font-size: 12px; overflow: hidden; text-overflow: ellipsis; width: 80px'>" . $menuMemberObj->getMemberLink() . "</div><div class='main' style='width: 89px; overflow: hidden; text-overflow: ellipsis'>" . $menuMemberRankObj->get_info_filtered("name") . "</div></div>";
    $arrSpecialMenuItems['newmembers'] .= "<div style='clear: both'></div>";
    $arrSpecialMenuItems['newmembers'] .= "</div>";
}
$arrSpecialMenuItems['newmembers'] .= "<div style='clear: both'></div></div>";
// LATEST FORUM ACTIVITY
$forumActivityObj = new ForumBoard($mysqli);
开发者ID:bluethrust,项目名称:clanscriptsv4,代码行数:31,代码来源:_menus.php

示例6: Member

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

示例7: BasicOrder

$dispBreadCrumb = "<a href='" . $MAIN_ROOT . "'>Home</a> > <a href='" . $MAIN_ROOT . "members'>My Account</a> > <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "'>" . $consoleTitle . "</a> > Compose Message";
$EXTERNAL_JAVASCRIPT .= "\n<script type='text/javascript' src='" . $MAIN_ROOT . "members/js/console.js'></script>\n<script type='text/javascript' src='" . $MAIN_ROOT . "members/js/main.js'></script>\n\n<style>\n\t.ui-autocomplete {\n\t\tmax-height: 150px;\n\t\toverflow-y: auto;\n\t}\n</style>\n";
$prevFolder = "../../";
include "../../themes/" . $THEME . "/_header.php";
echo "\n<div class='breadCrumbTitle' id='breadCrumbTitle'>Compose Message</div>\n<div class='breadCrumb' id='breadCrumb' style='padding-top: 0px; margin-top: 0px'>\n{$dispBreadCrumb}\n</div>\n";
$pmObj = new BasicOrder($mysqli, "privatemessages", "pm_id");
$rankCatObj = new RankCategory($mysqli);
$squadObj = new Squad($mysqli);
$tournamentObj = new Tournament($mysqli);
$multiMemPMObj = new Basic($mysqli, "privatemessage_members", "pmmember_id");
$pmObj->set_assocTableName("privatemessage_members");
$pmObj->set_assocTableKey("member_id");
// Check Login
$LOGIN_FAIL = true;
if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) {
    $memberInfo = $member->get_info_filtered();
    $dispError = "";
    $countErrors = 0;
    if ($_POST['submit']) {
        $pmSessionID = $_POST['pmsessionid'];
        // Check To
        $arrReceivers = array();
        // Check Members
        if (count($_SESSION['btComposeList'][$pmSessionID]['member']) > 0) {
            foreach ($_SESSION['btComposeList'][$pmSessionID]['member'] as $memberID) {
                if ($memberID != "" && $member->select($memberID)) {
                    $arrReceivers[] = $memberID;
                }
            }
        }
        // Check Rank Category
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:compose.php

示例8: Member

    $eventObj->select($eID);
    if (!$member->hasAccess($consoleObj) || !$eventObj->memberHasAccess($memberInfo['member_id'], "invitemembers") && $memberInfo['rank_id'] != 1) {
        exit;
    }
}
echo "\n\n<script type='text/javascript'>\n\$(document).ready(function() {\n\$('#breadCrumbTitle').html(\"Invite Members\");\n\$('#breadCrumb').html(\"<a href='" . $MAIN_ROOT . "'>Home</a> > <a href='" . $MAIN_ROOT . "members'>My Account</a> > <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&select=" . $eventInfo['event_id'] . "'>" . $consoleTitle . "</a> > <b>" . $eventInfo['title'] . ":</b> Invite Members\");\n});\n</script>\n";
$dispError = "";
$countErrors = 0;
$objInviteMember = new Member($mysqli);
if ($_POST['submit']) {
    foreach ($_SESSION['btInviteList'] as $value) {
        $checkInvite = $eventObj->inviteMember($value, $memberInfo['member_id']);
        if ($objInviteMember->select($value) && $checkInvite === true) {
            $objInviteMember->postNotification("You have been invited to the event, <b>" . $eventInfo['title'] . "</b>!.  Go to the <a href='" . $MAIN_ROOT . "events/info.php?eID=" . $eventInfo['event_id'] . "'>event</a> page to view more info.", "general");
        } elseif ($objInviteMember->select($value) && $checkInvite === false) {
            $dispInviteErrorName = $objInviteMember->get_info_filtered("username");
            $countErrors++;
            $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> Unable to invite " . $dispInviteErrorName . ".<br>";
        } elseif (!$objInviteMember->select($value)) {
            $countErrors++;
            $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You selected an invalid member.<br>";
        } elseif ($checkInvite == "dup") {
            $dispInviteErrorName = $objInviteMember->get_info_filtered("username");
            $countErrors++;
            $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> Unable to invite " . $dispInviteErrorName . ". (already invited)<br>";
        }
    }
    if ($countErrors == 0) {
        echo "\n\t\t\t\n\t\t\t<div style='display: none' id='successBox'>\n\t\t\t\t<p align='center'>\n\t\t\t\t\tSuccessfully sent event invitations!\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t\n\t\t\t<script type='text/javascript'>\n\t\t\t\tpopupDialog('Invite Members', '" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&select=" . $eventInfo['event_id'] . "', 'successBox');\n\t\t\t</script>\n\t\t\n\t\t";
    }
    if ($countErrors > 0) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:invitemembers.php

示例9: array

        $arrValue = array($recruitDate);
        if ($memberObj->update($arrColumn, $arrValue)) {
            echo "\n\t\t\t\t<div style='display: none' id='successBox'>\n\t\t\t\t\t<p align='center'>\n\t\t\t\t\t\tSuccessfully changed " . $memberObj->getMemberLink() . "'s recruit date!\n\t\t\t\t\t</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('Set Member\\'s Recruit Date', '" . $MAIN_ROOT . "members', 'successBox');\n\t\t\t\t</script>\n\t\t\t\n\t\t\t";
            $logMessage = "Changed " . $tempMemInfo['username'] . "'s recruit date to " . date("D M j, Y g:i a", $recruitDate) . ".";
            $member->logAction($logMessage);
        } else {
            $countErrors++;
            $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> Unable to save information to the database.  Please contact the website administrator.<br>";
        }
    }
    if ($countErrors > 0) {
        $_POST['submit'] = false;
    }
}
if (!$_POST['submit']) {
    $result = $mysqli->query("SELECT " . $dbprefix . "members.member_id FROM " . $dbprefix . "members, " . $dbprefix . "ranks WHERE " . $dbprefix . "ranks.rank_id = " . $dbprefix . "members.rank_id AND " . $dbprefix . "ranks.ordernum <= '" . $powerRankInfo['ordernum'] . "' AND " . $dbprefix . "members.rank_id != '1' AND " . $dbprefix . "members.disabled = '0' ORDER BY " . $dbprefix . "ranks.ordernum DESC, " . $dbprefix . "members.username");
    while ($row = $result->fetch_assoc()) {
        $memberObj->select($row['member_id']);
        $tempMemInfo = $memberObj->get_info_filtered();
        $rankObj->select($tempMemInfo['rank_id']);
        $tempRankInfo = $rankObj->get_info_filtered();
        $memberoptions .= "<option value='" . $row['member_id'] . "'>" . $tempRankInfo['name'] . " " . $tempMemInfo['username'] . "</option>";
    }
    echo "\n\t\t<form action='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "' method='post'>\n\t\t\t<div class='formDiv'>\n\t\t\t";
    if ($dispError != "") {
        echo "\n\t\t<div class='errorDiv'>\n\t\t<strong>Unable to change recruit date because the following errors occurred:</strong><br><br>\n\t\t{$dispError}\n\t\t</div>\n\t\t";
    }
    echo "\n\t\t\t\tUse the form below to change a member's recruit date.\n\t\t\t\t<table class='formTable'>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='formLabel'>Member:</td>\n\t\t\t\t\t\t<td class='main'><select name='member' class='textBox'>" . $memberoptions . "</select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='formLabel'>Recruit Date:</td>\n\t\t\t\t\t\t<td class='main'><input type='text' class='textBox' id='recruitdate' readonly='readonly'></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='main' align='center' colspan='2'><br>\n\t\t\t\t\t\t\t<input type='submit' name='submit' value='Change Date' class='submitButton'>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t<input type='hidden' name='newrecruitdate' id='realrecruitdate'>\n\t\t\t</div>\n\t\t</form>\n\t\t\n\t\t<script type='text/javascript'>\n\t\t\t\$(document).ready(function() {\n\t\t\t\n\t\t\t\t\$('#recruitdate').datepicker({\n\t\t\t\t\n\t\t\t\t";
    $dispMonth = date("n") - 1;
    echo "\n\t\t\t\t\tchangeMonth: true,\n\t\t\t\t\tyearRange: '" . (date("Y") - 20) . ":" . date("Y") . "',\n\t\t\t\t\tchangeYear: true,\n\t\t\t\t\tdateFormat: 'M d, yy',\n\t\t\t\t\tmaxDate: new Date(" . date("Y") . ", " . $dispMonth . ", " . date("j") . "),\n\t\t\t\t\taltField: '#realrecruitdate',\n\t\t\t\t\taltFormat: '@'\n\t\t\t\t\n\t\t\t\t});\n\t\t\t});\n\t\t</script>\n\t";
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:setrecruitdate.php

示例10: Rank

        exit;
    }
}
$memberInfo = $member->get_info_filtered();
$cID = $_GET['cID'];
$dispError = "";
$countErrors = 0;
$rankObj = new Rank($mysqli);
$memberObj = new Member($mysqli);
if ($_POST['submit']) {
    // Check Member
    if (!$memberObj->select($_POST['member'])) {
        $countErrors++;
        $dispError = "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You selected an invalid member.<br>";
    } else {
        $newMemberInfo = $memberObj->get_info_filtered();
        $memberObj->select($newMemberInfo['recruiter']);
        $oldRecruiterInfo = $memberObj->get_info_filtered();
    }
    // Check Recruiter
    if (!$memberObj->select($_POST['newrecruiter'])) {
        $countErrors++;
        $dispError = "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You selected an invalid Recruiter.<br>";
    } else {
        $newRecruiterInfo = $memberObj->get_info_filtered();
    }
    if ($countErrors == 0) {
        $arrColumns = array("recruiter");
        $arrValues = array($_POST['newrecruiter']);
        $memberObj->select($_POST['member']);
        if ($memberObj->update($arrColumns, $arrValues)) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:setrecruiter.php

示例11: Download

$attachmentObj = new Download($mysqli);
$consoleObj = new ConsoleOption($mysqli);
$topicObj = new Basic($mysqli, "forum_topic", "forumtopic_id");
$intManagePostsCID = $consoleObj->findConsoleIDByName("Manage Forum Posts");
$intPostTopicCID = $consoleObj->findConsoleIDByName("Post Topic");
$downloadCatObj->selectBySpecialKey("forumattachments");
$blnShowAttachments = false;
if (LOGGED_IN == true && $downloadCatObj->get_info("accesstype") == 1 || $downloadCatObj->get_info("accesstype") == 0) {
    $blnShowAttachments = true;
}
$postInfo = $this->get_info_filtered();
$topicInfo = $this->getTopicInfo();
$topicObj->select($postInfo['forumtopic_id']);
$topicInfo['forumboard_id'] = $topicObj->get_info("forumboard_id");
$posterMemberObj->select($postInfo['member_id']);
$postMemberInfo = $posterMemberObj->get_info_filtered();
$postMessage = $this->arrObjInfo['message'];
$postMessage = str_replace("<?", "&lt;?", $postMessage);
$postMessage = str_replace("?>", "?&gt;", $postMessage);
$postMessage = str_replace("<script", "&lt;script", $postMessage);
$postMessage = str_replace("</script>", "&lt;/script&gt;", $postMessage);
$dispPostedOn = "";
if (time() - $postInfo['dateposted'] > 60 * 60 * 24) {
    $dispPostedOn = " on";
}
$posterRankObj->select($postMemberInfo['rank_id']);
$posterRankInfo = $posterRankObj->get_info_filtered();
$dispLastEdit = "";
if ($postInfo['lastedit_date'] != 0) {
    $posterMemberObj->select($postInfo['lastedit_member_id']);
    $dispLastEdit = "<br><br><span class='tinyFont' style='font-style: italic'>Last edited by " . $posterMemberObj->getMemberLink() . " - " . getPreciseTime($postInfo['lastedit_date']) . "</span>";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:post.php

示例12: Poll

$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) {
        $pollObj->objPollOption->select($pollOptionID);
        $pollOptionInfo = $pollObj->objPollOption->get_info_filtered();
        $arrResults[] = "['" . $pollOptionInfo['optionvalue'] . "', " . $votes . "]";
        $arrOptions[] = $x . ": { color: '" . $pollOptionInfo['color'] . "' }";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:view.php

示例13: Tournament

// Config File
$prevFolder = "../";
include_once $prevFolder . "classes/member.php";
include_once $prevFolder . "classes/tournament.php";
include $prevFolder . "_setup.php";
$tournamentObj = new Tournament($mysqli);
$member = new Member($mysqli);
if ($tournamentObj->select($_GET['tID'])) {
    $tournamentPass = $tournamentObj->get_info("outsidepassword");
    if ($tournamentPass != "" && $tournamentPass == md5($_POST['connectPass'])) {
        header(":", true, 200);
        $tournamentInfo['info'] = $tournamentObj->get_info_filtered();
        $arrPlayers = $tournamentObj->getPlayers();
        foreach ($arrPlayers as $key => $value) {
            if ($member->select($value)) {
                $arrPlayers[$key] = $member->get_info_filtered("username");
            }
        }
        $arrTeams = $tournamentObj->getTeams();
        foreach ($arrTeams as $key => $value) {
            $tournamentObj->objTeam->select($value);
            //$arrTeams[$key]['seed'] = $tournamentObj->objTeam->get_info_filtered("seed");
            $arrTeams[$key] = $tournamentObj->objTeam->get_info_filtered("name");
            echo $tournamentObj->objTeam->get_info_filtered("name") . "<br>";
        }
        $tournamentInfo['players'] = $arrPlayers;
        $tournamentInfo['teams'] = $arrTeams;
        echo json_encode($tournamentInfo);
    } else {
        header(":", true, 204);
    }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:connect.php

示例14: die

        die("<script type='text/javascript'>window.location = '" . $MAIN_ROOT . "banned.php';</script>");
    } else {
        $ipbanObj->delete();
    }
}
if (!$eventObj->select($_GET['eID'])) {
    echo "\n\t\t<script type='text/javascript'>\n\t\t\twindow.location = '" . $MAIN_ROOT . "events';\n\t\t</script>\n\t";
    exit;
}
$eventInfo = $eventObj->get_info_filtered();
$eventPgMemberObj = new Member($mysqli);
$dispCreatorLink = "Unknown";
if ($eventPgMemberObj->select($eventInfo['member_id'])) {
    $dispCreatorLink = $eventPgMemberObj->getMemberLink();
}
$eventMemberProfilePic = $eventPgMemberObj->get_info_filtered("profilepic");
if ($eventMemberProfilePic == "") {
    $eventMemberProfilePic = $MAIN_ROOT . "themes/" . $THEME . "/images/defaultprofile.png";
} else {
    $eventMemberProfilePic = $MAIN_ROOT . $eventMemberProfilePic;
}
$arrInviteList = $eventObj->getInvitedMembers(true);
$arrInviteList[] = $eventInfo['member_id'];
// Start Page
$PAGE_NAME = $eventInfo['title'] . " - ";
$dispBreadCrumb = "";
include $prevFolder . "themes/" . $THEME . "/_header.php";
$memberInfo = array();
if (constant("LOGGED_IN") && $member->select($_SESSION['btUsername'])) {
    $memberInfo = $member->get_info_filtered();
    if ($eventInfo['status'] == 2 && !in_array($memberInfo['member_id'], $eventObj->getInvitedMembers(true)) && $memberInfo['member_id'] != $eventInfo['member_id']) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:info.php

示例15: saveAdditionalPostData

    echo "\n\t<script type='text/javascript'>\n\t\t\$(document).ready(function() {\n\t\t\t\$('#breadCrumb').html(\"<a href='" . $MAIN_ROOT . "'>Home</a> > <a href='" . $MAIN_ROOT . "forum'>Forum</a> > <a href='" . $MAIN_ROOT . "forum/viewboard.php?bID=" . $_GET['bID'] . "'>" . $boardInfo['name'] . "</a> > Post Topic\");\n\t\t\t\$('#consoleTopBackButton').attr('href', '" . $MAIN_ROOT . "forum/viewboard.php?bID=" . $_GET['bID'] . "');\n\t\t\t\$('#consoleBottomBackButton').attr('href', '" . $MAIN_ROOT . "forum/viewboard.php?bID=" . $_GET['bID'] . "');\n\t\t});\n\t</script>\n\t";
    $arrTopicName = array("type" => "text", "sortorder" => 1, "attributes" => array("class" => "formInput textBox"), "display_name" => "Topic", "db_name" => "title", "validate" => array("NOT_BLANK"));
    $postActionWord = "topic";
}
// Check Full Access
$topicOrReply = isset($_GET['tID']) ? "Reply" : "Topic";
if (!$boardObj->memberHasAccess($memberInfo, true)) {
    echo "\n\t\t\t<div id='lockedMessage' style='display: none'>\n\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\tYou don't have posting privileges on this board!\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<script type='text/javascript'>\n\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\$('#lockedMessage').dialog({\n\t\t\t\t\t\ttitle: 'Post " . $topicOrReply . " - Error!',\n\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\twidth: 400,\n\t\t\t\t\t\tzIndex: 999999,\n\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\tbuttons: {\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\tclose: function(event, ui) {\n\t\t\t\t\t\t\twindow.location = '" . $MAIN_ROOT . "forum/viewtopic.php?tID=" . $topicInfo['forumtopic_id'] . "'\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\n\t\t\t\t});\n\t\t\t</script>\n\t\t";
    exit;
}
$dispQuote = "";
if (isset($_GET['quote']) && $boardObj->objPost->select($_GET['quote'])) {
    $quotedInfo = $boardObj->objPost->get_info_filtered();
    $quotedMember = new Member($mysqli);
    $quotedMember->select($quotedInfo['member_id']);
    $dispQuote = "\n\t[quote]<a href='" . $MAIN_ROOT . "forum/viewtopic.php?tID=" . $quotedInfo['forumtopic_id'] . "#" . $quotedInfo['forumpost_id'] . "'>Originally posted by " . $quotedMember->get_info_filtered("username") . ":</a><br>" . $boardObj->objPost->get_info("message") . "<br>[/quote]";
}
$i = 2;
$arrComponents = array("topicname" => $arrTopicName, "message" => array("type" => "richtextbox", "sortorder" => $i++, "display_name" => "Message", "attributes" => array("id" => "richTextarea", "style" => "width: 90%", "rows" => "10"), "value" => $dispQuote, "db_name" => "message", "validate" => array("NOT_BLANK")));
if ($blnCheckForumAttachments) {
    $arrAttachmentComponents = array("attachments" => array("type" => "custom", "sortorder" => $i++, "display_name" => "Attachments", "html" => "<div class='formInput'><div id='attachmentsDiv' style='margin-bottom: 10px'>\n\t\t\t\t\t\t\t<input type='file' name='forumattachment_1' class='textBox' style='border: 0px'>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<a href='javascript:void(0)' id='addMoreAttachments'>Add More Attachments</a></div>\n\t\t\t\t\t\t<input type='hidden' id='numOfAttachments' value='1' name='numofattachments'>"));
    $arrComponents = array_merge($arrComponents, $arrAttachmentComponents);
}
$arrPostButtons = array("submit" => array("type" => "submit", "sortorder" => $i++, "value" => "Post", "attributes" => array("class" => "formSubmitButton submitButton")), "preview" => array("type" => "button", "sortorder" => $i++, "attributes" => array("class" => "formSubmitButton submitButton", "id" => "btnPreview"), "value" => "Preview"), "preview_section" => array("type" => "custom", "sortorder" => $i++, "html" => "<div id='loadingSpiral' class='loadingSpiral'>\n\t\t\t\t\t\t<p align='center'>\n\t\t\t\t\t\t\t<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/loading-spiral.gif'><br>Loading\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div id='previewPost'></div>"));
$arrComponents = array_merge($arrComponents, $arrPostButtons);
$setupFormArgs = array("name" => "console-" . $cID, "components" => $arrComponents, "description" => "", "saveObject" => $boardObj->objPost, "saveMessage" => "Successfully posted new " . $postActionWord . "!", "saveType" => "add", "attributes" => array("action" => $MAIN_ROOT . "members/console.php?cID=" . $cID . "&bID=" . $_GET['bID'] . $addToForm, "method" => "post", "enctype" => "multipart/form-data"), "afterSave" => array("saveAdditionalPostData"), "saveAdditional" => array("member_id" => $memberInfo['member_id'], "dateposted" => time()));
echo "\n\t<script type='text/javascript'>\n\t\n\t\n\t\t\$(document).ready(function() {\n\t\t\n\t\t\tvar numOfAttachments = 1;\n\t\t\t\$('#addMoreAttachments').click(function() {\n\t\t\t\tnumOfAttachments++;\n\t\t\t\t\n\t\t\t\tif(numOfAttachments <= " . ini_get("max_file_uploads") . ") {\n\t\n\t\t\t\t\t\$('#attachmentsDiv').append(\"<br><input type='file' name='forumattachment_\"+numOfAttachments+\"' class='textBox' style='border: 0px'>\");\n\t\t\t\t\t\$('#numOfAttachments').val(numOfAttachments);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\$('#addMoreAttachments').html('Maximum number of attachments reached!');\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\$('#testattachments').html(\$('#attachmentsDiv').html());\n\t\t\t\t\n\t\t\t});\n\t\t\n\t\t\n\t\t\t\$('#btnPreview').click(function() {\n\t\t\t\t\t\n\t\t\t\t\$('#loadingSpiral').show();\n\t\t\t\t\$.post('" . $MAIN_ROOT . "members/include/forum/include/previewpost.php', { wysiwygHTML: \$('#richTextarea').val(), previewSubject: \$('#postSubject').val() }, function(data) {\n\t\t\t\t\t\$('#previewPost').hide();\n\t\t\t\t\t\$('#previewPost').html(data);\n\t\t\t\t\t\$('#loadingSpiral').hide();\n\t\t\t\t\t\$('#previewPost').fadeIn(250);\n\t\t\t\t\n\t\t\t\t\t\$('html, body').animate({\n\t\t\t\t\t\tscrollTop:\$('#previewPost').offset().top\n\t\t\t\t\t}, 1000);\n\t\t\t\t\t\n\t\t\t\t});\n\t\t\t\n\t\t\t});\n\t\t\t\n\t\t});\n\t</script>\n";
function saveAdditionalPostData()
{
    global $formObj, $blnPostReply, $boardObj, $mysqli, $topicInfo;
    if (!$blnPostReply) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:post.php


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