| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/Topogeo/ojs/pages/admin/ |
Upload File : |
<?php
/**
* @file pages/admin/AdminHandler.inc.php
*
* Copyright (c) 2003-2012 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class AdminHandler
* @ingroup pages_admin
*
* @brief Handle requests for site administration functions.
*/
// $Id$
import('classes.handler.Handler');
class AdminHandler extends Handler {
/**
* Constructor
**/
function AdminHandler() {
parent::Handler();
$this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN)));
$this->addCheck(new HandlerValidatorCustom($this, true, null, null, create_function(null, 'return Request::getRequestedJournalPath() == \'index\';')));
}
/**
* Display site admin index page.
*/
function index() {
$this->validate();
$this->setupTemplate();
$templateMgr =& TemplateManager::getManager();
$templateMgr->assign('helpTopicId', 'site.index');
$templateMgr->display('admin/index.tpl');
}
/**
* Setup common template variables.
* @param $subclass boolean set to true if caller is below this handler in the hierarchy
*/
function setupTemplate($subclass = false) {
parent::setupTemplate();
AppLocale::requireComponents(array(LOCALE_COMPONENT_PKP_ADMIN, LOCALE_COMPONENT_OJS_ADMIN, LOCALE_COMPONENT_OJS_MANAGER));
$templateMgr =& TemplateManager::getManager();
$templateMgr->assign('pageHierarchy',
$subclass ? array(array(Request::url(null, 'user'), 'navigation.user'), array(Request::url(null, 'admin'), 'admin.siteAdmin'))
: array(array(Request::url(null, 'user'), 'navigation.user'))
);
}
}
?>