function callInformation($call_priority_options, $call_status, $call_priority, $building_options, $building_id, $resnet_call)
 {
     if ($resnet_call == 'resnet') {
         $tpl->assign('is_resnet', 'checked');
     }
     $tpl->assign('call_status', $call_status);
     $tpl->assign('call_priority_select_list', PSUHTML::getSelectOptions($call_priority_options, $call_priority));
     $tpl->assign('building_select_list', PSUHTML::getSelectOptions($building_options, $building_id));
 }
 function restoreRequestFunc($getData = false, $_GET = '')
 {
     global $db;
     $tpl = new XTemplate(TEMPLATE_DIR . '/restore_request.tpl');
     $restore_system_options = PSUHTML::getSelectOptions($this->getRestoreSystemOptions(), $_GET['restore_system']);
     $date_time_month_options = PSUHTML::getSelectOptions($this->getDateTimeOptions('Month'), date("m"));
     $date_time_date_options = PSUHTML::getSelectOptions($this->getDateTimeOptions('Date'), date("d"));
     $date_time_year_options = PSUHTML::getSelectOptions($this->getDateTimeOptions('Year'), date("Y"));
     $date_time_hour_options = PSUHTML::getSelectOptions($this->getDateTimeOptions('Hour'), date("G"));
     $date_time_minute_options = PSUHTML::getSelectOptions($this->getDateTimeOptions('Minute'), date("i"));
     $tpl->assign('restore_system_options', $restore_system_options);
     $tpl->assign('date_time_month_options', $date_time_month_options);
     $tpl->assign('date_time_date_options', $date_time_date_options);
     $tpl->assign('date_time_year_options', $date_time_year_options);
     $tpl->assign('date_time_hour_options', $date_time_hour_options);
     $tpl->assign('date_time_minute_options', $date_time_minute_options);
     $tpl->assign('restore_details', $_GET[restore_details]);
     $tpl->assign('restore_filenames', $_GET[restore_filenames]);
     $tpl->assign('restore_path', $_GET[restore_path]);
     $tpl->parse('main');
     return $tpl->text('main');
 }
示例#3
0
        PSUHTML::redirect($GLOBALS['BASE_URL'] . '/' . $GLOBALS['SSH_HOST'] . ':browse' . $parent);
    } else {
        jsonAndExit($json);
    }
}
$result = $GLOBALS['SCP']->unlink($path);
if ($result === null) {
    $log_data['result'] = 'failure';
    $json['error'] = true;
    $json['message'] = 'File did not exist.';
} elseif ($result === false) {
    $log_data['result'] = 'failure';
    $json['error'] = true;
    $json['message'] = 'File could not be deleted.';
} else {
    $log_data['result'] = 'success';
    $json['success'] = true;
    $json['row_id'] = $_GET['row_id'];
}
rf_log($log_data);
if ($redirect) {
    if ($json['success']) {
        $_SESSION['messages'][] = 'File ' . htmlentities(basename($path)) . ' was deleted.';
    } else {
        $_SESSION['errors'][] = $json['message'];
    }
    PSUHTML::redirect($GLOBALS['BASE_URL'] . '/' . $GLOBALS['SSH_HOST'] . ':browse' . $parent);
} else {
    jsonAndExit($json);
}
// vim:ts=2:sw=2:noet:
 /**
  * Remove custom layout for the logged-in user.
  */
 public function reset()
 {
     if (!$this->portal->person->wp_id) {
         $_SESSION['errors'][] = "No wp_id, refusing to reset layout.";
         PSUHTML::redirect($GLOBALS['BASE_URL']);
     }
     $wp_id = array($this->portal->person->wp_id);
     $sql = "\n\t\t\tDELETE c, m\n\t\t\tFROM\n\t\t\t\tusertabs t LEFT JOIN\n\t\t\t\tuserchannels c ON t.id = c.usertab_id LEFT JOIN\n\t\t\t\tuserchannels_meta m ON c.id = m.userchannel_id\n\t\t\tWHERE t.wp_id = ?\n\t\t";
     PSU::db('portal')->Execute($sql, $wp_id);
     $sql = "\n\t\t\tDELETE t, m\n\t\t\tFROM usertabs t LEFT JOIN usertabs_meta m ON t.id = m.usertab_id\n\t\t\tWHERE t.wp_id = ?\n\t\t";
     PSU::db('portal')->Execute($sql, $wp_id);
     PSUHTML::redirect($GLOBALS['BASE_URL']);
 }
