X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=gwvplib%2Fgwvpauth.php;h=5056c061832206075f73f93914035aa5b298bbbd;hp=27afec89096083a915b67517505c1e313cdbcc0b;hb=20d1cc1a856b039329b382a8119454099896c938;hpb=8f714681f0b8452e97c1d4eeb02262f1ffd3ee7b diff --git a/gwvplib/gwvpauth.php b/gwvplib/gwvpauth.php index 27afec8..5056c06 100644 --- a/gwvplib/gwvpauth.php +++ b/gwvplib/gwvpauth.php @@ -1,21 +1,93 @@ -
+ - - - - + + + + + + + + + + + + + + + + + + + + +
NameYour Full Name
EmailYour Email Address
Nick NameThe Name Used to Refer to you on the site
NameYour Full Name + + CAPTCHA Image
+ + [ Different Image ] + +
EmailYour Email Address
User NameThe Name Used to Refer to you on the site
-
+ check($_POST['captcha_code']) == false) { + // the code was incorrect + // you should handle the error so that the form processor doesn't continue + + // or you can use the following code if there is no validation or you do not know how + echo "The security code entered was incorrect.

"; + echo "Please go back and try again."; + } else { + echo "code was right"; + } + + } +} + +function gwvp_checkBasicAuthLogin() +{ + $user = false; + $pass = false; + if(isset($_SERVER["PHP_AUTH_USER"])) { + $user = $_SERVER["PHP_AUTH_USER"]; + } else return false; + + if(isset($_SERVER["PHP_AUTH_PW"])) { + $pass = $_SERVER["PHP_AUTH_PW"]; + } else return false; + + return gwvp_authUserPass($user, $pass); +} + function gwvp_IsLoggedIn() { if(isset($_SESSION["isloggedin"])) { @@ -70,7 +225,7 @@ function gwvp_IsLoggedIn() function gwvp_SingleLineLoginForm() { global $BASE_URL; - + echo "
Username "; echo " Passowrd "; if(gwvp_IsRegistrationEnabled()) echo "Register
";