diff --git a/Admin/Templates/gold.tpl b/Admin/Templates/gold.tpl index d0c17606..320c2ea4 100644 --- a/Admin/Templates/gold.tpl +++ b/Admin/Templates/gold.tpl @@ -4,6 +4,7 @@ ## --------------------------------------------------------------------------- ## ## Filename gold.tpl ## ## Developed by: aggenkeech ## +## Refactored by: Shadow ## ## License: TravianZ Project ## ## Copyright: TravianZ (c) 2010-2025. All rights reserved. ## ## ## diff --git a/Admin/Templates/usergold.tpl b/Admin/Templates/usergold.tpl index 4e9fea35..7daf47de 100644 --- a/Admin/Templates/usergold.tpl +++ b/Admin/Templates/usergold.tpl @@ -1,69 +1,36 @@ - +?>
-
-Thank you for your purchase here at
Below you see the entry record. Out of it, you can observe your old as well as your new account balance.
-| Record of | -||||
|---|---|---|---|---|
| Description | ![]() | Action | ![]() | Date | -
| Account Balance (old) | -- | |||
Package |
- 60 Gold |
- |||
| Account Balance (new) | -- | - | ||
Please verify the information.
It will let us know if the data is incorrect.
Please mail your username, package, order time and email used to our billing address.
- - -} -if ($amount == 499) { -// Statement retrieve Gold Package B -$MyGold = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$golds = mysqli_fetch_array($MyGold); -$goldnow = $golds['6'] + 120; -mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = '".$goldnow."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$MyGold = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$golds1 = mysqli_fetch_array($MyGold); -?>Thank you for your purchase here at .
Below you see the entry record. Out of it, you can observe your old as well as your new account balance.
-| Record of | -||||
|---|---|---|---|---|
| Description | ![]() | Action | ![]() | Date | -
| Account Balance (old) | -- | |||
Package |
- 60 Gold |
- |||
| Account Balance (new) | -- | - | ||
Please verify the information.
It will let us know if the data is incorrect.
Please mail your username, package, order time and email used to our billing address.
-dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$golds = mysqli_fetch_array($MyGold); -$goldnow = $golds['6'] + 360; -mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = '".$goldnow."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$MyGold = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$golds1 = mysqli_fetch_array($MyGold); -?>Thank you for your purchase here at .
Below you see the entry record. Out of it, you can observe your old as well as your new account balance.
-| Record of | -||||
|---|---|---|---|---|
| Description | ![]() | Action | ![]() | Date | -
| Account Balance (old) | -- | |||
Package |
- 60 Gold |
- |||
| Account Balance (new) | -- | - | ||
Please verify the information.
It will let us know if the data is incorrect.
Please mail your username, package, order time and email used to our billing address.
-dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$golds = mysqli_fetch_array($MyGold); -$goldnow = $golds['6'] + 1000; -mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = '".$goldnow."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$MyGold = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$golds1 = mysqli_fetch_array($MyGold); -?>Thank you for your purchase here at .
Below you see the entry record. Out of it, you can observe your old as well as your new account balance.
-| Record of | -||||
|---|---|---|---|---|
| Description | ![]() | Action | ![]() | Date | -
| Account Balance (old) | -- | |||
Package |
- 60 Gold |
- |||
| Account Balance (new) | -- | - | ||
Please verify the information.
It will let us know if the data is incorrect.
Please mail your username, package, order time and email used to our billing address.
-dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$golds = mysqli_fetch_array($MyGold); -$goldnow = $golds['6'] + 2000; -mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = '".$goldnow."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$MyGold = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); -$golds1 = mysqli_fetch_array($MyGold); -?>Thank you for your purchase here at .
Below you see the entry record. Out of it, you can observe your old as well as your new account balance.
-| Record of | -||||
|---|---|---|---|---|
| Description | ![]() | Action | ![]() | Date | -
| Account Balance (old) | -- | |||
Package |
- 60 Gold |
- |||
| Account Balance (new) | -- | - | ||
Please verify the information.
It will let us know if the data is incorrect.
Please mail your username, package, order time and email used to our billing address.
-dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink)); - $golds = mysqli_fetch_array($MyGold); - ?> +Thank you for your purchase here at .
+Below you see the entry record. Out of it, you can observe your old as well as your new account balance.
-Here you can see your current account statement.
-| Record of | ||||
|---|---|---|---|---|
| Description | +![]() |
+ Action | +![]() |
+ Date | +
| Account Balance (old) | ++ | |||
Package |
+ Gold |
+ |||
| Account Balance (new) | ++ | + | ||


Please verify the information.
It will let us know if the data is incorrect.
Please mail your username, package, order time and email used to our billing address.
- Please verify the information.Please mail your username, package, order time and email used to + our billing address.
-?> - + + + dblink, "SELECT gold FROM ".TB_PREFIX."users WHERE id = $uid LIMIT 1"); + $golds = mysqli_fetch_assoc($result); + + $stats = mysqli_fetch_assoc(mysqli_query($database->dblink, " + SELECT + SUM(CASE WHEN gold > 0 THEN gold ELSE 0 END) as received, + SUM(CASE WHEN gold < 0 THEN -gold ELSE 0 END) as spent + FROM ".TB_PREFIX."gold_fin_log WHERE uid = $uid + ")); + + $received = (int)($stats['received'] ?? 0); + $spent = (int)($stats['spent'] ?? 0); + ?> +Here you can see your current account statement.
+Current balance:
+ | Total received: +
+ | Total spent: -
| Gold history | +|||||
|---|---|---|---|---|---|
| Date & Time | +Village | +Action | +Details | +
+
+ |
+ Balance | +
'.$date.' | ';
+ echo ''.$villageName.' | ';
+ echo ''.$action.' | ';
+ echo ''.$details.' | ';
+ echo ''.$sign.$gold.' | ';
+ echo ''.$balance.' | ';
+ echo '
|
+
+ No transactions yet.
+
+ |
+ |||||
Please verify the information.
It will let us know if the data is incorrect.
Please mail your username, package, order time and email used to + our billing address.
+ +