function editTLCUser($user_name)
{
    $template_name = TEMPLATE_ADMIN_DIR . '/new_user_form.tpl';
    $tpl = new XTemplate($template_name);
    $tpl->assign('form_action', 'manage_users.html?action=updatetlcuser');
    $getTotalGroupsQuery = PSU::db('calllog')->Execute("SELECT * from itsgroups WHERE itsgroups.deleted = 0");
    $k = 0;
    while ($getTotalGroups = $getTotalGroupsQuery->FetchRow()) {
        $tpl->assign("totalGroups", $k);
        $tpl->parse("main.countTotalGroups");
        $k++;
    }
    $getUserInfoSQL = "SELECT * FROM call_log_employee, its_employee_groups, itsgroups WHERE itsgroups.deleted = 0 and call_log_employee.user_name='{$user_name}' AND call_log_employee.call_log_user_id = its_employee_groups.employee_id AND itsgroups.itsgroupid = its_employee_groups.group_id ORDER BY subgroupName ASC";
    $getUserInfoRes = PSU::db('calllog')->Execute($getUserInfoSQL);
    $i = 0;
    if ($getUserInfoRes->_numOfRows == '0') {
        // ITS Groups Options Array
        $its_group_options = array();
        $its_group_options = getITSGroupOptions();
        $tpl->assign('select_group', $its_group_options);
        $its_select_group_list = PSUHTML::getSelectOptions($its_group_options, $getUserInfo['group_id']);
        $tpl->assign('its_select_group_list', $its_select_group_list);
        $tpl->assign('i', 0);
        // loop over the results, parsing main.group for each
        $tpl->assign('my_group', strtolower($getUserInfo[subgroup]));
        $tpl->assign('my_group_name', $getUserInfo[subgroupName]);
        $tpl->parse('main.ManageITSGroups');
    } else {
        while ($getUserInfo = $getUserInfoRes->FetchRow()) {
            // ITS Groups Options Array
            $its_group_options = array();
            $its_group_options = getITSGroupOptions();
            $its_select_group_list = PSUHTML::getSelectOptions($its_group_options, $getUserInfo['group_id']);
            $tpl->assign('its_select_group_list', $its_select_group_list);
            $tpl->assign('i', $i);
            $i++;
            // loop over the results, parsing main.group for each
            $tpl->assign('my_group', strtolower($getUserInfo[subgroup]));
            $tpl->assign('my_group_name', $getUserInfo[subgroupName]);
            $tpl->parse('main.ManageITSGroups');
        }
    }
    $js_its_select_group_list = str_replace(array("\n", 'selected="selected'), '', $its_select_group_list);
    $tpl->assign('js_its_select_group_list', $js_its_select_group_list);
    $query = PSU::db('calllog')->Execute("SELECT * FROM call_log_employee WHERE user_name = '{$user_name}'");
    $key = $query->FetchRow();
    $tpl->assign('tlc_employee_positions', PSUHTML::getSelectOptions($GLOBALS['tlc_employee_positions'], $key['user_privileges']));
    $tpl->assign('user_status', PSUHTML::getSelectOptions($GLOBALS['user_status'], $key['status']));
    $tpl->assign('class_options', PSUHTML::getSelectOptions($GLOBALS['class_options'], $key['student_class']));
    $tpl->assign('signed_ferpa', PSUHTML::getSelectOptions($GLOBALS['ferpa_options'], $key['ferpa']));
    $tpl->assign('key', $key);
    $tpl->parse('main.update_tlc_user');
    $tpl->parse('main');
    return $tpl->text('main');
}
<?php

