Refactored hasCard to cardProduced and cardDelivered, update database

This commit is contained in:
h-alstad committed 2010-06-01 22:52:22 +02:00
1 parent b7f534baed
commit 52f4484572
8 files changed
+282 -124

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
<?php
header("Content-type: application/xml");
print('<?xml version="1.0" encoding="ISO-8859-1"?'.'>');
require_once "includes.php";
$userid = $_GET["userid"];
$user = new User($userid);
$user->setCardProduced(1);
$user->updateLastSticker(date("Y", strtotime($user->getExpiryDate($user->cardno))));
$user->sendCardProducedNotifyMail();
?>
<user>
<cardno><?php print $user->cardno; ?></cardno>
<laststicker><?php print $user->lastSticker; ?></laststicker>
</user>