// Check digit.. mswCheckDigit($_GET['disputeUsers'], true); // Load ticket data.. $SUPTICK = mswGetTableData('tickets', 'id', $_GET['disputeUsers']); // Checks.. if (!isset($SUPTICK->id)) { $HEADERS->err404(true); exit; } // Load mail params include REL_PATH . 'control/mail-data.php'; // Class.. include_once PATH . 'control/classes/class.accounts.php'; include_once REL_PATH . 'control/classes/class.accounts.php'; $MSACC = new accounts(); $MSPORTAL = new accountSystem(); $MSACC->settings = $SETTINGS; $MSPORTAL->settings = $SETTINGS; // Add users.. if (isset($_POST['add']) && isset($_GET['disputeUsers'])) { $count = 0; $tickID = (int) $_GET['disputeUsers']; $TICKET = mswGetTableData('tickets', 'id', $tickID); $USER = mswGetTableData('portal', 'id', $TICKET->visitorID); $new = array(); if (!empty($_POST['name']) && $tickID > 0 && isset($TICKET->id) && isset($USER->id)) { // Batch loop visitors to be added..nuke duplicate emails.. foreach (array_keys($_POST['email']) as $k) { $name = $_POST['name'][$k]; $email = $_POST['email'][$k]; $send = isset($_POST['send'][$k]) ? 'yes' : 'no';
This File: team.php Description: System File ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ if (!defined('PARENT')) { $HEADERS->err403(true); } // Access.. if (!in_array($cmd, $userAccess) && $MSTEAM->id != '1') { $HEADERS->err403(true); } // Load mail params include REL_PATH . 'control/mail-data.php'; // Include relevant classes.. include_once REL_PATH . 'control/classes/class.accounts.php'; $MSPORTAL = new accountSystem(); // Check email.. if (isset($_POST['checkEntered'])) { $msg = ''; if (!mswIsValidEmail($_POST['checkEntered'])) { $ret = 'exists'; } else { $ret = $MSUSERS->check(); if ($ret == 'exists') { $msg = $msg_portal32; } } echo $JSON->encode(array('response' => $ret, 'message' => $msg)); exit; } if (isset($_POST['process'])) {
public function ms_password($email, $password = '') { $pass = $password ? $password : accountSystem::ms_generate(); mysql_query("UPDATE `" . DB_PREFIX . "portal` SET\n `userPass` = '" . md5(SECRET_KEY . $pass) . "'\n WHERE `email` = '{$email}'\n LIMIT 1\n "); return $pass; }
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This File: ajax.php Description: System File Ajax Ops ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ if (!defined('PARENT') || !isset($_GET['ajax'])) { $HEADERS->err403(true); } // Load classes not loaded by main system.. include REL_PATH . 'control/classes/class.accounts.php'; include PATH . 'control/classes/class.accounts.php'; $MSACC = new accountSystem(); $MSACC->settings = $SETTINGS; $MSPTL = new accounts(); $MSPTL->settings = $SETTINGS; // Parse based on directive.. switch ($_GET['ajax']) { //========================= // Ticket delete ops.. //========================= case 'delete': if (USER_DEL_PRIV == 'yes') { switch ($_GET['type']) { // Ticket reply.. case 'reply': $ID = (int) $_GET['id']; $RP = mswGetTableData('replies', 'id', $ID);
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ if (!defined('PARENT')) { $HEADERS->err403(true); } // Access.. if (!in_array($cmd, $userAccess) && $MSTEAM->id != '1') { $HEADERS->err403(true); } // Batch enable/disable fields.. $batchEnDisFields = array('users' => $msg_tools30, 'portal' => $msg_tools31, 'fields' => $msg_tools32, 'responses' => $msg_tools33, 'imap' => $msg_tools34, 'faq-cat' => $msg_tools35, 'faq-que' => $msg_tools36); // Load mail params include REL_PATH . 'control/mail-data.php'; // Account classes.. include REL_PATH . 'control/classes/class.accounts.php'; include_once PATH . 'control/classes/class.accounts.php'; $MSACCNT = new accountSystem(); $MSACC = new accounts(); $MSACC->settings = $SETTINGS; $MSACCNT->settings = $SETTINGS; // Batch enable/disable.. if (isset($_POST['enable-disable'])) { if (!empty($_POST['tbls'])) { $MSSET->batchEnableDisable($batchEnDisFields); switch ($_POST['endis-option']) { case 'enable': $txt = $msg_tools37; break; case 'disable': $txt = $msg_tools38; break; }