PSU::get()->banner = PSU::db('test');
PSU::db('banner')->debug = true;
$args = array('pidm' => $_REQUEST['pidm'], 'term_code' => $_REQUEST['term_code'], 'comment_text' => $_REQUEST['note']);
$query = "INSERT INTO sgrscmt(\n\t\t\t\t\tsgrscmt_pidm,\n\t\t\t\t\tsgrscmt_seq_no,\n\t\t\t\t\tsgrscmt_term_code,\n\t\t\t\t\tsgrscmt_comment_text,\n\t\t\t\t\tsgrscmt_activity_date\n\t\t\t\t)\n\t\t\t\tVALUES\n\t\t\t\t(\n\t\t\t\t\t:pidm,\n\t\t\t\t\t(SELECT MAX(NVL(sgrscmt_seq_no,0))+1 FROM sgrscmt WHERE sgrscmt_pidm=:pidm),\n\t\t\t\t\t:term_code,\n\t\t\t\t\t:comment_text,\n\t\t\t\t\tSYSDATE\n\t\t\t\t)";
$action = PSU::db('banner')->Execute($query, $args);
PSUHTML::redirect($GLOBALS['BASE_URL'] . '/student/' . $person->pidm);
            if (strpos($key, 'ape_') === 0) {
                unset($_SESSION['AUTHZ']['permission'][$key]);
            }
            //end if
        }
        //end foreach
        $message = 'Now impersonating: ' . $_SESSION['username'] . ' (' . $_SESSION['wp_id'] . ')';
        $_SESSION['messages'][] = $message;
    } elseif ($action == 'cancel') {
        if (isset($_SESSION['impersonate'])) {
            $GLOBALS['LOG']->write('Finished impersonating account', $_SESSION['username']);
            $_SESSION['wp_id'] = $_SESSION['impersonate_store']['wp_id'];
            $_SESSION['username'] = $_SESSION['impersonate_store']['username'];
            $_SESSION['pidm'] = $_SESSION['impersonate_store']['pidm'];
            $_SESSION['fullname'] = $_SESSION['impersonate_store']['fullname'];
            $_SESSION['phpCAS']['user'] = $_SESSION['impersonate_store']['username'];
            unset($_SESSION['AUTHZ']);
            PSU::get('idmobject')->loadAuthZ($_SESSION['pidm']);
            unset($_SESSION['impersonate_store'], $_SESSION['impersonate']);
        }
        //end if
        PSU::redirect($_SERVER['HTTP_REFERER']);
    } else {
        throw new Exception('Stop trying to sneak in here!!!');
    }
    //end else
} catch (Exception $e) {
    $_SESSION['errors'][] = sprintf("%s (%d)", $e->GetMessage(), $e->GetCode());
}
PSUHTML::redirect($GLOBALS['BASE_URL'] . '/user/' . $redirect_id);
<?php

/**
 * Save changes to hardware from hardware.html.
 */
if (!IDMObject::authZ('permission', 'ape_hardware')) {
    die('You do not have hardware privileges.');
}
$pidm = (int) $_GET['pidm'];
$id = (int) $_GET['id'];
$person = new PSUPerson($pidm);
$person->hardware->deleteHardware($id);
PSUHTML::redirect($BASE_URL . '/hardware/u/' . $person->username);
示例#9
0
<?php

$_SESSION = array();
session_destroy();
PSUHTML::redirect('http://www.plymouth.edu/');
 /**
  * Default handler to redirect to /tab/welcome
  */
 public function index()
 {
     PSUHTML::redirect($GLOBALS['BASE_URL'] . '/tab/welcome');
 }
