mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:49:10 +01:00
update
This commit is contained in:
parent
cb2503a55b
commit
e72d00ace1
30
login.php
30
login.php
@ -15,9 +15,10 @@
|
||||
$phpgw_info = array();
|
||||
$GLOBALS['phpgw_info']['flags'] = array
|
||||
(
|
||||
'login' => True,
|
||||
'currentapp' => 'login',
|
||||
'noheader' => True
|
||||
'login' => True,
|
||||
'currentapp' => 'login',
|
||||
'noheader' => True,
|
||||
'nodisplay' => True
|
||||
);
|
||||
|
||||
if(file_exists('./header.inc.php'))
|
||||
@ -211,17 +212,27 @@
|
||||
|
||||
if ($GLOBALS['phpgw_info']['server']['show_domain_selectbox'])
|
||||
{
|
||||
$data['login_standard']['domain_select'] = True;
|
||||
reset($phpgw_domain);
|
||||
unset($domain_select); // For security ... just in case
|
||||
while ($domain = each($phpgw_domain))
|
||||
{
|
||||
$domain_select .= '<option value="' . $domain[0] . '"';
|
||||
if ($domain[0] == $last_domain)
|
||||
{
|
||||
$domain_select .= ' selected';
|
||||
$select = 'selected';
|
||||
}
|
||||
|
||||
$data['login_standard']['domain_select'] = array
|
||||
(
|
||||
'domain' => $domain[0],
|
||||
'selected' => $selected
|
||||
);
|
||||
}
|
||||
|
||||
for ($i=0;$i<count($data['login_standard']['domain_select']);$i++)
|
||||
{
|
||||
if ($data['login_standard']['domain_select'][$i]['selected'] != 'selected')
|
||||
{
|
||||
unset($data['login_standard']['domain_select'][$i]['selected']);
|
||||
}
|
||||
$domain_select .= '>' . $domain[0] . '</option>';
|
||||
}
|
||||
}
|
||||
|
||||
@ -242,10 +253,13 @@
|
||||
/*$GLOBALS['phpgw']->template->set_var('phpgw_head_base',$GLOBALS['phpgw_info']['server']['webserver_url'].'/');
|
||||
$GLOBALS['phpgw']->template->set_var('registration_url','registration/');*/
|
||||
|
||||
$data['login_standard']['website_title'] = $GLOBALS['phpgw_info']['server']['site_title'];
|
||||
$data['login_standard']['msgbox'] = $GLOBALS['phpgw']->common->msgbox('',False);
|
||||
$data['login_standard']['login_url'] = 'login.php' . $extra_vars;
|
||||
$data['login_standard']['cookie'] = show_cookie();
|
||||
$data['login_standard']['lang_username'] = lang('username');
|
||||
$data['login_standard']['lang_powered_by'] = lang('powered by');
|
||||
$data['login_standard']['lang_version'] = lang('version');
|
||||
$data['login_standard']['phpgw_version'] = $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'];
|
||||
$data['login_standard']['lang_password'] = lang('password');
|
||||
$data['login_standard']['lang_login'] = lang('login');
|
||||
|
@ -51,6 +51,14 @@ a:hover
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.login
|
||||
{
|
||||
background-color: #80BBFF;
|
||||
border-width: 1px;
|
||||
border-color: #000000;
|
||||
border-style: ridge;
|
||||
}
|
||||
|
||||
.portal_text
|
||||
{
|
||||
color: #FFFFFF;
|
||||
|
@ -13,10 +13,10 @@
|
||||
<base target="_self"/>
|
||||
<link rel="icon" href="favicon.ico" type="image/x-ico"/>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<title><xsl:value-of select="phpgw_website_title"/></title>
|
||||
<title><xsl:value-of select="phpgw_head_website_title"/></title>
|
||||
<link rel="stylesheet" type="text/css" href="{$login_theme}"/>
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF">
|
||||
<body>
|
||||
<xsl:apply-templates select="login_standard"/>
|
||||
</body>
|
||||
</html>
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
<xsl:template match="login_standard">
|
||||
<xsl:variable name="login_layout"><xsl:value-of select="login_layout"/></xsl:variable>
|
||||
<table cellpadding="0" cellspacing="0" width="40%" align="center">
|
||||
<table cellpadding="0" cellspacing="0" width="100%" height="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="http://www.phpgroupware.org" target="_blank" onMouseout="window.status='';return true;">
|
||||
@ -37,70 +37,95 @@
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="0" cellspacing="0" width="40%" align="center" class="th">
|
||||
<xsl:choose>
|
||||
<xsl:when test="loginscreen">
|
||||
<xsl:variable name="login_url"><xsl:value-of select="login_url"/></xsl:variable>
|
||||
<xsl:variable name="cookie"><xsl:value-of select="cookie"/></xsl:variable>
|
||||
<xsl:variable name="lang_login"><xsl:value-of select="lang_login"/></xsl:variable>
|
||||
<tr>
|
||||
<td align="center"><xsl:value-of select="phpgw_loginscreen_message"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding="2" cellspacing="1">
|
||||
<tr class="th">
|
||||
<td valign="middle"><b>phpGroupWare</b></td>
|
||||
</tr>
|
||||
<tr class="row_off">
|
||||
<td valign="bottom">
|
||||
<form name="login" method="post" action="{$login_url}">
|
||||
<input type="hidden" name="passwd_type" value="text"/>
|
||||
<table align="center" width="100%" cellpadding="2" cellspacing="2">
|
||||
<tr>
|
||||
<td colspan="3" align="center"><xsl:value-of disable-output-escaping="yes" select="msgbox"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><xsl:value-of select="lang_username"/></td>
|
||||
<td><input name="login" value="{$cookie}"/></td>
|
||||
<xsl:choose>
|
||||
<xsl:when test="domain_select">
|
||||
<td><select name="logindomain"><xsl:apply-templates select="select_domain"/></select></td>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<td></td>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><xsl:value-of select="lang_password"/></td>
|
||||
<td><input name="passwd" type="password" onChange="this.form.submit()"/></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="center">
|
||||
<input type="submit" value="{$lang_login}" name="submitit"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" class="th">
|
||||
<xsl:value-of select="phpgw_version"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<tr>
|
||||
<td align="center">Opps! You caught us in the middle of a system upgrade.<br/>Please, check back with us shortly.</td>
|
||||
</tr>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<tr>
|
||||
<td align="center"><xsl:value-of select="phpgw_loginscreen_message"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="middle" align="center">
|
||||
<table cellpadding="0" cellspacing="0" width="40%" class="login">
|
||||
<xsl:choose>
|
||||
<xsl:when test="loginscreen">
|
||||
<xsl:variable name="login_url"><xsl:value-of select="login_url"/></xsl:variable>
|
||||
<xsl:variable name="cookie"><xsl:value-of select="cookie"/></xsl:variable>
|
||||
<xsl:variable name="lang_login"><xsl:value-of select="lang_login"/></xsl:variable>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding="2" cellspacing="1" class="login">
|
||||
<tr>
|
||||
<td align="center"><b><xsl:value-of select="website_title"/></b></td>
|
||||
</tr>
|
||||
<tr class="row_off">
|
||||
<td>
|
||||
<form name="login" method="post" action="{$login_url}">
|
||||
<input type="hidden" name="passwd_type" value="text"/>
|
||||
<table align="center" width="100%" cellpadding="2" cellspacing="2">
|
||||
<tr>
|
||||
<td colspan="3" align="center"><xsl:value-of disable-output-escaping="yes" select="msgbox"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" align="right"><xsl:value-of select="lang_username"/></td>
|
||||
<td width="33%" align="center"><input name="login" value="{$cookie}"/></td>
|
||||
<xsl:choose>
|
||||
<xsl:when test="domain_select">
|
||||
<td><select name="logindomain"><xsl:apply-templates select="domain_select"/></select></td>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<td></td>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><xsl:value-of select="lang_password"/></td>
|
||||
<td align="center"><input name="passwd" type="password" onChange="this.form.submit()"/></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="center">
|
||||
<input type="submit" value="{$lang_login}" name="submitit"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<xsl:value-of select="lang_powered_by"/>
|
||||
<a href="http://www.phpgroupware.org" target="blank" onMouseout="window.status='';return true;">
|
||||
<xsl:attribute name="onMouseover">
|
||||
<xsl:text>window.status='</xsl:text>
|
||||
<xsl:value-of select="lang_phpgw_statustext"/>
|
||||
<xsl:text>'; return true;</xsl:text>
|
||||
</xsl:attribute>
|
||||
<xsl:text> phpGroupWare </xsl:text>
|
||||
</a>
|
||||
<xsl:text> </xsl:text><xsl:value-of select="lang_version"/><xsl:text> </xsl:text><xsl:value-of select="phpgw_version"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<tr>
|
||||
<td align="center">Opps! You caught us in the middle of a system upgrade.<br/>Please, check back with us shortly.</td>
|
||||
</tr>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="domain_select">
|
||||
<xsl:variable name="domain"><xsl:value-of select="domain"/></xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="selected">
|
||||
<option value="{$domain}" selected="selected"><xsl:value-of select="domain"/></option>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<option value="{$domain}"><xsl:value-of select="domain"/></option>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
Loading…
Reference in New Issue
Block a user