updates, NMRs, etc.

This commit is contained in:
Enno Rehling 2002-03-03 11:17:22 +00:00
parent 22e01a2d8e
commit 1a96d17650
2 changed files with 8 additions and 3 deletions

View File

@ -231,7 +231,7 @@ def Save(custid, Password):
game, sid, faction = cursor.fetchone() game, sid, faction = cursor.fetchone()
if Form.has_key("cancel_"+faction): if Form.has_key("cancel_"+faction):
update = db.cursor() 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): elif Form.has_key("transfer_"+faction):
newuser = int(Form["transfer_"+faction].value) newuser = int(Form["transfer_"+faction].value)
TransferFaction(sid, faction, newuser, game) TransferFaction(sid, faction, newuser, game)
@ -242,7 +242,7 @@ def Save(custid, Password):
game, sid, faction = cursor.fetchone() game, sid, faction = cursor.fetchone()
if Form.has_key("accept_"+faction): if Form.has_key("accept_"+faction):
update = db.cursor() 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 = 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") 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() game, sid, faction = cursor.fetchone()
if Form.has_key("activate_"+faction): if Form.has_key("activate_"+faction):
update = db.cursor() 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 = nfactions - 1
db.close() db.close()

View File

@ -50,6 +50,11 @@ content="text/html; charset=iso-8859-1">
</td> </td>
<td width="150" valign="top"> <td width="150" valign="top">
<div align="center">--AO Partnerprogramm--<br>
<a href="https://register.funcom.com/?partner=1000138917"><img src="images/athrox.png" align="center" border="0" alt="Download Anarchy Online"></a>
<br clear=all>
<a href="http://www.anarchy-online.com/content/downloads/tryout/"></a><br>
--AO Partnerprogramm--</div>
</td> </td>
</tr> </tr>
</table> </table>