示例#11
0
$tmp_name = $_FILES['feed']['tmp_name'];
$new_name = $GLOBALS['TMP'] . '/' . $_FILES['feed']['name'];
if (!is_uploaded_file($tmp_name)) {
    $_SESSION['errors'][] = "Uploaded file not found.";
    PSUHTML::redirect($GLOBALS['BASE_URL'] . '/upload.html');
}
if (!is_dir($GLOBALS['TMP'])) {
    mkdir($GLOBALS['TMP']);
}
move_uploaded_file($tmp_name, $new_name);
if (!is_file($new_name)) {
    $_SESSION['errors'][] = 'Could not find renamed file at ' . $new_name;
    PSUHTML::redirect($GLOBALS['BASE_URL'] . '/upload.html');
}
$result = chmod($new_name, 0600);
if ($result == false) {
    $_SESSION['errors'][] = 'Could not chmod ' . $new_name;
    PSUHTML::redirect($GLOBALS['BASE_URL'] . '/upload.html');
}
$ca = new CommonApp($new_name);
$ca->import();
if (count($ca->errors)) {
    // there were errors
    $_SESSION['errors'][] = 'Some records file failed to import.';
    $_SESSION['errors'] = array_merge($_SESSION['errors'], $ca->errors);
} else {
    $_SESSION['messages'][] = 'Feed file imported successfully.';
}
unlink($new_name);
PSUHTML::redirect($GLOBALS['BASE_URL'] . '/upload.html');
示例#12
0
<?php

$from = $_GET['from'];
$_SESSION['javascript'] = !$_SESSION['javascript'];
PSUHTML::redirect($from);
示例#13
0
<?php

$list = $_GET['list'];
PSUHTML::redirect($GLOBALS['BASE_URL'] . '/lists/' . $list);
 function getDateSelect($default = "", $format = "%s", $type = 1, $leading_blank = false, $min_year = false, $max_year = false, $extra = "")
 {
     // types are:
     // 1 - m/d/Y
     // 2 - m/Y
     // 3 - m/d/Y H:m
     // 4 - H:m
     $html = "";
     $min_year = $min_year ? $min_year : date("Y") - 5;
     $max_year = $max_year ? $max_year : date("Y") + 10;
     if (is_numeric($default)) {
         $d_month = date("m", $default);
         $d_day = date("d", $default);
         $d_year = date("Y", $default);
         $d_hour = date("H", $default);
         $d_minute = date("i", $default);
     }
     if ($type <= 3) {
         $months = PSUHTML::_copyValues(range(1, 12));
         $days = PSUHTML::_copyValues(range(1, 31));
         $years = PSUHTML::_copyValues(range($min_year, $max_year));
         $html .= "<select {$extra} name=\"" . str_replace("%s", "month", $format) . "\">\n";
         $html .= PSUHTML::getSelectOptions($months, $d_month, $leading_blank);
         $html .= "</select>";
         if ($type != 2) {
             $html .= "/";
             $html .= "<select {$extra} name=\"" . str_replace("%s", "day", $format) . "\">\n";
             $html .= PSUHTML::getSelectOptions($days, $d_day, $leading_blank);
             $html .= "</select>";
         }
         $html .= "/";
         $html .= "<select {$extra} name=\"" . str_replace("%s", "year", $format) . "\">\n";
         $html .= PSUHTML::getSelectOptions($years, $d_year, $leading_blank);
         $html .= "</select>";
         if ($type == 3) {
             $html .= "&nbsp;";
         }
     }
     if ($type >= 3) {
         $hours = PSUHTML::_copyValues(range(0, 23));
         $minutes = PSUHTML::_copyValues(range(0, 60));
         $html .= "<select {$extra} name=\"" . str_replace("%s", "hour", $format) . "\">\n";
         $html .= PSUHTML::getSelectOptions($hours, $d_hour, $leading_blank);
         $html .= "</select>";
         $html .= ":";
         $html .= "<select {$extra} name=\"" . str_replace("%s", "minute", $format) . "\">\n";
         $html .= PSUHTML::getSelectOptions($minutes, $d_minute, $leading_blank);
         $html .= "</select>";
     }
     return $html;
 }
