Skip to content

Commit

Permalink
Suppression références à index.php inutiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed Jan 16, 2020
1 parent 711975b commit b253b2a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
if(isset($_['last-event-id']))$whereClause['id'] = '<= ' . $_['last-event-id'];
$eventManager->change(array('unread'=>'0'),$whereClause);
if(!Functions::isAjaxCall()){
header('location: ./index.php');
header('location: ./');
}
break;

Expand All @@ -94,7 +94,7 @@
}

if (!Functions::isAjaxCall()){
header('location: ./index.php');
header('location: ./');
}

break;
Expand Down Expand Up @@ -466,11 +466,11 @@
$user = $userManager->exist($_['login'],$_['password'],$salt,@$_['otp']);
if($user==false){
error_log("Leed: wrong login for '".$_['login']."'");
header('location: ./index.php?action=wrongLogin');
header('location: ./?action=wrongLogin');
}else{
$_SESSION['currentUser'] = serialize($user);
if (isset($_['rememberMe'])) $user->setStayConnected();
header('location: ./index.php');
header('location: ./');
}
exit();
}
Expand Down Expand Up @@ -498,7 +498,7 @@
$_SESSION = array();
session_unset();
session_destroy();
header('location: ./index.php');
header('location: ./');
break;

case 'displayOnlyUnreadFeedFolder':
Expand Down
2 changes: 1 addition & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<div class="global-wrapper">
<div id="header-container">
<header class="wrapper clearfix">
<h1 class="logo" id="title"><a href="./index.php">L<i>eed</i></a></h1>
<h1 class="logo" id="title"><a href="./">L<i>eed</i></a></h1>
<nav>
</nav>
</header>
Expand Down
6 changes: 3 additions & 3 deletions templates/marigolds/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<a id="pageTop" class="hidden">{$action}</a>
<div id="header-container">
<header class="wrapper clearfix">
<h1 class="logo" id="title"><a href="./index.php">L<i>eed</i></a><div class="versionBloc">{#LEED_VERSION_NUMBER#}&nbsp;{#LEED_VERSION_NAME#}</div></h1>
<h1 class="logo" id="title"><a href="./">L<i>eed</i></a><div class="versionBloc">{#LEED_VERSION_NUMBER#}&nbsp;{#LEED_VERSION_NAME#}</div></h1>
<div class="loginBloc">
{if="!$myUser"}
{if="@$wrongLogin"}
Expand Down Expand Up @@ -53,8 +53,8 @@ <h1 class="logo" id="title"><a href="./index.php">L<i>eed</i></a><div class="ver

<nav>
<ul>
<li><a href="index.php" title="{function="_t('HOME')"}"><i class="icon-home"></i></a></li>
<li><a href="index.php?action=favorites" title="{function="_t('FAVORITES')"}"><i class="icon-star-empty"></i></a></li>
<li><a href="./" title="{function="_t('HOME')"}"><i class="icon-home"></i></a></li>
<li><a href="./?action=favorites" title="{function="_t('FAVORITES')"}"><i class="icon-star-empty"></i></a></li>
<li><a href="settings.php" title="{function="_t('MANAGE')"}"><i class="icon-cog"></i></a></li>
<li><a class="synchronyzeButton" title="{function="_t('LAUNCH_SYNCHRONISATION')"}" onclick="synchronize('{if="$myUser"}{$synchronisationCode}{/if}');"><i class="icon-arrows-cw"></i></a></li>
{function="Plugin::callHook("navigate_post_link", array(&$myUser))"}
Expand Down
12 changes: 6 additions & 6 deletions templates/marigolds/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h3 class="left">{function="_t('FEED')"}</h3> <button style="margin: 10px 0px 0p
<li>
<h1 class="folder{if="$unreadEventsForFolder==0"} hidefeed{/if}"{if="$displayOnlyUnreadFeedFolder=='true' && $unreadEventsForFolder==0"} style="display:none;"{/if}>
{function="Plugin::callHook("menu_pre_folder_link", array(&$value))"}
<a title="{function="_t('READ_FOLDER_ITEMS')"}" class="folderLink" href="index.php?action=selectedFolder&amp;folder={$value->getId()}" data-id="{$value->getId()}">{$value->getName()}</a> <a class="readFolder" title="{function="_t('FOLD_UNFOLD_FOLDER')"}" onclick="toggleFolder(this,{$value->getId()});" >{if="!$value->getIsopen()"}<i class="icon-folder-empty"></i>{else}<i class="icon-folder-open-empty"></i>{/if}</a> {if="$unreadEventsForFolder!=0"}<a class="unreadForFolder" title="{function="_t('MARK_AS_READ_FOLDER_ITEMS',array($unreadEventsForFolder))"}" data-mark-all-read="folder">{$unreadEventsForFolder} {function="_t('UNREAD')"}</a>{/if}
<a title="{function="_t('READ_FOLDER_ITEMS')"}" class="folderLink" href="./?action=selectedFolder&amp;folder={$value->getId()}" data-id="{$value->getId()}">{$value->getName()}</a> <a class="readFolder" title="{function="_t('FOLD_UNFOLD_FOLDER')"}" onclick="toggleFolder(this,{$value->getId()});" >{if="!$value->getIsopen()"}<i class="icon-folder-empty"></i>{else}<i class="icon-folder-open-empty"></i>{/if}</a> {if="$unreadEventsForFolder!=0"}<a class="unreadForFolder" title="{function="_t('MARK_AS_READ_FOLDER_ITEMS',array($unreadEventsForFolder))"}" data-mark-all-read="folder">{$unreadEventsForFolder} {function="_t('UNREAD')"}</a>{/if}
{function="Plugin::callHook("menu_post_folder_link", array(&$value))"}
</h1>
<!-- FLUX DU DOSSIER -->
Expand All @@ -75,7 +75,7 @@ <h1 class="folder{if="$unreadEventsForFolder==0"} hidefeed{/if}"{if="$displayOnl
{else}
<li class="errorSync" title="{function="_t('SYNCHRONISATION_ERROR')"}">
{/if}
{function="Plugin::callHook("menu_pre_feed_link", array(&$value))"} <a href="index.php?action=selectedFeed&amp;feed={$value2['id']}" class="feedLink" data-id="{$value2['id']}" title="{$value2['url']}">{function="Functions::truncate($value2['name'],37)"} </a>
{function="Plugin::callHook("menu_pre_feed_link", array(&$value))"} <a href="./?action=selectedFeed&amp;feed={$value2['id']}" class="feedLink" data-id="{$value2['id']}" title="{$value2['url']}">{function="Functions::truncate($value2['name'],37)"} </a>
<button class="right unreadForFeed" data-mark-all-read="feed">
<span title="{function="_t('MARK_AS_READ')"}">{$unread[$value2['id']]}</span>
</button>
Expand All @@ -88,7 +88,7 @@ <h1 class="folder{if="$unreadEventsForFolder==0"} hidefeed{/if}"{if="$displayOnl
{else}
<li class="hidefeed errorSync" style="display:none;" title="{function="_t('SYNCHRONISATION_ERROR')"}">
{/if}
{function="Plugin::callHook("menu_pre_feed_link", array(&$value))"} <a href="index.php?action=selectedFeed&amp;feed={$value2['id']}" class="feedLink" data-id="{$value2['id']}" title="{$value2['url']}">{function="Functions::truncate($value2['name'],37)"} </a>
{function="Plugin::callHook("menu_pre_feed_link", array(&$value))"} <a href="./?action=selectedFeed&amp;feed={$value2['id']}" class="feedLink" data-id="{$value2['id']}" title="{$value2['url']}">{function="Functions::truncate($value2['name'],37)"} </a>
{if="isset($unread[$value2['id']])"}
<button class="right unreadForFeed" data-mark-all-read="feed">
<span title="{function="_t('MARK_AS_READ')"}">{$unread[$value2['id']]}</span>
Expand All @@ -112,7 +112,7 @@ <h1 class="folder{if="$unreadEventsForFolder==0"} hidefeed{/if}"{if="$displayOnl
<li class="hidefeed errorSync" title="{function="_t('SYNCHRONISATION_ERROR')"}">
{/if}
{/if}
{function="Plugin::callHook("menu_pre_feed_link", array(&$value))"} <a href="index.php?action=selectedFeed&amp;feed={$value2['id']}" class="feedLink" data-id="{$value2['id']}" title="{$value2['url']}">{function="Functions::truncate($value2['name'],37)"} </a>
{function="Plugin::callHook("menu_pre_feed_link", array(&$value))"} <a href="./?action=selectedFeed&amp;feed={$value2['id']}" class="feedLink" data-id="{$value2['id']}" title="{$value2['url']}">{function="Functions::truncate($value2['name'],37)"} </a>
{if="isset($unread[$value2['id']])"}
<button class="right unreadForFeed" data-mark-all-read="feed">
<span title="{function="_t('MARK_AS_READ')"}">{$unread[$value2['id']]}</span>
Expand Down Expand Up @@ -153,8 +153,8 @@ <h1 class="articleSection"><a target="_blank" rel="noopener noreferrer" href="{$

{$currentFeed->getDescription()} <div class="clear"></div>
{function="_t('SEE_THE')"}
<a href="index.php?action=selectedFeed&amp;feed={$_['feed']}&amp;page={$page}&amp;order=unread">{function="ucfirst(_t('UNREAD'))"}</a> |
<a href="index.php?action=selectedFeed&amp;feed={$_['feed']}&amp;page={$page}&amp;order=older">{function="_t('OLDER')"}</a> {function="_t('IN_FIRST')"}
<a href="./?action=selectedFeed&amp;feed={$_['feed']}&amp;page={$page}&amp;order=unread">{function="ucfirst(_t('UNREAD'))"}</a> |
<a href="./?action=selectedFeed&amp;feed={$_['feed']}&amp;page={$page}&amp;order=older">{function="_t('OLDER')"}</a> {function="_t('IN_FIRST')"}
{/if}

{if="$action=='selectedFolder'"}
Expand Down
2 changes: 1 addition & 1 deletion templates/marigolds/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1 class="folder left" ><span>{$value->getName()}</span> ({function="count($fee
{$feedName=Functions::truncate($value2->getName(),40)}
<li class="feedListItem{if="$value->getLastSyncInError()==1"} errorSync{/if}">
<span class="feedTitle js-feedTitle"{if="$value->getLastSyncInError()==1"} title="{function="_t('SYNCHRONISATION_ERROR')"}"{/if}>
<a{if="$value->getLastSyncInError()==1"} class="inError"{/if} href="index.php?action=selectedFeed&feed={$value2->getId();}" data-feed-id="{$value2->getId()}">{$feedName}</a><a href="{$value2->getUrl()}" class="underlink">{$value2->getUrl()}</a>
<a{if="$value->getLastSyncInError()==1"} class="inError"{/if} href="?action=selectedFeed&feed={$value2->getId();}" data-feed-id="{$value2->getId()}">{$feedName}</a><a href="{$value2->getUrl()}" class="underlink">{$value2->getUrl()}</a>
</span>
<div class="feedAction">
<select class="feedFolder" onchange="changeFeedFolder(this,{$value2->getId()});">
Expand Down

0 comments on commit b253b2a

Please sign in to comment.