X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=gwvplib%2Fgwvpauth.php;h=5056c061832206075f73f93914035aa5b298bbbd;hp=73107e5abff11027eef75a01b414ce007b941281;hb=20d1cc1a856b039329b382a8119454099896c938;hpb=d6d341a5742ed8021fa768c924846e04d46156e1 diff --git a/gwvplib/gwvpauth.php b/gwvplib/gwvpauth.php index 73107e5..5056c06 100644 --- a/gwvplib/gwvpauth.php +++ b/gwvplib/gwvpauth.php @@ -1,21 +1,93 @@ -
+ - - - - + + + + + + + + + + + + + + + + + + + + +
NameYour Full Name
EmailYour Email Address
User 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
";