|
OK. Here is my entire file with the appopriate changes. First the error is now this:
Warning: chdir(): No such file or directory (errno 2) in /home2/kevinstr/public_html/photopost/header-inc.php on line 38
Warning: main(./global.php): failed to open stream: No such file or directory in /home2/kevinstr/public_html/photopost/header-inc.php on line 39
Warning: main(./global.php): failed to open stream: No such file or directory in /home2/kevinstr/public_html/photopost/header-inc.php on line 39
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/kevinstr/public_html/photopost/header-inc.php on line 39
<?php
// vBPortal Integration
// If you want to include the vBPortal header, footer, and left menu, remove
// the "//" slashes from the beginning of the 16 lines of code below, and change
// "/home/public_html/vbportal" to your actual path to vbportal's main directory,
// and change "/home/public_html/photopost" to your actual path to PhotoPost's
// directory. This will override the default header and footer variables set in the
// PhotoPost admin panel.
//$vbportal="/home/kevinstr/public_html"; // No ending slash
//$pppath ="/home/kevinstr/public_html/photopost"; // No ending slash
//chdir($vbportal . "/");
//require ("mainfile.php");
//$index = 0;
//global $Pmenu,$Pheader;
//$Pheader="P_themeheader";
//$Pmenu="P_thememenu_photopost";
//require("header.php");
//$vbheader=ob_get_contents();
//ob_end_clean();
//ob_start();
//require("footer.php");
//$vbfooter=ob_get_contents();
//ob_end_clean();
//chdir($pppath . "/");
// vBulletin Integration
// Instead of using the static header/footer file specified in the Admin options
// panel, you can use your existing default vBulletin header/footer. Just change
// $vbpath and $pppath below to the proper full paths and remove the "//" slashes
// from the beginning of the 27 lines of code below. If PhotoPost has an odd
// background color or squished width, you will need to edit vbulletin's default
// "header" style input box / template and change "{pagebgcolor}" and "{tablewidth}"
// (near the bottom) to your preferred background color and table width, respectively.
$vbpath ="/home/kevinstr/public_html/forums"; // changeme
$pppath ="/home/kevinstr/public_html/photopost"; // changeme
chdir($vbpath);
require("./global.php");
eval('$navbar = "' . fetch_template('navbar') . '";');
$vbheader = "$stylevar[htmldoctype]
<html dir=\"$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\">
<head>
$headinclude";
$vbheader .= "</head>
<body>
$header
$navbar
<div align=\"center\">";
eval('$vbfooter = "' . fetch_template('footer') . '";');
$vbfooter = process_replacement_vars($vbfooter);
$vbfooter = "</div>$vbfooter";
chdir($pppath . "/");
$HTTP_POST_FILES = $_FILES;
$HTTP_POST_VARS = $_POST;
?>
|