-
Notifications
You must be signed in to change notification settings - Fork 2
/
credittransactions.php
56 lines (52 loc) · 1.65 KB
/
credittransactions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* @file credittransactions.php
* @brief credittransactions.php is a page used to check on a given member's
* Hedon transactions.
*
* This file includes:
* funcs.inc:
* - Used for the config.inc include
* - printMemberString()
*
* credits.inc:
* - getCreditTotal()
* - displayCreditTransactions()
*
* Possible Arguments:
* SESSION:
* - mem - Used to determine whether the current user has membership
* coordinator privledges.
* - ID - Used to show the current user their own Hedon transactions.
*
* GET:
* - ID - If mem is set, ID may be sent as a GET variable to show any other
* member's ledger, otherwise the active user's account will be shown.
* - qty - Number of records to display, or 'ALL' to display all records.
*
* @link http://www.worldsapartgames.org/fc/credittransactions.php @endlink
*
* @author Michael Whitehouse
* @author Creidieki Crouch
* @author Desmond Duval
* @copyright 2009-2014 Pioneer Valley Gaming Collective
* @version 1.8d
* @since Project has existed since time immemorial.
*/
$title = "Hedon Transactions";
$version = "1.8d";
require_once 'funcs.inc';
require_once 'credits.inc';
require_once 'header.php';
$ID = $_GET['ID'];
$qty = ($_GET['qty'] > 0) ? $_GET['qty'] : 'ALL';
if (($ID > 0) && ($_SESSION['mem'] == 1)) {
echo "Hedon Total for " . printMemberString($ID, 1) . ": "
. getCreditTotal($ID) . " H<hr>";
displayCreditTransactions($ID, $qty);
} else {
echo "Your Hedon Total: " . getCreditTotal($_SESSION['ID']) . " H<hr>";
displayCreditTransactions($_SESSION['ID'], $qty);
}
require 'footer.php';
?>