XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
admin_header.php
Go to the documentation of this file.
1 <?php
20 $path = dirname(dirname(dirname(dirname(__FILE__))));
21 include_once $path . '/mainfile.php';
22 include_once $path . '/include/cp_functions.php';
23 require_once $path . '/include/cp_header.php';
24 
25 global $xoopsModule;
26 
27 $thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname');
28 
29 //if functions.php file exist
30 //require_once dirname(dirname(__FILE__)) . '/include/functions.php';
31 
32 // Load language files
36 
37 $pathIcon16 = '../'.$xoopsModule->getInfo('icons16');
38 $pathIcon32 = '../'.$xoopsModule->getInfo('icons32');
39 $pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
40 
42 
43 if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
44  include_once XOOPS_ROOT_PATH . "/class/template.php";
45  $xoopsTpl = new XoopsTpl();
46 }
47 
48 include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
49 
50 xoops_loadLanguage('user');
51 if ( !isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl']) ) {
52  include_once $GLOBALS['xoops']->path( "/class/template.php" );
53  $GLOBALS['xoopsTpl'] = new XoopsTpl();
54 }