1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

Comment and other fixes.

This commit is contained in:
CaMer0n
2012-06-18 09:06:20 +00:00
parent d176cf2f69
commit da7021850b
9 changed files with 36 additions and 22 deletions

View File

@@ -53,6 +53,8 @@ else
require_once (e_HANDLER.'js_helper.php');
e_jshelper::sendAjaxError(403, ADLAN_86, ADLAN_87, true);
}
$sec_img = e107::getSecureImg();
$use_imagecode = ($pref['logcode'] && extension_loaded("gd"));
@@ -62,7 +64,7 @@ else
if ($use_imagecode)
{
if (e107::getSecureImg()->invalidCode($_POST['rand_num'], $_POST['code_verify']))
if ($sec_img->invalidCode($_POST['rand_num'], $_POST['code_verify']))
{
e107::getRedirect()->redirect('admin.php?failed');
exit;
@@ -254,8 +256,8 @@ class auth
$text .= "
<div class='field'>
<label for='code_verify'>".ADLAN_152."</label>"
.e107::getSecureImg()->renderImage().
e107::getSecureImg()->renderInput()."
.$sec_img->renderImage().
$sec_img->renderInput()."
</div>";
}