XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
header.php
Go to the documentation of this file.
1 <?php
17 // Include XOOPS control panel header
18 include_once dirname( dirname( dirname( __FILE__ ) ) ) . '/include/cp_header.php';
19 // Check user rights
20 if (is_object($xoopsUser)) {
21  $admintest = 0;
22  $xoopsModule =& XoopsModule::getByDirname( 'system' );
23  if ( !$xoopsUser->isAdmin( $xoopsModule->mid() ) ) {
24  redirect_header( XOOPS_URL, 3, _NOPERM );
25  exit();
26  }
27  $admintest = 1;
28 } else {
29  redirect_header( XOOPS_URL, 3, _NOPERM );
30  exit();
31 }
32 // XOOPS Class
33 include_once $GLOBALS['xoops']->path( '/class/pagenav.php' );
34 include_once $GLOBALS['xoops']->path( '/class/template.php' );
35 include_once $GLOBALS['xoops']->path( '/class/xoopsformloader.php' );
36 include_once $GLOBALS['xoops']->path( '/class/xoopslists.php' );
37 // System Class
38 include_once $GLOBALS['xoops']->path( '/modules/system/class/breadcrumb.php' );
39 include_once $GLOBALS['xoops']->path( '/modules/system/class/cookie.php' );
40 // Load Language
41 xoops_loadLanguage('admin', 'system');
42 // Include System files
43 include_once $GLOBALS['xoops']->path( '/modules/system/include/functions.php' );
44 // include system category definitions
45 include_once $GLOBALS['xoops']->path( '/modules/system/constants.php' );
46 // Get request variable
47 $fct = system_CleanVars ( $_REQUEST, 'fct', '', 'string' );
48 
50 $xoBreadCrumb->addLink ( _AM_SYSTEM_CPANEL, XOOPS_URL . '/admin.php', true );
51 
52 ?>