示例#15
0
require_once $GLOBALS['BASE_DIR'] . '/rfutil/rfutil.inc.php';
IDMObject::authN();
$GLOBALS['BANNER'] = PSUDatabase::connect('oracle/psc1_psu/fixcase');
$GLOBALS['RemoteFiles'] = PSUDatabase::connect('mysql/myplymouth');
$GLOBALS['BannerIDM'] = new IDMObject($GLOBALS['BANNER']);
$GLOBALS['PHPSESSID'] = $_COOKIE['PHPSESSID'];
// make sure our session variables are set up
if (!isset($_SESSION['javascript'])) {
    $_SESSION['javascript'] = true;
}
if (isset($_GET['go'])) {
    $go = $_GET['go'];
    if (empty($go)) {
        $go = $GLOBALS['DEFAULT_HOST'];
    } elseif (!ctype_lower($go)) {
        $go = $GLOBALS['DEFAULT_HOST'];
        $_SESSION['errors'][] = 'An invalid server name was provided via go.plymouth.edu.';
    }
    PSUHTML::redirect($GLOBALS['BASE_URL'] . "/" . $go . ":");
}
$remote_files = new PSU\RemoteFiles();
$config = \PSU\Config\Factory::get_config();
if (isset($_GET['ssh-fixup']) && $_GET['ssh-fixup'] && $_GET['ssh-fixup'] === $config->get('remote-files', 'ssh_fixup')) {
    $fixup_dir = '/tmp/remote-files-feed';
    $remote_files->ssh_config_update($fixup_dir);
    die('Complete.');
}
$GLOBALS['SSH_HOST'] = isset($_REQUEST['server']) ? $_REQUEST['server'] : $GLOBALS['DEFAULT_HOST'];
$GLOBALS['SCP'] = new SCPlib($GLOBALS['SSH_HOST']);
$GLOBALS['RFP'] = new RFPermissions($GLOBALS['BannerIDM'], $GLOBALS['RemoteFiles'], $GLOBALS['SSH_HOST']);
// vim:ts=2:sw=2:noet:
示例#16
0
 /**
  * checks for an invalid person object and redirects if there is a problem
  */
 public static function validate_person($identifier, &$person)
 {
     // if this pidm is bogus, display an error
     if (!$person->wp_id && !$person->pidm) {
         if ($person->identifier_type) {
             $_SESSION['errors'][] = sprintf('"%s" is not a recognized ' . $person->identifier_type . '.', htmlentities($person->initial_identifier));
         } else {
             $_SESSION['errors'][] = sprintf('"%s" is not a unique identifier.  A skilled and helpful APE has executed a search on your behalf.  Rejoice!', htmlentities($person->initial_identifier));
         }
         //end else
         PSUHTML::redirect($GLOBALS['BASE_URL'] . '/search.html?type=name&identifier=' . urlencode($identifier));
         exit;
     }
     //end if
     return true;
 }
<?php

