public function admin_login($username, $password, $allow_times, $formhash = '')
 {
     global $_lang;
     global $kekezu;
     if (!kekezu::submitcheck($formhash, true)) {
         $hash = kekezu::formhash();
         $kekezu->echojson($_lang['repeat_form_submit'], 6, array('formhash' => $hash));
         die;
     }
     $user_info = keke_user_class::user_login($username, $password);
     $hash = kekezu::formhash();
     if ($user_info == -1) {
         $kekezu->echojson($_lang['username_input_error'], "6", array('formhash' => $hash));
         die;
     } else {
         if ($user_info == -2) {
             $kekezu->echojson($_lang['username_password_input_error'], "5", array('formhash' => $hash));
             die;
         }
     }
     if (!$user_info) {
         $kekezu->echojson($_lang['login_fail'], "4", array('formhash' => $hash));
         die;
     } else {
         $user_info = kekezu::get_user_info($user_info['uid']);
     }
     if (!$user_info) {
         $kekezu->echojson($_lang['no_rights_login_backstage'], "3", array('formhash' => $hash));
         die;
     } else {
         if (!$user_info['group_id'] && $user_info['uid'] != ADMIN_UID) {
             $kekezu->echojson($_lang['no_rights_login_backstage'], "2", array('formhash' => $hash));
             die;
         } else {
             $_SESSION['auid'] = $_SESSION['uid'] = $user_info['uid'];
             $_SESSION['username'] = $user_info['username'];
             kekezu::admin_system_log($user_info['username'] . date('Y-m-d H:i:s', time()) . $_lang['login_system']);
             $kekezu->echojson($_lang['login_success'], "1");
             die;
         }
     }
 }