![]() |
What is the code in
/home/kinedac/public_html/forums/global.php on line 78 |
Don't have time to test this now, but I think he could do 1 of 2 things.
1. Enter an absolute path for the admin/config.php in the global.php file, ie /home/kinedac/www/forums/admin/config.php or something to that extent. 2. Change directory before including the file. Something like this: PHP Code:
Again, I have not tested this... -Sparkz |
Thanks Sparkz! It works fine now!
|
My pleasure :)
|
Any clue on how to set this to a certain user group?
|
Why does it return to the Users CP rather than the referring page?
JC |
I'm having some problems getting this working..
heres my test.php file PHP Code:
what am i doing wrong? Thanks in advance http://www.vcdquality.com/test.php |
When I execute my nonvb page with the code in it, whether I'm logged in or not, it just goes to the page and it's a blank white screen.
#!/usr/local/bin/php <?php //Begin VB Security Intergration Hack include_once("/full/home/path/html/forums/global.php"); if ($bbuserinfo[userid]==0) { $thispage=urlencode("$PHP_SELF"); header("Location:http://www.site.com/forums/usercp.ph...de=1&prevpage=".$thispage); } //End VB Security Intergration Hack ?> [HTML PAGE HERE] Any ideas? Thanks, Scott |
Quote:
===Find this==== $ipaddress=$REMOTE_ADDR; $scriptpath=$REQUEST_URI; ===And add this after the line above=== if(!$urloverride) { $scriptpath=$REQUEST_URI; } else { $scriptpath=urldecode($prevpage); } |
x69,
Change to this and test it again. include_once($DOCUMENT_ROOT . "/forum/global.php"); echo "before"; |
All times are GMT. The time now is 06:59 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|