aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfloam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-03-01 00:16:24 +0000
committerfloam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-03-01 00:16:24 +0000
commit35985673aaac9c11ed114c031e39628f183dc78e (patch)
tree814482a2bbab4213580902a42f79e1bf7c48c9b4
parentc8c790d4ac3dff8b028471ef2ce5062f4f9c80c7 (diff)
downloadioquake3-aero-35985673aaac9c11ed114c031e39628f183dc78e.tar.gz
ioquake3-aero-35985673aaac9c11ed114c031e39628f183dc78e.zip
I had forgotten php and html forms for five minutes. This should work.
git-svn-id: svn://svn.icculus.org/quake3/trunk@601 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--web/include/getdata.php35
1 files changed, 17 insertions, 18 deletions
diff --git a/web/include/getdata.php b/web/include/getdata.php
index 9c6b0ea..5828f47 100644
--- a/web/include/getdata.php
+++ b/web/include/getdata.php
@@ -1,6 +1,18 @@
<?php
-switch ($_GET[$agree]) {
- case NULL:
+echo $_POST['agree'];
+switch ($_POST['agree']) {
+ case "0":
+ $html = "<h2>KEINE DATEN FÜR SIE!</h2>
+ <p>You'll need to agree to the EULA if you want the
+ updated data.</p>"; //nazi-german for "NO DATA FOR YOU!"
+ break;
+
+ case "1":
+ $html = "<h2>You agree!</h2>
+ <p>Good for you. Click here to download a tarball
+ with the new data <tt>pk3</tt>s.</p>";
+ break;
+ default:
$html = "
<h2>EULA</h2>
<p>In order for us to distribute the updated pk3 files from id
@@ -228,23 +240,10 @@ ORAL AGREEMENTS, PROPOSALS OR UNDERSTANDINGS, AND ANY OTHER
COMMUNICATIONS BETWEEN ID AND YOU RELATING TO THE SUBJECT MATTER OF
THIS AGREEMENT.
</pre>
-<form method=\"post\" action=\"?page=getdata&agree=1\">
- <input type=\"submit\" id=\"agree\"/>
-</form>
-<form method=\"post\" action=\"?page=getdata&agree=0\">
- <input type=\"submit\" id=\"agree\"/>
+<form method=\"post\" action=\"?page=getdata\">
+ <input type=\"submit\" id=\"agree\" name=\"agree\" value=\"I Agree\" />
+ <input type=\"submit\" id=\"agree\" name=\"agree\" value=\"I Do Not Agree\" />
</form>
</p>";
- 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 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>";
- break;
}
echo $html;