mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
redirect after changing language (index page only)
This commit is contained in:
11
index.php
11
index.php
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
* e107 website system
|
* e107 website system
|
||||||
*
|
*
|
||||||
@@ -16,6 +16,13 @@
|
|||||||
|
|
||||||
require_once ('class2.php');
|
require_once ('class2.php');
|
||||||
|
|
||||||
|
|
||||||
|
if($_GET['elan'])
|
||||||
|
{
|
||||||
|
header('location: '.SITEURL);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
if (file_exists('index_include.php'))
|
if (file_exists('index_include.php'))
|
||||||
{
|
{
|
||||||
include ('index_include.php');
|
include ('index_include.php');
|
||||||
@@ -87,7 +94,7 @@ if (!$location)
|
|||||||
|
|
||||||
if (!trim($location))
|
if (!trim($location))
|
||||||
$location = 'news.php';
|
$location = 'news.php';
|
||||||
|
|
||||||
list($page, $str) = explode("?", $location."?"); // required to prevent infinite looping when queries are used on index.php.
|
list($page, $str) = explode("?", $location."?"); // required to prevent infinite looping when queries are used on index.php.
|
||||||
if ($page == "index.php") // Welcome Message is the front-page.
|
if ($page == "index.php") // Welcome Message is the front-page.
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user