PSU::db('banner')->debug = true;
$filename = $_FILES['uploadedfile']['tmp_name'];
$datafile = fopen($filename, "r");
if ($datafile) {
    while (!feof($datafile)) {
        $items[] = fgetcsv($datafile, 8192);
    }
    fclose($datafile);
}
if (!CommonAppCountries::deleteOldCountryCodes()) {
    $_SESSION['errors'][] = 'Unable to clear the country table before processing.';
} elseif (!CommonAppCountries::insertCountryCodes($items)) {
    $_SESSION['errors'][] = 'Unable to insert all countries.';
} elseif (!CommonAppCountries::updateCountryCodes()) {
    $_SESSION['errors'][] = 'Unable to link country tables.';
} else {
    $_SESSION['messages'][] = 'Country code file was successfully uploaded.';
}
PSUHTML::redirect($GLOBALS['BASE_URL'] . '/countries.html');
        throw new Exception('Username missing from password reset request.');
    }
    $person = new PSUPerson($username);
    if (!$reason && ($ssn != substr($person->ssn, -4) || $dob != $person->birth_date)) {
        $GLOBALS['LOG']->write('Password Reset Attempt Failed: invalid DOB & SSN portion provided.', $username);
        throw new Exception('The identity verification failed.  Either the last 4 of the SSN OR the Date of Birth did not match.');
    }
    //end if
    if ($reason && !IDMObject::authZ('permission', 'ape_pw')) {
        throw new Exception('You are not allowed to perform password resets without the last 4 of the SSN and Birth Date.');
    }
    //end if
    if (!$reason) {
        $reason = 'Private Data Provided and Verified';
    }
    //end if
    list($username, $password) = $GLOBALS['PWMAN']->defaultCredentials($username);
    $GLOBALS['PWMAN']->setPassword($username, $password);
    $GLOBALS['PWMAN']->expire($username, 'reset');
    $GLOBALS['LOG']->write('Resetting password: '******'Password Reset', 'Reset password.', array('call_status' => 'closed'))) {
        $message .= ' Ticket #<a href="http://go.plymouth.edu/log/' . $call_id . '">' . $call_id . '</a> has been logged.';
    }
    //end if
    $_SESSION['messages'][] = $message;
} catch (Exception $e) {
    $_SESSION['errors'][] = sprintf("%s (%d)", $e->GetMessage(), $e->GetCode());
}
PSUHTML::redirect($GLOBALS['BASE_URL'] . '/user/' . $username);
示例#19
0
            throw new Exception("You cannot administer the {$role['attribute']} attribute");
        }
        $GLOBALS['BannerIDM']->removeAttribute($person->pidm, $id);
        list($type_id, $type) = $GLOBALS['BannerIDM']->any2type($role['type_id']);
        $log_attribute = $role['attribute'];
        $response['status'] = 'success';
        $response['message'] = sprintf('%s "%s" has been removed.', ucfirst($type), $role['attribute']);
        $GLOBALS['ape']->log($person->pidm, $action, $action_status, $type, $log_attribute);
    } else {
        $GLOBALS['ape']->log($person->pidm, $action, $action_status, $type, $log_attribute);
    }
} catch (Exception $e) {
    $response['message'] = $e->GetMessage() . ($e->GetCode() ? '(' . $e->GetCode() . ')' : '');
    $GLOBALS['ape']->log($person->pidm, $action, $action_status, $type, $log_attribute);
}
// bail here if request was javascript
if (isset($_GET['method']) && $_GET['method'] == 'js') {
    header('Content-type: text/javascript');
    $response['pidm'] = $person->pidm;
    $response['type'] = $type;
    $response['attribute'] = $log_attribute;
    die(json_encode($response));
}
// pass along our message
if ($response['status'] == 'success') {
    $_SESSION['messages'][] = $response['message'];
} else {
    $_SESSION['errors'][] = $response['message'];
}
PSUHTML::redirect($GLOBALS['BASE_URL'] . '/user/' . $person->pidm);
示例#20
0
/**
 * action_cleanup() creates an HTTP response for a page that is responding
 * to a form submission. This response might be a redirect to another page,
 * or outputting a JSON string. This function causes script processing to end.
 *
 * @param			string $url the url to redirect to
 * @param			mixed $response any messages that should be passed to the user
 * @param			bool $is_ajax whether or not the response should be done in json
 */
