From 1a96d1765008bc144b6b58ea705d0a29ab52c361 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 3 Mar 2002 11:17:22 +0000 Subject: [PATCH] updates, NMRs, etc. --- scripts/cgi-bin/info.py | 6 +++--- scripts/cgi-bin/vinyambar.html | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/cgi-bin/info.py b/scripts/cgi-bin/info.py index 15526beec..eb9bd3eb8 100755 --- a/scripts/cgi-bin/info.py +++ b/scripts/cgi-bin/info.py @@ -231,7 +231,7 @@ def Save(custid, Password): game, sid, faction = cursor.fetchone() if Form.has_key("cancel_"+faction): update = db.cursor() - update.execute("UPDATE subscriptions set status='CANCELLED' where id="+str(sid)) + update.execute("UPDATE subscriptions set status='CANCELLED' where id="+str(int(sid))) elif Form.has_key("transfer_"+faction): newuser = int(Form["transfer_"+faction].value) TransferFaction(sid, faction, newuser, game) @@ -242,7 +242,7 @@ def Save(custid, Password): game, sid, faction = cursor.fetchone() if Form.has_key("accept_"+faction): update = db.cursor() - update.execute("UPDATE subscriptions set status='ACTIVE' where id="+str(sid)) + update.execute("UPDATE subscriptions set status='ACTIVE' where id="+str(int(sid))) nfactions = nfactions - 1 nfactions = cursor.execute("select g.name, s.id, faction from games g, subscriptions s where s.status='CANCELLED' and s.user="+str(custid) + " and s.game=g.id") @@ -250,7 +250,7 @@ def Save(custid, Password): game, sid, faction = cursor.fetchone() if Form.has_key("activate_"+faction): update = db.cursor() - update.execute("UPDATE subscriptions set status='ACTIVE' where id="+str(sid)) + update.execute("UPDATE subscriptions set status='ACTIVE' where id="+str(int(sid))) nfactions = nfactions - 1 db.close() diff --git a/scripts/cgi-bin/vinyambar.html b/scripts/cgi-bin/vinyambar.html index bbfdcfc13..6c1929fc4 100644 --- a/scripts/cgi-bin/vinyambar.html +++ b/scripts/cgi-bin/vinyambar.html @@ -50,6 +50,11 @@ content="text/html; charset=iso-8859-1"> +
--AO Partnerprogramm--
+ Download Anarchy Online +
+
+ --AO Partnerprogramm--