function check_code($reg_code)
 {
     global $_lang;
     $img = new Secode_class();
     $res_code = $img->check($reg_code, 1);
     if (!$res_code) {
         $this->show_msg($_lang['reg_code_is_error'], 6);
     } else {
         return true;
     }
 }
 function check_code($login_code)
 {
     global $_lang;
     if ($login_code) {
         $img = new Secode_class();
         $login_code = $img->check($login_code, 1);
         if (!$login_code) {
             $this->add_login_time();
             $this->show_msg($_lang['verification_code_input_error'], 7);
         } else {
             return true;
         }
     } else {
         return true;
     }
 }
Beispiel #3
0
 static function check_secode($secode)
 {
     global $_lang;
     $img = new Secode_class();
     $res_code = $img->check($secode, 1);
     if (!$res_code) {
         return $_lang['verification_code_input_error'];
     } else {
         return true;
     }
 }