XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
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
24
$xoops
=
Xoops::getInstance
();
25
26
XoopsLoad::load
(
'system'
,
'system'
);
27
XoopsLoad::load
(
'module'
,
'system'
);
28
XoopsLoad::load
(
'extension'
,
'system'
);
29
30
$system
=
System::getInstance
();
31
32
// Check user rights
33
if
(!
$system
->checkRight()) {
34
$xoops
->redirect(\
XoopsBaseConfig::get
(
'url'
), 3,
XoopsLocale::E_NO_ACCESS_PERMISSION
);
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
50
$system_breadcrumb
=
SystemBreadcrumb::getInstance
(
$fct
);
51
$system_breadcrumb
->addLink(
SystemLocale::CONTROL_PANEL
, \
XoopsBaseConfig::get
(
'url'
) .
'/admin.php'
,
true
);
SystemBreadcrumb\getInstance
static getInstance($fct= '')
Definition:
systembreadcrumb.php:58
System\getInstance
static getInstance()
Definition:
system.php:46
$xoops
$xoops
Definition:
header.php:25
Xoops\getInstance
static getInstance()
Definition:
Xoops.php:160
$fct
$fct
Definition:
header.php:46
$system
$system
Definition:
header.php:26
XoopsBaseConfig\get
static get($name)
Definition:
XoopsBaseConfig.php:117
SystemLocaleEn_US\CONTROL_PANEL
const CONTROL_PANEL
Definition:
en_US.php:247
XoopsLoad\load
static load($name, $type="core")
Definition:
xoopsload.php:65
XoopsLocaleEn_US\E_NO_ACCESS_PERMISSION
const E_NO_ACCESS_PERMISSION
Definition:
en_US.php:351
$system_breadcrumb
$system_breadcrumb
Definition:
header.php:50
usr64
htdocs
modules
system
header.php
Generated on Fri May 22 2015 03:07:01 for XOOPS by
1.8.9.1