r599 - trunk/web/include

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Feb 28 18:51:28 EST 2006


Author: floam
Date: 2006-02-28 18:51:28 -0500 (Tue, 28 Feb 2006)
New Revision: 599

Modified:
   trunk/web/include/getdata.php
Log:
try to make it actually work.


Modified: trunk/web/include/getdata.php
===================================================================
--- trunk/web/include/getdata.php	2006-02-28 23:45:14 UTC (rev 598)
+++ trunk/web/include/getdata.php	2006-02-28 23:51:28 UTC (rev 599)
@@ -1,12 +1,12 @@
 <?php
-switch ($_POST[$agree]) {
-	case "I Agree":
+switch ($_GET[$agree]) {
+	case FALSE:
 		$html = "<h2>KEINE DATEN FÜR SIE!</h2>
 			 <p>You'll need to agree to the EULA if you want the
 			 updated data.</p>"; //nazigerman for "NO DATA FOR YOU!"
 		break;
 		
-	case "I Do Not Agree":
+	case TRUE:
 		$html = "<h2>You agree!</h2>
 			 <p>Good for you. Click here to download a tarball
 			 with the new data <tt>pk3</tt>s.</p>";
@@ -239,12 +239,12 @@
 COMMUNICATIONS BETWEEN ID AND YOU RELATING TO THE SUBJECT MATTER OF
 THIS AGREEMENT.
 </pre>
-<form method=\"post\" action=\"?page=getdata\">
-	<input type=\"submit\" id=\"agree\" value=\"I Agree\" />
-	<input type=\"submit\" id=\"agree\" value=\"I Do Not Agree\" />
+<form method=\"post\" action=\"?page=getdata&agree=1\">
+	<input type=\"submit\" id=\"agree\"/>
 </form>
-</p>
-";
+<form method=\"post\" action=\"?page=getdata&agree=0\">
+	<input type=\"submit\" id=\"agree\"/>
+</form>
+</p>";
 }
 echo $html;
-echo $_POST[$agree];




More information about the quake3-commits mailing list