1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

CATPCHA can now be enabled on the admin login and user-login pages separately.

This commit is contained in:
Cameron
2013-03-21 23:06:46 -07:00
parent cee23f042e
commit 70ff50b0a0
4 changed files with 43 additions and 20 deletions

View File

@@ -79,7 +79,7 @@ else
$sec_img = e107::getSecureImg();
$use_imagecode = ($pref['logcode'] && extension_loaded("gd"));
$use_imagecode = (vartrue($pref['admincode']) && extension_loaded("gd"));
if ($_POST['authsubmit'])
{

View File

@@ -1387,22 +1387,39 @@ $text .= "
<div class='field-help'>".PRFLAN_61."</div>
</td>
</tr>
<tr>
<td>".PRFLAN_76.": </td>
<td>
<!-- Secure Image -->
";
if($hasGD)
{
$text .= $frm->radio_switch('signcode', $pref['signcode']);
}
else
{
$text .= PRFLAN_133;
}
$text .= "
</td>
</tr>
$secureImage = array('signcode'=>PRFLAN_76, 'logcode'=>PRFLAN_81, "fpwcode"=>PRFLAN_138,'admincode'=>PRFLAN_222);
foreach($secureImage as $key=>$label)
{
$label = str_replace($srch,$repl,$label);
$text .= "<tr><td>".$label."</td><td>";
if($hasGD)
{
$text .= $frm->radio_switch($key, $pref[$key]);
}
else
{
$text .= PRFLAN_133;
}
$text .= "
<div class='field-help'>".PRFLAN_223."</div>
</td></tr>\n";
}
/*
$text .= "
<tr>
<td>".PRFLAN_81.": </td>
<td>
@@ -1434,8 +1451,11 @@ else
$text .= "
</td>
</tr>
<tr>
</tr>";
*
*/
$text .= " <tr>
<td>".PRFLAN_92.": </td>
<td>
".$frm->radio_switch('user_reg_secureveri', $pref['user_reg_secureveri'])."