PDA

View Full Version : Combining chdir/require mods


A17roolz
07-16-2006, 09:00 PM
I'm currently using the Deluxe login hack (https://vborg.vbsupport.ru/showthread.php?p=900849) as well as vBExternal (https://vborg.vbsupport.ru/showthread.php?t=83005), however, on some pages I'm using them together. Both use the chdir() and require_once() codes to be added at the top of the page.

My question is how do I add these together without getting errors? I can put them seperatly without any problems at all:

<?php
chdir('/home/******/public_html/bbs/');
require_once('./vBExternal.php');
?>

and


<?php
chdir('/home/******/public_html/bbs/');
require_once('./global.php');
?>

However, when I put them both together, I get a blank page. I've tried switching the two round, using one require_once() and one require(), putting them in seperate PHP commands... nigh on everything! Can anyone help me? It's driving me bananas!

Mosh
07-17-2006, 01:10 AM
Have your tried the below?
<?php
chdir('/home/******/public_html/bbs/');
require_once('./global.php');
require_once('./vBExternal.php');
?>

A17roolz
07-17-2006, 02:07 PM
Have your tried the below?
<?php
chdir('/home/******/public_html/bbs/');
require_once('./global.php');
require_once('./vBExternal.php');
?>
Yup, tried that already. First thing I tried.