function action_get_manage_user_bot($params)
{
    global $_PARAMS;
    if (user()->right() == 'ADMIN') {
        $_PARAMS['all_bots'] = BOT::all_bots();
        $_PARAMS['user_bots'] = BOT::by_user($params['values'][0]);
    }
}
Exemple #2
0
 public function bots($refresh = false)
 {
     if ($this->bots === false || $refresh) {
         $this->bots = BOT::by_user($this->id);
     }
     return $this->bots;
 }