diff --git a/web/yaamp/modules/site/SiteController.php b/web/yaamp/modules/site/SiteController.php index 6a9cae1..a7e1f64 100644 --- a/web/yaamp/modules/site/SiteController.php +++ b/web/yaamp/modules/site/SiteController.php @@ -266,6 +266,22 @@ class SiteController extends CommonController $this->renderPartial('earning_results'); } + public function actionClearearnings() + { + if(!$this->admin) return; + $coin = getdbo('db_coins', getiparam('id')); // todo... + + BackendClearEarnings(); + $this->render('earning'); + } + + public function actionClearearning() + { + if(!$this->admin) return; + $earning = getdbo('db_earnings', getiparam('id')); // todo... + $this->render('earning'); + } + ///////////////////////////////////////////////// public function actionPayments() @@ -579,6 +595,8 @@ class SiteController extends CommonController public function actionDeleteExchange() { + if(!$this->admin) return; + $exchange = getdbo('db_exchange', getiparam('id')); $unspent = $exchange->quantity; @@ -601,6 +619,8 @@ class SiteController extends CommonController public function actionClearMarket() { + if(!$this->admin) return; + $id = getiparam('id'); $market = getdbo('db_markets', $id); @@ -690,6 +710,8 @@ class SiteController extends CommonController public function actionRunExchange() { + if(!$this->admin) return; + $id = getiparam('id'); $balance = getdbo('db_balances', $id); diff --git a/web/yaamp/modules/site/earning_results.php b/web/yaamp/modules/site/earning_results.php index 0a7f248..5c8c8a3 100644 --- a/web/yaamp/modules/site/earning_results.php +++ b/web/yaamp/modules/site/earning_results.php @@ -1,6 +1,6 @@