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
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