mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
update
This commit is contained in:
parent
cb2503a55b
commit
e72d00ace1
26
login.php
26
login.php
@ -17,7 +17,8 @@
|
|||||||
(
|
(
|
||||||
'login' => True,
|
'login' => True,
|
||||||
'currentapp' => 'login',
|
'currentapp' => 'login',
|
||||||
'noheader' => True
|
'noheader' => True,
|
||||||
|
'nodisplay' => True
|
||||||
);
|
);
|
||||||
|
|
||||||
if(file_exists('./header.inc.php'))
|
if(file_exists('./header.inc.php'))
|
||||||
@ -211,17 +212,27 @@
|
|||||||
|
|
||||||
if ($GLOBALS['phpgw_info']['server']['show_domain_selectbox'])
|
if ($GLOBALS['phpgw_info']['server']['show_domain_selectbox'])
|
||||||
{
|
{
|
||||||
$data['login_standard']['domain_select'] = True;
|
|
||||||
reset($phpgw_domain);
|
reset($phpgw_domain);
|
||||||
unset($domain_select); // For security ... just in case
|
|
||||||
while ($domain = each($phpgw_domain))
|
while ($domain = each($phpgw_domain))
|
||||||
{
|
{
|
||||||
$domain_select .= '<option value="' . $domain[0] . '"';
|
|
||||||
if ($domain[0] == $last_domain)
|
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('phpgw_head_base',$GLOBALS['phpgw_info']['server']['webserver_url'].'/');
|
||||||
$GLOBALS['phpgw']->template->set_var('registration_url','registration/');*/
|
$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']['msgbox'] = $GLOBALS['phpgw']->common->msgbox('',False);
|
||||||
$data['login_standard']['login_url'] = 'login.php' . $extra_vars;
|
$data['login_standard']['login_url'] = 'login.php' . $extra_vars;
|
||||||
$data['login_standard']['cookie'] = show_cookie();
|
$data['login_standard']['cookie'] = show_cookie();
|
||||||
$data['login_standard']['lang_username'] = lang('username');
|
$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']['phpgw_version'] = $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'];
|
||||||
$data['login_standard']['lang_password'] = lang('password');
|
$data['login_standard']['lang_password'] = lang('password');
|
||||||
$data['login_standard']['lang_login'] = lang('login');
|
$data['login_standard']['lang_login'] = lang('login');
|
||||||
|
@ -51,6 +51,14 @@ a:hover
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login
|
||||||
|
{
|
||||||
|
background-color: #80BBFF;
|
||||||
|
border-width: 1px;
|
||||||
|
border-color: #000000;
|
||||||
|
border-style: ridge;
|
||||||
|
}
|
||||||
|
|
||||||
.portal_text
|
.portal_text
|
||||||
{
|
{
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
|
@ -13,10 +13,10 @@
|
|||||||
<base target="_self"/>
|
<base target="_self"/>
|
||||||
<link rel="icon" href="favicon.ico" type="image/x-ico"/>
|
<link rel="icon" href="favicon.ico" type="image/x-ico"/>
|
||||||
<link rel="shortcut icon" href="favicon.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}"/>
|
<link rel="stylesheet" type="text/css" href="{$login_theme}"/>
|
||||||
</head>
|
</head>
|
||||||
<body bgcolor="#FFFFFF">
|
<body>
|
||||||
<xsl:apply-templates select="login_standard"/>
|
<xsl:apply-templates select="login_standard"/>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
<xsl:template match="login_standard">
|
<xsl:template match="login_standard">
|
||||||
<xsl:variable name="login_layout"><xsl:value-of select="login_layout"/></xsl:variable>
|
<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>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="http://www.phpgroupware.org" target="_blank" onMouseout="window.status='';return true;">
|
<a href="http://www.phpgroupware.org" target="_blank" onMouseout="window.status='';return true;">
|
||||||
@ -37,24 +37,25 @@
|
|||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
<tr>
|
||||||
<table cellpadding="0" cellspacing="0" width="40%" align="center" class="th">
|
<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:choose>
|
||||||
<xsl:when test="loginscreen">
|
<xsl:when test="loginscreen">
|
||||||
<xsl:variable name="login_url"><xsl:value-of select="login_url"/></xsl:variable>
|
<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="cookie"><xsl:value-of select="cookie"/></xsl:variable>
|
||||||
<xsl:variable name="lang_login"><xsl:value-of select="lang_login"/></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>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<table width="100%" cellpadding="2" cellspacing="1">
|
<table width="100%" cellpadding="2" cellspacing="1" class="login">
|
||||||
<tr class="th">
|
<tr>
|
||||||
<td valign="middle"><b>phpGroupWare</b></td>
|
<td align="center"><b><xsl:value-of select="website_title"/></b></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="row_off">
|
<tr class="row_off">
|
||||||
<td valign="bottom">
|
<td>
|
||||||
<form name="login" method="post" action="{$login_url}">
|
<form name="login" method="post" action="{$login_url}">
|
||||||
<input type="hidden" name="passwd_type" value="text"/>
|
<input type="hidden" name="passwd_type" value="text"/>
|
||||||
<table align="center" width="100%" cellpadding="2" cellspacing="2">
|
<table align="center" width="100%" cellpadding="2" cellspacing="2">
|
||||||
@ -62,11 +63,11 @@
|
|||||||
<td colspan="3" align="center"><xsl:value-of disable-output-escaping="yes" select="msgbox"/></td>
|
<td colspan="3" align="center"><xsl:value-of disable-output-escaping="yes" select="msgbox"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><xsl:value-of select="lang_username"/></td>
|
<td width="33%" align="right"><xsl:value-of select="lang_username"/></td>
|
||||||
<td><input name="login" value="{$cookie}"/></td>
|
<td width="33%" align="center"><input name="login" value="{$cookie}"/></td>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="domain_select">
|
<xsl:when test="domain_select">
|
||||||
<td><select name="logindomain"><xsl:apply-templates select="select_domain"/></select></td>
|
<td><select name="logindomain"><xsl:apply-templates select="domain_select"/></select></td>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<td></td>
|
<td></td>
|
||||||
@ -75,7 +76,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><xsl:value-of select="lang_password"/></td>
|
<td align="right"><xsl:value-of select="lang_password"/></td>
|
||||||
<td><input name="passwd" type="password" onChange="this.form.submit()"/></td>
|
<td align="center"><input name="passwd" type="password" onChange="this.form.submit()"/></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -88,8 +89,17 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right" class="th">
|
<td align="center">
|
||||||
<xsl:value-of select="phpgw_version"/>
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -103,4 +113,19 @@
|
|||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</table>
|
</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>
|
</xsl:template>
|
||||||
|
Loading…
Reference in New Issue
Block a user