1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php include('_init.php');
if (!empty($_GET["langcode"]) && ($_GET["langcode"] == "en" || $_GET["langcode"] == "cn")) { $langcode = $_GET["langcode"]; $_SESSION["langcode"] = $langcode;
//echo "<script type='text/javascript'>location.href=document.referrer;</script>";
if (!empty($_SERVER['HTTP_REFERER'])) header("Location: " . $_SERVER['HTTP_REFERER']); else echo "<script type='text/javascript'>history.back();</script>";
exit; } else { header("Location: index.php"); }
|