function BackendPayments() { $list = getdbolist('db_coins', "enable and id in (select distinct coinid from accounts)"); foreach ($list as $coin) { BackendCoinPayments($coin); } dborun("update accounts set balance=0 where coinid=0"); }
public function actionPayuserscoin() { if (!$this->admin) { return; } $coin = getdbo('db_coins', getiparam('id')); if (!$coin) { debuglog("coin not found"); return; } BackendCoinPayments($coin); $this->goback(); }