1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-02 22:45:02 +03:00

Убран редирект при выходе

* При выходе перекидывает сразу на главную
This commit is contained in:
Denis Shakhov 2013-06-10 15:47:22 +07:00
parent be2be3a429
commit 2ea3ecb0a2
6 changed files with 8 additions and 34 deletions

View file

@ -149,7 +149,7 @@ class ActionLogin extends Action {
protected function EventExit() {
$this->Security_ValidateSendForm();
$this->User_Logout();
$this->Viewer_Assign('bRefreshToHome',true);
Router::Location(Config::Get('path.root.web').'/');
}
/**
* Ajax запрос на восстановление пароля

View file

@ -278,7 +278,6 @@ class ActionRegistration extends Action {
*/
if ($this->User_Update($oUser)) {
$this->DropInviteRegister();
$this->Viewer_Assign('bRefreshToHome',true);
$this->User_Authorization($oUser,false);
return;
} else {

View file

@ -1,9 +0,0 @@
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$bNoSidebar = true}
{/block}
{block name='layout_content'}
<h2 class="page-header">{$aLang.user_exit_notice}</h2>
{/block}

View file

@ -14,11 +14,11 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{block name='layout_title'}{$sHtmlTitle}{/block}</title>
<meta name="description" content="{block name='layout_description'}{$sHtmlDescription}{/block}">
<meta name="keywords" content="{block name='layout_keywords'}{$sHtmlKeywords}{/block}">
<title>{block name='layout_title'}{$sHtmlTitle}{/block}</title>
{**
* Стили
* CSS файлы подключаются в конфиге шаблона (ваш_шаблон/settings/config.php)
@ -39,10 +39,6 @@
<link rel="canonical" href="{$sHtmlCanonical}" />
{/if}
{if $bRefreshToHome}
<meta HTTP-EQUIV="Refresh" CONTENT="3; URL={cfg name='path.root.web'}/">
{/if}
<script>
var DIR_WEB_ROOT = '{cfg name="path.root.web"}',
@ -183,7 +179,7 @@
{* Сайдбар *}
{if ! $bNoSidebar}
<aside id="sidebar">
<aside id="sidebar" role="complementary">
{include file='blocks.tpl' group='right'}
</aside>
{/if}

View file

@ -1,9 +0,0 @@
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$bNoSidebar = true}
{/block}
{block name='layout_content'}
<h2 class="page-header">{$aLang.user_exit_notice}</h2>
{/block}

View file

@ -14,11 +14,12 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{block name='layout_title'}{$sHtmlTitle}{/block}</title>
<meta name="description" content="{block name='layout_description'}{$sHtmlDescription}{/block}">
<meta name="keywords" content="{block name='layout_keywords'}{$sHtmlKeywords}{/block}">
<title>{block name='layout_title'}{$sHtmlTitle}{/block}</title>
{**
* Стили
* CSS файлы подключаются в конфиге шаблона (ваш_шаблон/settings/config.php)
@ -40,10 +41,6 @@
<link rel="canonical" href="{$sHtmlCanonical}" />
{/if}
{if $bRefreshToHome}
<meta HTTP-EQUIV="Refresh" CONTENT="3; URL={cfg name='path.root.web'}/">
{/if}
<script>
var DIR_WEB_ROOT = '{cfg name="path.root.web"}',
@ -192,7 +189,7 @@
{* Сайдбар *}
{if ! $bNoSidebar}
<aside id="sidebar">
<aside id="sidebar" role="complementary">
{include file='blocks.tpl' group='right'}
</aside>
{/if}