function action_cleanup($url, $response = '', $is_ajax = false)
{
    if ($is_ajax) {
        PSUTools::jsonAndExit($response);
    } else {
        $_SESSION['messages'] = array_merge($_SESSION['messages'], $response['messages']);
        $_SESSION['errors'] = array_merge($_SESSION['errors'], $response['errors']);
        PSUHTML::redirect($url);
    }
}
示例#21
0
        $log_data['result'] = 'denied';
        throw new Exception('You do not have write access to ' . htmlentities($path . $rf_file['name']));
    }
    try {
        $GLOBALS['SCP']->put($rf_file['tmp_name'], $path . $rf_file['name']);
    } catch (SCPException $e) {
        $log_data['result'] = 'failure';
        throw new Exception('There was an error uploading your file: ' . $e->getMessage() . ' (' . $e->getCode() . ')');
    }
    $log_data['result'] = 'success';
    $msg = 'File "' . htmlentities($rf_file['name']) . '" was uploaded successfully.';
    if ($swfupload) {
        $json['message'] = $rf_file['name'];
        $json['html'] = $msg;
    } else {
        $_SESSION['messages'][] = $msg;
    }
} catch (Exception $e) {
    if ($swfupload) {
        $json['status'] = 'error';
        $json['message'] = $e->getMessage();
    } else {
        $_SESSION['errors'][] = $e->getMessage();
    }
}
rf_log($log_data);
if ($swfupload) {
    PSUTools::jsonAndExit($json);
}
PSUHTML::redirect($GLOBALS['BASE_URL'] . '/' . $GLOBALS['SSH_HOST'] . ':browse' . $fullpath);
// vim:ts=2:sw=2:noet:
示例#22
0
// Web Path To JS Files
define('JS_WEB_DIR', $GLOBALS['BASE_URL'] . '/js');
$GLOBALS['JS_WEB_DIR'] = JS_WEB_DIR;
$GLOBALS['HELPDESK_EMAIL'] = '*****@*****.**';
define('INCLUDES_DIR', __DIR__ . '/includes');
define('FUNCTIONS_DIR', INCLUDES_DIR . '/functions');
// Callog functions
$INCLUDES = __DIR__ . "/includes";
// use the include variable to reference all app specific includes
$IMAGES = $GLOBALS['BASE_URL'] . '/images';
// End variable definitions
define('MAGPIE_CACHE_ON', false);
require_once 'magpierss/rss_fetch.inc';
require_once 'functions.php';
if (isset($_GET['go'])) {
    PSUHTML::redirect($GLOBALS['BASE_URL'] . '/ticket/' . $_GET['go']);
}
require_once INCLUDES_DIR . "/functions.php";
include FUNCTIONS_DIR . "/add_update.class.php";
include FUNCTIONS_DIR . "/call_log_graph_functions.php";
include FUNCTIONS_DIR . "/call_log_keyword_admin_functions.php";
include FUNCTIONS_DIR . "/call_log_search.php";
include FUNCTIONS_DIR . "/call_log_stats_and_reports_functions.php";
include FUNCTIONS_DIR . "/employee_calls_function.php";
include FUNCTIONS_DIR . "/my_options_functions.php";
include FUNCTIONS_DIR . "/news_functions.php";
include FUNCTIONS_DIR . "/open_call_functions.php";
include FUNCTIONS_DIR . "/recovered_data.php";
include FUNCTIONS_DIR . "/restore.class.php";
include FUNCTIONS_DIR . "/tlc_users_functions.php";
include FUNCTIONS_DIR . "/user.class.php";
示例#23
0
        }
        //end if
    }
    //end if
    $GLOBALS['LOG']->write($response['message'], $person->login_name);
    $response['status'] = 'success';
} catch (Exception $e) {
    $response['message'] = $e->getMessage();
}
//
// ajax requests end here
//
if (isset($_GET['method']) && $_GET['method'] == 'js') {
    header('Content-type: application/json');
    die(json_encode($response));
}
//
// otherwise, redirect back to the user page
//
$redirect_to = $GLOBALS['BASE_URL'];
// pass along our message
if ($response['status'] == 'success') {
    $_SESSION['messages'][] = $response['message'];
} else {
    $_SESSION['errors'][] = $response['message'];
}
if (isset($_GET['identifier'])) {
    $redirect_to .= '/user/' . $_GET['identifier'];
}
PSUHTML::redirect($redirect_to);
示例#24
0
<?php

$path = $_GET['path'];
$filter = $_GET['filter'];
PSUHTML::redirect($GLOBALS['BASE_URL'] . '/' . $GLOBALS['SSH_HOST'] . ':browse' . $path . $filter);