Remove references to old index.php page

This commit is contained in:
Benjamin Renard 2020-05-07 09:56:28 +02:00
parent 4bd18a14e4
commit 91ea37f841
5 changed files with 12 additions and 12 deletions

View file

@ -531,7 +531,7 @@ class LSsession {
LSauth :: afterLogout();
// Redirect user on home page
LSurl :: redirect('index.php');
LSurl :: redirect();
return;
}
@ -1185,7 +1185,7 @@ class LSsession {
public static function displayLoginForm() {
LStemplate :: assign('pagetitle',_('Connection'));
if (isset($_GET['LSsession_logout'])) {
LStemplate :: assign('loginform_action','index.php');
LStemplate :: assign('loginform_action', '');
}
else {
LStemplate :: assign('loginform_action',$_SERVER['REQUEST_URI']);
@ -1226,7 +1226,7 @@ class LSsession {
*/
public static function displayRecoverPasswordForm($recoveryPasswordInfos) {
LStemplate :: assign('pagetitle',_('Recovery of your credentials'));
LStemplate :: assign('recoverpasswordform_action','index.php?LSsession_recoverPassword');
LStemplate :: assign('recoverpasswordform_action','?LSsession_recoverPassword');
if (count(LSconfig :: get('ldap_servers'))==1) {
LStemplate :: assign('recoverpasswordform_ldapserver_style','style="display: none"');
@ -2466,7 +2466,7 @@ class LSsession {
}
}
if ($force)
LSurl :: redirect('index.php');
LSurl :: redirect();
}
/**

View file

@ -112,7 +112,7 @@ var LSdefault = new Class({
},
onSelectLSlangImgClick: function(img) {
window.location='index.php?lang='+img.alt;
window.location='?lang='+img.alt;
},
onWantMoo: function(event) {

View file

@ -40,7 +40,7 @@
</dl>
</form>
<span>{tr msg="Language"} : <img id='LSlang' src='{img name=$LSlang}' alt='{$LSlang|escape:"htmlall"}' title='{$LSlang|escape:"htmlall"}'/></span>
<a href='index.php?LSsession_recoverPassword' class='LSsession_recoverPassword LSsession_recoverPassword_hidden'>{$loginform_label_recoverPassword|escape:"htmlall"}</a>
<a href='?LSsession_recoverPassword' class='LSsession_recoverPassword LSsession_recoverPassword_hidden'>{$loginform_label_recoverPassword|escape:"htmlall"}</a>
</div>
{include file='ls:LSsession_js.tpl'}
</body>

View file

@ -31,7 +31,7 @@
<p id='recoverpassword_msg'>{$recoverpassword_msg|escape:"htmlall"}</p>
<span>{tr msg="Language"} : <img id='LSlang' src='{img name=$LSlang}' alt='{$LSlang|escape:"htmlall"}' title='{$LSlang|escape:"htmlall"}'/></span>
<a href='index.php' id='recoverpassword_back'>{$recoverpasswordform_label_back|escape:"htmlall"}</a>
<a href='' id='recoverpassword_back'>{$recoverpasswordform_label_back|escape:"htmlall"}</a>
</div>
{include file='ls:LSsession_js.tpl'}
</body>

View file

@ -17,12 +17,12 @@
<table id='main'>
<tr>
<td rowspan=2 id='left'>
<a href='index.php'><img src='{img name='logo'}' alt='Logo' id='logo'/></a>
<a href=''><img src='{img name='logo'}' alt='Logo' id='logo'/></a>
{if isset($LSsession_subDn) && $LSsession_subDn!=""}
<form action="index.php" method='post' id='LSsession_topDn_form'>
<form action="" method='post' id='LSsession_topDn_form'>
<label>{$label_level|escape:"htmlall"}
<a href="index.php?LSsession_refresh"><img src='{img name='refresh'}' alt='{$_refresh|escape:"htmlall"}' title='{$_refresh|escape:"htmlall"}' /></a>
<a href="?LSsession_refresh"><img src='{img name='refresh'}' alt='{$_refresh|escape:"htmlall"}' title='{$_refresh|escape:"htmlall"}' /></a>
<select name='LSsession_topDn' id='LSsession_topDn'>
{html_options values=$LSsession_subDn_indexes output=$LSsession_subDn_names selected=$LSsession_subDn}
</select>
@ -60,8 +60,8 @@
<input type='submit' value='->'/>
</form>
{if $displaySelfAccess}{$connected_as|escape:"htmlall"} <span id='user_name'>{$LSsession_username|escape:"htmlall"}</span>{/if}
<a href='index.php?LSsession_refresh=1'><img src='{img name='refresh'}' alt="{tr msg="Refresh my access rights"}" title="{tr msg="Refresh my access rights"}" /></a>
{if $displayLogoutBtn} <a href='index.php?LSsession_logout'><img src='{img name='logout'}' alt='Logout' title='Logout' /></a>{/if}
<a href='?LSsession_refresh=1'><img src='{img name='refresh'}' alt="{tr msg="Refresh my access rights"}" title="{tr msg="Refresh my access rights"}" /></a>
{if $displayLogoutBtn} <a href='?LSsession_logout'><img src='{img name='logout'}' alt='Logout' title='Logout' /></a>{/if}
</td>
</tr>
<tr>