mirror of
https://github.com/e107inc/e107.git
synced 2025-04-13 00:52:07 +02:00
redirect after changing language (index page only)
This commit is contained in:
parent
e6c3c163a2
commit
cd47842800
11
index.php
11
index.php
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
@ -16,6 +16,13 @@
|
||||
|
||||
require_once ('class2.php');
|
||||
|
||||
|
||||
if($_GET['elan'])
|
||||
{
|
||||
header('location: '.SITEURL);
|
||||
exit;
|
||||
}
|
||||
|
||||
if (file_exists('index_include.php'))
|
||||
{
|
||||
include ('index_include.php');
|
||||
@ -87,7 +94,7 @@ if (!$location)
|
||||
|
||||
if (!trim($location))
|
||||
$location = 'news.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.
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user