1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +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) if (ADMIN)
{ {
@@ -787,6 +787,11 @@ class admin_shortcodes
include(e_ADMIN.'ver.php'); include(e_ADMIN.'ver.php');
} }
if($parm == "version")
{
return $e107info['e107_version'];
}
$obj = e107::getDateConvert(); $obj = e107::getDateConvert();
$install_date = $obj->convert_date($pref['install_date'], 'long'); $install_date = $obj->convert_date($pref['install_date'], 'long');

View File

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