![]() |
Intergrate VB security to non-vB page
This is a simple Hack which will utilize VB security and will automatically foward back to the referrer url after login or register. Enjoy! :)
We have been using this hack for almost 8 months now on our online exam http://www.certifyexpress.com/exam/microsoft/mcse/ |
I tried installing this hack on a test page but it doesn't work.
Here's the error: Warning: Failed opening 'home/kinedac/www/forums/global.php' for inclusion (include_path='') in /home/kinedac/public_html/new2/index_test.php on line 8 Warning: Cannot add header information - headers already sent by (output started at /home/kinedac/public_html/new2/index_test.php:7) in /home/kinedac/public_html/new2/index_test.php on line 14 the url is: http://www.kineda.com/new2/index_test.php |
I like it, but havn't tried to install it yet!
Dose it work?? |
Still not working... I wish it did.
I've gotten past the first error that I posted, and now I'm getting this one: Fatal error: Failed opening required './admin/config.php' (include_path='') in /home/kinedac/public_html/forums/global.php on line 78 Please help! http://www.kineda.com/new2/index_test.php |
Can you post the code for index_test.php?
|
yea he needs too certify that its right :)
|
PHP Code:
www.kineda.com/new2/index.html |
remove this line ?quiz=$quiz as this is an example.
|
PHP Code:
|
Bump. TTT.
Any word on why this is still giving me an error? Thanks. |
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"; |
lo :)
Same prob as x69..tried all the variations within this thread & still no luck...just end up on a blank white page <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Code in my Global.php ................................................ $ipaddress=$REMOTE_ADDR; $scriptpath=$REQUEST_URI; //Begin VB Security Intergration Hack if(!$urloverride) { $scriptpath=$REQUEST_URI; } else { $scriptpath=urldecode($prevpage); } //end VB Security Intergration Hack if ($scriptpath=='') { .............................................. Code on Protected page .............................................. <?php include_once($DOCUMENT_ROOT . "/forum/global.php"); if ($bbuserinfo[userid]==0) { $thispage=urlencode("$PHP_SELF"); header("Location:http://www.ev0lution.co.uk/forum/use...de=1&prevpage=".$thispage); } ?> <html> Asked certify about it on his forums..but he's a busy man !.....Anyone got any ideas ? Thanx in advance :) |
[high]* mars pats himself on the back...sorted don't worry :)[/high]
|
It wont work for me. I have the code entered in BEFORE my HTML tag. Even if I have text in the body, I don't get any output.
Thanks in advance |
Quote:
|
Can I get the full code for this script? It seems not to work.
|
yes. for me also .. a pretty BLANK WHITE page.. its really not so easy to get it working :) ...
i also made all changes (global.php) but nthing happens if i load the test.php |
Yep I am having problems and I need to get this working asap :( I put the code in and it starts going to open the page but I then get a 404 even though the url is coprrect. I am not sure if it's because the page is calling an action ...
http://blah.com/maps.php?id=1162 or if I mess with the include path I get the white page problem Any ideas, I am depserate for this to work and would really appreciate some help from someone. |
Is there an update for vb3 rc4 on this. really needed.
|
All times are GMT. The time now is 04:43 PM. |
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:
|