コード例 #1
0
 *
 * Author: Bluethrust Web Development
 * E-mail: support@bluethrust.com
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
if (!isset($member) || substr($_SERVER['PHP_SELF'], -11) != "console.php") {
    exit;
} else {
    $memberInfo = $member->get_info();
    $consoleObj->select($_GET['cID']);
    if (!$member->hasAccess($consoleObj)) {
        exit;
    }
}
include "../classes/pmfolder.php";
$pmFolderObj = new PMFolder($mysqli);
$cID = $_GET['cID'];
if (isset($_GET['fID']) && !in_array($_GET['fID'], $arrSpecialFolders) && $pmFolderObj->select($_GET['fID'])) {
    // Edit Folder page
    define("EDIT_FOLDER", true);
    include "include/edit.php";
} else {
    $addFolderCID = $consoleObj->findConsoleIDByName("Add PM Folder");
    echo "\n\t\n\t\t<p align='right' style='margin-bottom: 20px; margin-right: 20px;'>\n\t\t\t<b>&raquo;</b> <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $addFolderCID . "'>Add New Folder</a> <b>&laquo;</b>\n\t\t</p>\n\t\t\n\t\t<table class='formTable'>\n\t\t\t<tr>\n\t\t\t\t<td class='formTitle' style='width: 76%'>Folder Name:</td>\n\t\t\t\t<td class='formTitle' style='width: 24%'>Actions:</td>\n\t\t\t</tr>\n\t\t</table>\n\t<div id='loadingSpiral' class='loadingSpiral'>\n\t\t<p align='center'>\n\t\t\t<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/loading-spiral.gif'><br>Loading\n\t\t</p>\n\t</div>\n\t<div id='folderList'>\n\t";
    define("SHOW_FOLDERLIST", true);
    include "include/folderlist.php";
    echo "</div>\n\t\n\t\t<script type='text/javascript'>\n\t\t\t\n\n\t\t\tfunction moveFolder(upOrDown, intFolderID) {\n\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\$('#loadingSpiral').show();\n\t\t\t\t\t\$('#folderList').fadeOut(250);\n\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/include/privatemessages/include/move.php', { folderDir: upOrDown, folder: intFolderID }, function(data) {\n\t\t\t\t\t\t\$('#folderList').html(data);\n\t\t\t\t\t\t\$('#folderList').fadeIn(250);\n\t\t\t\t\t\t\$('#loadingSpiral').hide();\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t\t\n\t\t\tfunction deleteFolder(intFolderID) {\n\t\t\t\t\$(document).ready(function() {\n\t\t\t\n\t\t\t\t\t\$('#loadingSpiral').show();\n\t\t\t\t\t\$('#folderList').fadeOut(250);\n\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/include/privatemessages/include/delete.php', { folder: intFolderID }, function(data) {\n\t\t\t\t\t\t\$('#folderList').html(data);\n\t\t\t\t\t\t\$('#folderList').fadeIn(250);\n\t\t\t\t\t\t\$('#loadingSpiral').hide();\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t});\n\t\t\t}\n\n\t\t</script>\n\t\n\t";
}
コード例 #2
0
ファイル: move.php プロジェクト: nsystem1/clanscripts
 *
 * Author: Bluethrust Web Development
 * E-mail: support@bluethrust.com
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
include "../../../../_setup.php";
include_once "../../../../classes/member.php";
include_once "../../../../classes/rank.php";
include_once "../../../../classes/pmfolder.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$pmFolderObj = new PMFolder($mysqli);
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Manage PM Folders");
$consoleObj->select($cID);
if ($member->authorizeLogin($_SESSION['btPassword'])) {
    $memberInfo = $member->get_info_filtered();
    $arrSpecialFolders = array(0, -1, -2);
    $pmFolderObj->intMemberID = $memberInfo['member_id'];
    if ($member->hasAccess($consoleObj) && $pmFolderObj->select($_POST['folder']) && $pmFolderObj->isMemberFolder() && !in_array($_POST['folder'], $arrSpecialFolders)) {
        define('SHOW_FOLDERLIST', true);
        $pmFolderObj->setCategoryKeyValue($memberInfo['member_id']);
        $pmFolderObj->move($_POST['folderDir']);
        $pmFolderObj->resortOrder();
        $_GET['cID'] = $cID;
        include "folderlist.php";
    }
}
コード例 #3
0
ファイル: view.php プロジェクト: nsystem1/clanscripts
     $pmMemberID = $row['pmmember_id'];
     $multiMemPMObj->select($pmMemberID);
     $multiMemPMObj->update(array("seenstatus"), array(1));
     $blnMultiPM = true;
     $dispToMember = $pmObj->getRecipients(true);
 } elseif ($memberInfo['member_id'] == $pmInfo['sender_id'] && $senderResult->num_rows > 0) {
     // Member is the sender
     $blnMultiPM = true;
     $dispToMember = $pmObj->getRecipients(true);
 }
 $dispPreviousMessages = "";
 // Folder Info
 $multiPM = isset($_GET['pmMID']);
 $pmFolderID = $pmObj->getFolder($memberInfo['member_id'], $multiPM);
 $pmFolderObj = new PMFolder($mysqli);
 $pmFolderObj->select($pmFolderID);
 $pmFolderInfo = $pmFolderObj->get_info_filtered();
 if ($pmInfo['originalpm_id'] != 0) {
     $result = $mysqli->query("SELECT * FROM " . $dbprefix . "privatemessages WHERE originalpm_id = '" . $pmInfo['originalpm_id'] . "' AND pm_id != '" . $pmInfo['pm_id'] . "' ORDER BY datesent DESC");
     $oldPMObj = new PrivateMessage($mysqli);
     $dispPreviousMessages .= "\n\t\t\t\t<tr>\n\t\t\t\t\t<td class='main' colspan='2'><br><br>\n\t\t\t\t\t\t<b>Previous Messages:</b>\n\t\t\t\t\t\t<div class='dottedLine' style='width: 90%; padding-top: 5px'></div><br>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t";
     while ($row = $result->fetch_assoc()) {
         $oldPMObj->select($row['pm_id']);
         if ($row['receiver_id'] != 0) {
             $member->select($row['receiver_id']);
             $dispToPrevMember = $member->getMemberLink();
         } else {
             $dispToPrevMember = $oldPMObj->getRecipients(true);
             $pmObj->select($row['pm_id']);
             $arrReceivers = $pmObj->getAssociateIDs();
         }
コード例 #4
0
ファイル: inbox.php プロジェクト: nsystem1/clanscripts
$consoleInfo = $consoleObj->get_info_filtered();
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$pmObj = new PrivateMessage($mysqli);
$multiMemPMObj = $pmObj->multiMemPMObj;
// Check Login
$LOGIN_FAIL = true;
if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) {
    $memberInfo = $member->get_info_filtered();
    $arrPM = array();
    $arrPMMID = array();
    $pmFolderObj = new PMFolder($mysqli);
    $pmFolderObj->intMemberID = $memberInfo['member_id'];
    // Stick Folder Conditions in variables
    $isFolderSet = isset($_POST['folder']);
    $selectedFolder = $pmFolderObj->select($_POST['folder']);
    $condition1 = !$selectedFolder || $selectedFolder && !$pmFolderObj->isMemberFolder();
    $arrStandardFolders = array(0, -1, -2);
    // Folder Checks
    if (!$isFolderSet) {
        $_POST['folder'] = 0;
        $pmFolderObj->setFolder($_POST['folder']);
    } elseif ($isFolderSet && $condition1 && !in_array($_POST['folder'], $arrStandardFolders)) {
        exit;
    } elseif (in_array($_POST['folder'], $arrStandardFolders)) {
        $pmFolderObj->setFolder($_POST['folder']);
    }
    $pmFolderObj->setFolder($_POST['folder']);
    $arrFolderContents = $pmFolderObj->getFolderContents();
    $arrPM = $arrFolderContents[0];
    $arrPMMID = $arrFolderContents[1];
コード例 #5
0
ファイル: move.php プロジェクト: nsystem1/clanscripts
 */
include_once "../../../_setup.php";
include_once "../../../classes/member.php";
include_once "../../../classes/rank.php";
include_once "../../../classes/pmfolder.php";
include_once "../../../classes/privatemessage.php";
// Start Page
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Private Messages");
$consoleObj->select($cID);
$consoleInfo = $consoleObj->get_info_filtered();
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$memberInfo = $member->get_info_filtered();
$pmFolderObj = new PMFolder($mysqli);
$checkFolder = $pmFolderObj->select($_POST['newFolder']);
$pmFolderObj->setFolder($_POST['newFolder']);
$pmFolderObj->intMemberID = $memberInfo['member_id'];
// Check Login
$LOGIN_FAIL = true;
if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj) && ($checkFolder || $pmFolderObj->isMemberFolder())) {
    $pmObj = new PrivateMessage($mysqli);
    $arrPMIDS = json_decode($_POST['movePMs']);
    foreach ($arrPMIDS as $pmID) {
        $pmMID = "";
        if (strpos($pmID, "_") !== false) {
            $tempPMID = substr($pmID, 0, strpos($pmID, "_"));
            $pmMID = str_replace($tempPMID . "_", "", $pmID);
            $pmID = $tempPMID;
        }
        if ($pmObj->select($pmID)) {