XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
xoops13_header.php
Go to the documentation of this file.
1 <?php
19 defined('XOOPS_ROOT_PATH') or die('Restricted access');
20 
21 $xoopsOption['theme_use_smarty'] = 0;
22 
23 if (file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/lang-' . $xoopsConfig['language'] . '.php')) {
24  include XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/lang-' . $xoopsConfig['language'] . '.php';
25 } elseif (file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/lang-english.php')) {
26  include XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/lang-english.php';
27 }
28 
31 
32 xoops_header(false);
33 include XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php';
34 $xoopsOption['show_rblock'] = (! empty($xoopsOption['show_rblock'])) ? $xoopsOption['show_rblock'] : 0;
35 
36 // include Smarty template engine and initialize it
37 require_once XOOPS_ROOT_PATH . '/class/template.php';
39 if ($xoopsConfig['debug_mode'] == 3) {
40  $xoopsTpl->debugging = true;
41 }
42 if ($xoopsUser != '') {
43  $xoopsTpl->assign(array(
44  'xoops_isuser' => true ,
45  'xoops_userid' => $xoopsUser->getVar('uid') ,
46  'xoops_uname' => $xoopsUser->getVar('uname') ,
47  'xoops_isadmin' => $xoopsUserIsAdmin));
48 }
49 $xoopsTpl->assign('xoops_requesturi', htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES));
50 include XOOPS_ROOT_PATH . '/include/old_functions.php';
51 
52 if ($xoopsOption['show_cblock'] || (! empty($xoopsModule) && preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname'))) {
53  $xoopsOption['show_rblock'] = $xoopsOption['show_cblock'] = 1;
54 }
55 themeheader($xoopsOption['show_rblock']);
56 if ($xoopsOption['show_cblock'])
57  make_cblock(); //create center block
58 ?>