diff --git a/admin_shop.php b/admin_shop.php
new file mode 100644
index 0000000..ae6d6fa
--- /dev/null
+++ b/admin_shop.php
@@ -0,0 +1,41 @@
+ 0 && $_GET['orders_ammount'] <= 200 ? (int)$_GET['orders_ammount'] : 50;
+$orders = mysql_select_multi('SELECT * FROM `znote_shop_orders` ORDER BY `id` DESC LIMIT ' . $orders_ammount);
+$order_types = array(1 => 'Item', 2 => 'Premium Days', 3 => 'Sex Change', 4 => 'Custom');
+?>
+
Admin Shop
+Shop Orders
+Shows latest shop orders.
+
+
+
+ Id |
+ Account |
+ Type |
+ Item |
+ Count |
+ Date |
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+
\ No newline at end of file
diff --git a/engine/function/users.php b/engine/function/users.php
index abf4ab0..7a816ed 100644
--- a/engine/function/users.php
+++ b/engine/function/users.php
@@ -933,6 +933,13 @@ function user_account_id_from_password($password) {
return $tmp['id'];
}
+// Get account name from id.
+function user_account_id_from_name($id) {
+ $id = (int)$id;;
+ $result = mysql_select_single("SELECT `name` FROM `accounts` WHERE `id` = '" . $id . "' LIMIT 1;");
+ return $result['name'];
+}
+
// Add additional premium days to account id
function user_account_add_premdays($accid, $days) {
$accid = (int)$accid;
diff --git a/layout/widgets/Wadmin.php b/layout/widgets/Wadmin.php
index 14e5670..5e032c2 100644
--- a/layout/widgets/Wadmin.php
+++ b/layout/widgets/Wadmin.php
@@ -17,6 +17,9 @@
Admin Reports
+
+ Admin Shop
+