diff --git a/e107_handlers/secure_img_handler.php b/e107_handlers/secure_img_handler.php index 5b610a067..523af4f21 100644 --- a/e107_handlers/secure_img_handler.php +++ b/e107_handlers/secure_img_handler.php @@ -109,7 +109,7 @@ class secure_image * @param $checkstr * @return bool|mixed|string */ - function invalidCode($rec_num, $checkstr) + function invalidCode($rec_num=null, $checkstr=null) { if ($user_func = e107::getOverride()->check($this,'invalidCode')) { diff --git a/e107_plugins/login_menu/login_menu_shortcodes.php b/e107_plugins/login_menu/login_menu_shortcodes.php index b8c6ccc1d..5063061ca 100755 --- a/e107_plugins/login_menu/login_menu_shortcodes.php +++ b/e107_plugins/login_menu/login_menu_shortcodes.php @@ -110,14 +110,21 @@ e107::getLanguage()->bcDefs($bcDefs); } + /** + * @deprecated use {LM_IMAGECODE_NUMBER}, {LM_IMAGECODE_BOX} instead + * @param string $parm + * @return string + */ function sc_lm_imagecode($parm='') { //DEPRECATED - use LM_IMAGECODE_NUMBER, LM_IMAGECODE_BOX instead if($this->use_imagecode) { - return ' + return $this->sc_lm_imagecode_number()."
".$this->sc_lm_imagecode_box(); + /*return ' '.$this->sec->r_image().'

'; + */ } return ''; } @@ -127,20 +134,23 @@ e107::getLanguage()->bcDefs($bcDefs); { if($this->use_imagecode) { - return ' - '.$this->sec->r_image(); + return e107::getSecureImg()->renderImage(); + /* return ' + '.$this->sec->r_image();*/ } + return ''; } function sc_lm_imagecode_box($parm='') { - $placeholder = LAN_ENTER_CODE; - if($this->use_imagecode) { - return ''; + return e107::getSecureImg()->renderInput(); + // $placeholder = LAN_ENTER_CODE; + // return ''; } + return ''; }