-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·45 lines (37 loc) · 978 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
$domain = isset($_SERVER['HTTP_HOST'])?$_SERVER['HTTP_HOST']:'17salsa.com' ;
//echo $domain . "<br>";
// 17salsa VIP card
if ( preg_match('/^vip\.17salsa/i',$domain)
|| preg_match('/^www\.vip\.17salsa/i',$domain)
|| preg_match('/4006331733/',$domain)
)
{
header("Location: https://17salsa.com/vip/",TRUE,302);
die();
}
if ( preg_match('/^hksf2011\.17salsa/i',$domain)
|| preg_match('/^www\.hksf2011\.17salsa/i',$domain)
)
{
header("Location: https://17salsa.com/home/space-124-do-thread-id-5785.html",TRUE,302);
die();
}
// 如果是自定义域名,则需要到 /home
if ( !preg_match('/^17salsa/i',$domain)
&& !preg_match('/^www\.17salsa/i',$domain) )
{
// 不能用 http:https:// ,否则自定义域名会失效
header("Location: /home/",TRUE,302);
die();
}
header("Location: https://17salsa.com/home/",TRUE,302);
die();
/*
if ( preg_match('/com$/i',$domain) )
{
header("Location: http:https://17salsa.net/site/",TRUE,302);
die();
}
*/
?>