One Hat Cyber Team
Your IP :
216.73.216.182
Server IP :
203.175.9.166
Server :
Linux tanggamus.iixcp.rumahweb.net 5.14.0-427.28.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 2 03:44:10 EDT 2024 x86_64
Server Software :
LiteSpeed
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
cite5577
/
public_html
/
lib
/
pkp
/
pages
/
user
/
View File Name :
PKPUserHandler.inc.php
<?php /** * @file pages/user/PKPUserHandler.inc.php * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2000-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @class PKPUserHandler * @ingroup pages_user * * @brief Handle requests for user functions. */ import('classes.handler.Handler'); class PKPUserHandler extends Handler { /** * Index page; redirect to profile */ function index($args, $request) { $request->redirect(null, null, 'profile'); } /** * Change the locale for the current user. * @param $args array first parameter is the new locale */ function setLocale($args, $request) { $setLocale = array_shift($args); $site = $request->getSite(); $context = $request->getContext(); if ($context != null) { $contextSupportedLocales = (array) $context->getSupportedLocales(); } if (AppLocale::isLocaleValid($setLocale) && (!isset($contextSupportedLocales) || in_array($setLocale, $contextSupportedLocales)) && in_array($setLocale, $site->getSupportedLocales())) { $session = $request->getSession(); $session->setSessionVar('currentLocale', $setLocale); } $source = $request->getUserVar('source'); if (preg_match('#^/\w#', $source) === 1) { $request->redirectUrl($source); } if(isset($_SERVER['HTTP_REFERER'])) { $request->redirectUrl($_SERVER['HTTP_REFERER']); } $request->redirect(null, 'index'); } /** * Get interests for reviewer interests autocomplete. * @param $args array * @param $request PKPRequest * @return JSONMessage JSON object */ function getInterests($args, $request) { import('lib.pkp.classes.user.InterestManager'); import('lib.pkp.classes.core.JSONMessage'); return new JSONMessage( true, (new InterestManager())->getAllInterests($request->getUserVar('term')) ); } /** * Display an authorization denied message. * @param $args array * @param $request Request */ function authorizationDenied($args, $request) { if (!Validation::isLoggedIn()) { Validation::redirectLogin(); } // Get message with sanity check (for XSS or phishing) $authorizationMessage = $request->getUserVar('message'); if (!preg_match('/^[a-zA-Z0-9.]+$/', $authorizationMessage)) { fatalError('Invalid locale key for auth message.'); } $this->setupTemplate($request); AppLocale::requireComponents(LOCALE_COMPONENT_PKP_USER, LOCALE_COMPONENT_PKP_REVIEWER); $templateMgr = TemplateManager::getManager($request); $templateMgr->assign('message', $authorizationMessage); return $templateMgr->display('frontend/pages/message.tpl'); } }