cvs: php-gtk-web /include cvs-auth.inc

[email protected] ("Steph Fox") Tue, 11 Jul 2006 06:47:54 -0000
Newsgroups php.gtk.webmaster
Message-ID <cvssfox1152600474@cvsserver>
sfox		Tue Jul 11 06:47:54 2006 UTC

  Modified files:              
    /php-gtk-web/include	cvs-auth.inc 
  Log:
  clean up http_referer usage some
  
http://cvs.php.net/viewvc.cgi/php-gtk-web/include/cvs-auth.inc?r1=1.10&r2=1.11&diff_format=u
Index: php-gtk-web/include/cvs-auth.inc
diff -u php-gtk-web/include/cvs-auth.inc:1.10 php-gtk-web/include/cvs-auth.inc:1.11
--- php-gtk-web/include/cvs-auth.inc:1.10	Tue Jul 11 01:10:49 2006
+++ php-gtk-web/include/cvs-auth.inc	Tue Jul 11 06:47:53 2006
@@ -1,5 +1,5 @@
 <?php
-/* $Id: cvs-auth.inc,v 1.10 2006/07/11 01:10:49 sfox Exp $ */
+/* $Id: cvs-auth.inc,v 1.11 2006/07/11 06:47:53 sfox Exp $ */
 require_once('config.inc');
 
 function get_auth($name, $pass, $connect = null) {
@@ -47,7 +47,7 @@
 	return 0 == strncmp($response, 'I LOVE YOU', 10) ? true : false;
 }
 
-function verify_password($user, $pass) {
+function verify_password($user, $pass, $ref) {
 
 	if (strlen($user) > 0 && strlen($pass) > 0) {
 
@@ -62,7 +62,6 @@
 			}
 		}
 	}
-	$ref = substr($_SERVER['HTTP_REFERER'], 0, strrpos($_SERVER['HTTP_REFERER'], '.php') + 4);
 	header("Location: $ref");
 }