
07-02-2005, 01:07 PM
|
 |
|
|
Join Date: May 2003
Location: Butte, MT
Posts: 635
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Xia
Thanks for your quick reply,
I added the 4 arrays but the errors still remain.
Here is the new code:
PHP Code:
echo "creating arrays.."; //define('THIS_SCRIPT', 'index'); $phrasegroups = array('holiday'); $specialtemplates = array( 'userstats', 'birthdaycache', 'maxloggedin', 'iconcache', 'eventcache', 'mailqueue' ); $globaltemplates = array( 'FORUMHOME', 'forumhome_event', 'forumhome_forumbit_level1_nopost', 'forumhome_forumbit_level1_post', 'forumhome_forumbit_level2_nopost', 'forumhome_forumbit_level2_post', 'forumhome_lastpostby', 'forumhome_loggedinuser', 'forumhome_moderator', 'forumhome_pmloggedin', 'forumhome_subforumbit_nopost', 'forumhome_subforumbit_post', 'forumhome_subforumseparator_nopost', 'forumhome_subforumseparator_post' ); $actiontemplates = array(); chdir('../forum'); echo "requiring.."; require_once('./global.php'); echo "required.."; $user =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY); echo "created..";
|
in your chdir statement, declare the full filepath (ie. /home/yourdomain/public_html/forum) to the forum directory...then after you have done the work that requires the vb files, chdir back to the directory that the file is in that you are working with. That should remove the global errors.
|