I'm trying to integrate one of my sites into the vbulletin, I took the vbulletin header, the footer then I called with an include before and after my "engine".
Variables, cookies and session suddenly stopped working Why?
It's a vb security measure? I can I make my code works?
That's the PHP header :
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');
$forumpath = '/home/webdir/www/www.bodyweb.com/forums';
// ============================================
// No Further Editing Necessary!
// ============================================
if ($forumpath)
{
if (!is_dir($forumpath))
{
echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
exit;
}
chdir($forumpath);
}
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');
eval('$navbar2 = "' . fetch_template('navbar2') . '";');
eval('$headerbw = "' . fetch_template('headerbw') . '";');
eval('$footerbw = "' . fetch_template('footerbw') . '";');
echo"$headerbw";
?>
Between this two goes my code
The PHP Footer :
PHP Code:
<?php
echo"$footerbw";
?>
and the templates used :
headerbw:
PHP Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" xmlns="http://www.w3.org/1999/xhtml">
<head>
<if condition="$pages['name'] == 'home'">
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
</if>
<title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if></title>
$headinclude
</head>
<body>
$header
$navbar2
footerbw :
PHP Code:
$footer
</body>
</html>