1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

siteinfo shortcode to match 0.7. fpw_template only asks for email when it is used as the login.

This commit is contained in:
CaMer0n
2011-05-01 08:55:15 +00:00
parent e69432758b
commit f4943b4f73
2 changed files with 20 additions and 9 deletions

View File

@@ -776,7 +776,7 @@ class admin_shortcodes
}
}
function sc_admin_siteinfo()
function sc_admin_siteinfo($parm='')
{
if (ADMIN)
{
@@ -786,6 +786,11 @@ class admin_shortcodes
{
include(e_ADMIN.'ver.php');
}
if($parm == "version")
{
return $e107info['e107_version'];
}
$obj = e107::getDateConvert();
$install_date = $obj->convert_date($pref['install_date'], 'long');

View File

@@ -15,15 +15,21 @@ if(!isset($FPW_TABLE))
<tr>
<td class='fcaption' colspan='2'>".LAN_05."</td>
</tr>
<tr>
<td class='forumheader3' style='width:70%'>".LAN_FPW1.":</td>
<td class='forumheader3' style='width:30%;text-align:center'>
<input class='tbox' type='text' name='username' size='40' value='' maxlength='100' />
</td>
</tr>
</tr>";
if($pref['allowEmailLogin']==0)
{
$FPW_TABLE .= "
<tr>
<td class='forumheader3' style='width:70%'>".LAN_FPW1.":</td>
<td class='forumheader3' style='width:30%;text-align:center'>
<input class='tbox' type='text' name='username' size='40' value='' maxlength='100' />
</td>
</tr>";
}
$FPW_TABLE .="
<tr>
<td class='forumheader3' style='width:70%'>".LAN_112.":</td>
<td class='forumheader3' style='width:30%; text-align:center'>