XOOPS  2.6.0
header.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
21 // Include XOOPS control panel header
22 include_once dirname(dirname(__DIR__)) . '/include/cp_header.php';
23 
25 
26 XoopsLoad::load('system', 'system');
27 XoopsLoad::load('module', 'system');
28 XoopsLoad::load('extension', 'system');
29 
31 
32 // Check user rights
33 if (!$system->checkRight()) {
35 }
36 
37 // System Class
38 include_once $xoops->path('/modules/system/class/cookie.php');
39 // Load Language
40 $xoops->loadLocale('system');
41 // Include System files
42 include_once $xoops->path('/modules/system/include/functions.php');
43 // include system category definitions
44 include_once $xoops->path('/modules/system/constants.php');
45 // Get request variable
46 $fct = $system->cleanVars($_REQUEST, 'fct', '', 'string');
47 
48 XoopsLoad::load('systembreadcrumb', 'system');
49 
51 $system_breadcrumb->addLink(SystemLocale::CONTROL_PANEL, \XoopsBaseConfig::get('url') . '/admin.php', true);
static getInstance($fct= '')
static getInstance()
Definition: system.php:46
$xoops
Definition: header.php:25
static getInstance()
Definition: Xoops.php:160
$fct
Definition: header.php:46
$system
Definition: header.php:26
static get($name)
const CONTROL_PANEL
Definition: en_US.php:247
static load($name, $type="core")
Definition: xoopsload.php:65
const E_NO_ACCESS_PERMISSION
Definition: en_US.php:351
$system_breadcrumb
Definition: header.php:50