Refactored hasCard to cardProduced and cardDelivered, update database
This commit is contained in:
1 parent
b7f534baed
commit
52f4484572
8 files changed
+282
-124
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user