PDA

View Full Version : htaccess hack for vbb 2


G0D
06-25-2001, 11:17 AM
Simple htaccess by kennydies [global user and pass mode]

edit your global.php and ABOVE
// ###################### Start init #######################

add this code:


// Simple htaccess by kennydies [global user and pass mode] (made on 28-5-2001)

if ( !isset( $PHP_AUTH_USER ) ) {
header('WWW-Authenticate: Basic realm="Htaccess login system"');
header('HTTP/1.0 401 Unauthorized');
echo "Sorry, we don't allow gayness on our board\n";
exit;
} else if ( isset( $PHP_AUTH_USER ) ) {
if ( $PHP_AUTH_USER != "mofo" or $PHP_AUTH_PW != "spankme" ) { // username and pass required
header('WWW-Authenticate: Basic realm="Htaccess login system"');
header('HTTP/1.0 401 Unauthorized');
echo "Sorry, we don't allow gayness on our board\n";
exit;
}
}

// Simple htaccess by kennydies [global user and pass mode] (made on 28-5-2001)

Change the username/pass in $PHP_AUTH_USER != "mofo" or $PHP_AUTH_PW != "spankme" into what you want.

Why did I make this code when you can just use a simple .htaccess file? Cuzz my board was on a server that doesn't support .htaccess and with this code, htaccess does work.


later today I will post the code so username/password are the same as the login on your vbb (i'm at work now and the code is on my home pc)


http://members.home.nl/kennydies/pissonms.gif

DEMOLiTiON
06-25-2001, 01:42 PM
pls do not release this hack in public :(

G0D
06-25-2001, 02:10 PM
grrr... :p

okay, I won't publish that other htaccess hack.
I know how boards like to distinguish themselfs with these sort of hacks.

Not a real big deal for me so.

DEMOLiTiON
06-25-2001, 03:38 PM
Thnx :)

Remi
06-25-2001, 08:23 PM
Why DEMOLiTiON, it is not fair :mad:

I liked this hack very much and I was very excited when "G0D" said that he was going to send the rest of the code today!!

So please withdraw your objection or tell me how to do it :D

G0D
06-29-2001, 02:14 PM
Originally posted by Remi
Why DEMOLiTiON, it is not fair :mad:

I liked this hack very much and I was very excited when "G0D" said that he was going to send the rest of the code today!!

So please withdraw your objection or tell me how to do it :D

DEMOLiTiON is a friend of mine. didn't recognise him cuzz he has a different nick here. DEMOLiTiON just made a hack like this 2 weeks ago or something like it. He had to do it himself. And so he did distinguish his board from others.

If DEMOLiTiON don't want me to make this hack public...I won't.

Remi
06-30-2001, 03:25 PM
Well...

I am very disapointed, but in the end of the day it is your work

Thank you for your reply