[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [920] branches/1.2



Revision: 920
          http://svn.sourceforge.net/ledger-smb/?rev=920&view=rev
Author:   einhverfr
Date:     2007-03-16 17:06:37 -0700 (Fri, 16 Mar 2007)

Log Message:
-----------
Moving from HTTP_USER_AGENT to GATEWAY_INTRFACE where appropriate

Modified Paths:
--------------
    branches/1.2/menu.pl
    branches/1.2/net-setup.pl

Modified: branches/1.2/menu.pl
===================================================================
--- branches/1.2/menu.pl	2007-03-16 23:55:51 UTC (rev 919)
+++ branches/1.2/menu.pl	2007-03-17 00:06:37 UTC (rev 920)
@@ -156,7 +156,7 @@
 
 	if ($form->{password}) {
 		if (! Session::password_check($form, $form->{login}, $form->{password})) {
-			if ($ENV{HTTP_USER_AGENT}) {
+			if ($ENV{GATEWAY_INTERFACE}) {
 				&getpassword;
 			} else {
 				$form->error(__FILE__.':'.__LINE__.': '.$locale->text('Access Denied!'));
@@ -167,7 +167,7 @@
 		}
 		
 	} else {
-		if ($ENV{HTTP_USER_AGENT}) {
+		if ($ENV{GATEWAY_INTERFACE}) {
 			$ENV{HTTP_COOKIE} =~ s/;\s*/;/g;
 			@cookies = split /;/, $ENV{HTTP_COOKIE};
 			foreach (@cookies) {

Modified: branches/1.2/net-setup.pl
===================================================================
--- branches/1.2/net-setup.pl	2007-03-16 23:55:51 UTC (rev 919)
+++ branches/1.2/net-setup.pl	2007-03-17 00:06:37 UTC (rev 920)
@@ -33,10 +33,10 @@
 
 $| = 1;
 
-#not sure how safe this is. If the browser sends a blank HTTP_USER_AGENT
+#not sure how safe this is. If the browser sends a blank GATEWAY_INTERFACE
 #will this script destroy part of the install? 
 #This script should probably be made inaccessible via HTTP until this feature is working
-if (($ENV{HTTP_USER_AGENT})||($ENV{HTTP_HOST})) {
+if (($ENV{GATEWAY_INTERFACE})||($ENV{HTTP_HOST})) {
 	print "Content-type: text/html\n\nThis does not work yet! use $0 from the command line";
 	exit;
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.