diff --git a/application/config/routes.php b/application/config/routes.php index 5ddf15c1..2326ee1e 100644 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -363,6 +363,11 @@ */ $route[$lang.'/admin/vote/logs'] = 'admin/votelogs'; +/* + * Store (admin) +*/ +$route[$lang.'/admin/store/logs'] = 'admin/storelogs'; + /* * To check the soap connection */ diff --git a/application/language/english/admin_lang.php b/application/language/english/admin_lang.php index 52f14afd..67340e06 100644 --- a/application/language/english/admin_lang.php +++ b/application/language/english/admin_lang.php @@ -53,6 +53,8 @@ $lang['admin_nav_topsites'] = 'Topsites'; $lang['admin_nav_donate_logs'] = 'Donate Logs'; $lang['admin_nav_vote_logs'] = 'Vote Logs'; +$lang['admin_nav_store_logs'] = 'Store Logs'; +$lang['admin_nav_system_logs'] = 'Logs'; $lang['admin_nav_store'] = 'Store'; $lang['admin_nav_manage_store'] = 'Manage Store'; $lang['admin_nav_forum'] = 'Forum'; diff --git a/application/language/english/general_lang.php b/application/language/english/general_lang.php index afda5249..c1d4acd0 100644 --- a/application/language/english/general_lang.php +++ b/application/language/english/general_lang.php @@ -224,6 +224,7 @@ $lang['panel_current_username'] = 'Current Username'; $lang['panel_current_email'] = 'Current Email Address'; $lang['panel_replace_email_by'] = 'Replace Email by'; +$lang['panel_server_checkstatus'] = 'Server is offline. Purchases are not available.'; /*Home Lang*/ $lang['home_latest_news'] = 'Latest News'; diff --git a/application/modules/admin/controllers/Admin.php b/application/modules/admin/controllers/Admin.php index fe9e862a..46554ee2 100644 --- a/application/modules/admin/controllers/Admin.php +++ b/application/modules/admin/controllers/Admin.php @@ -1211,6 +1211,17 @@ public function votelogs() $this->template->build('vote/vote_logs', $data); } + + public function storelogs() + { + $data = [ + 'pagetitle' => 'Store Logs', + 'lang' => $this->lang->lang(), + 'stores' => $this->admin_model->getStoreLogs() + ]; + + $this->template->build('store/store_logs', $data); + } /** * Forum functions diff --git a/application/modules/admin/models/Admin_model.php b/application/modules/admin/models/Admin_model.php index 876759ed..176ee4d2 100644 --- a/application/modules/admin/models/Admin_model.php +++ b/application/modules/admin/models/Admin_model.php @@ -77,6 +77,11 @@ public function getVoteLogs() { return $this->db->order_by('id', 'DESC')->get('votes_logs')->result(); } + + public function getStoreLogs() + { + return $this->db->order_by('id', 'DESC')->get('store_logs')->result(); + } public function updateAccountData($id, $dp, $vp) { diff --git a/application/modules/admin/views/store/store_logs.php b/application/modules/admin/views/store/store_logs.php new file mode 100644 index 00000000..08529504 --- /dev/null +++ b/application/modules/admin/views/store/store_logs.php @@ -0,0 +1,30 @@ +
ID Purchase | +ID Account | +ID Char | +Item | +Price DP | +Price VP | +Date | +
---|---|---|---|---|---|---|
= $stores->id; ?> | += $stores->accountid; ?> | += $stores->charid; ?> | += $stores->item_name; ?> | += $stores->dp; ?> | += $stores->vp; ?> | += $stores->date; ?> | +