PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
scp
<?php /********************************************************************* admin.inc.php Handles all admin related pages....everything admin! Peter Rotich <peter@osticket.com> Copyright (c) 2006-2013 osTicket http://www.osticket.com Released under the GNU General Public License WITHOUT ANY WARRANTY. See LICENSE.TXT for details. vim: expandtab sw=4 ts=4 sts=4: **********************************************************************/ require_once 'staff.inc.php'; //Make sure config is loaded and the staff is set and of admin type if(!$ost or !$thisstaff or !$thisstaff->isAdmin()){ header('Location: index.php'); require('index.php'); // just in case! exit; } //Define some constants. define('OSTADMININC',TRUE); //checked by admin include files define('ADMINPAGE',TRUE); //Used by the header to swap menus. // osta - Handle dismiss version notification if (isset($_GET['osta_dismiss_version']) && $thisstaff && $thisstaff->isAdmin()) { $thisstaff->setExtraAttr('osta_dismissed_version', $_GET['osta_dismiss_version']); $thisstaff->save(); $redirect = strtok($_SERVER['REQUEST_URI'], '?'); header('Location: ' . $redirect); exit; } // osta - Flush version cache (for testing/admin use) if (isset($_GET['osta_flush_version_cache']) && $thisstaff && $thisstaff->isAdmin()) { db_query("DELETE FROM " . TABLE_PREFIX . "config WHERE `namespace`='osticketawesome' AND `key` IN ('version-check-data', 'version-check-timestamp')"); $redirect = strtok($_SERVER['REQUEST_URI'], '?'); header('Location: ' . $redirect); exit; } //Some security related warnings - bitch until fixed!!! :) $sysnotice= ''; if($ost->isUpgradePending()) { $errors['err']=$sysnotice=__('System upgrade is pending').' <a href="upgrade.php">'.__('Upgrade Now').'</a>'; if(!in_array(basename($_SERVER['SCRIPT_NAME']), array('upgrade.php', 'logs.php'))) { header('Location: upgrade.php'); require('upgrade.php'); exit; } } else { if(!strcasecmp(basename(CONFIG_FILE), 'settings.php')) { $sysnotice=sprintf(__('Please rename config file include/%s to include/ost-config.php to avoid possible conflicts'), basename(CONFIG_FILE)); //Die gracefully - otherwise upgraded RC5 installations will die with confusing message. if(!strcasecmp(basename($_SERVER['SCRIPT_NAME']), 'settings.php')) die($sysnotice); } elseif(!osta_is_internal() && file_exists('../setup/')) { $sysnotice=__('Please take a minute to delete <strong>setup</strong> directory (../setup/) for security reasons.'); } elseif(CONFIG_FILE && file_exists(CONFIG_FILE) && is_writable(CONFIG_FILE)) { //Confirm for real that the file is writable by group or world. clearstatcache(); //clear the cache! $perms = @fileperms(CONFIG_FILE); if(($perms & 0x0002) || ($perms & 0x0010)) { $sysnotice=sprintf(__('Please change permission of config file (%1$s) to remove write access. e.g <i>chmod 644 %2$s</i>'), basename(CONFIG_FILE), basename(CONFIG_FILE)); } } if(!$sysnotice && ini_get('register_globals')) $sysnotice=__('Please consider turning off register globals if possible'); // osta - Version update notification if (!$sysnotice) { require_once ROOT_DIR . 'osta/php/version-notification.php'; $sysnotice = osta_version_notification($thisstaff); } // /osta } //System notice displayed as a warning (if any). $ost->setWarning($sysnotice); //Admin navigation - overwrites what was set in staff.inc.php $nav = new AdminNav($thisstaff); //Page title. $ost->setPageTitle(__('osTicket :: Admin Control Panel')); ?>
[+]
..
[-] directory.php
[edit]
[-] faq.php
[edit]
[-] orgs.php
[edit]
[-] upgrade.php
[edit]
[-] lists.php
[edit]
[-] ajax.php
[edit]
[-] banlist.php
[edit]
[-] teams.php
[edit]
[-] staff.inc.php
[edit]
[-] dashboard.php
[edit]
[-] filters.php
[edit]
[-] theme.php
[edit]
[-] index.php
[edit]
[-] autocron.php
[edit]
[-] schedules.php
[edit]
[+]
apps
[-] profile.php
[edit]
[+]
js
[-] admin.inc.php
[edit]
[-] categories.php
[edit]
[-] tickets.php
[edit]
[-] audits.php
[edit]
[-] system.php
[edit]
[-] emails.php
[edit]
[-] logs.php
[edit]
[-] admin.php
[edit]
[-] plugins.php
[edit]
[-] settings.php
[edit]
[-] queues.php
[edit]
[+]
css
[-] kb.php
[edit]
[-] departments.php
[edit]
[-] logo.php
[edit]
[-] helptopics.php
[edit]
[-] emailtest.php
[edit]
[-] pages.php
[edit]
[+]
images
[-] templates.php
[edit]
[-] login.php
[edit]
[-] tasks.php
[edit]
[-] staff.php
[edit]
[-] pwreset.php
[edit]
[-] apikeys.php
[edit]
[-] forms.php
[edit]
[-] roles.php
[edit]
[-] canned.php
[edit]
[-] export.php
[edit]
[-] logout.php
[edit]
[-] emailsettings.php
[edit]
[-] users.php
[edit]
[-] slas.php
[edit]
[-] txets.php
[edit]
[-] .htaccess.disabled
[edit]