-
Notifications
You must be signed in to change notification settings - Fork 2
/
go.php
44 lines (32 loc) · 1.29 KB
/
go.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
<?php
include 'apis/db.php';
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
?>
<?php
$url = $actual_link ;
$url_components = parse_url($url);
parse_str($url_components['query'], $params);
$place = $params['to'];
if ($place == "index") {
echo '<script>window.location.href = "index.php";</script>';
} elseif ($place == "about") {
echo '<script>window.location.href = "index.php";</script>';
} elseif ($place == "contact") {
echo '<script>window.location.href = "contact.php";</script>';
} elseif ($place == "info") {
echo '<script>window.location.href = "info.php";</script>';
} elseif ($place == "login") {
echo '<script>window.location.href = "login.php";</script>';
} elseif ($place == "signup") {
echo '<script>window.location.href = "singup.php";</script>';
} elseif ($place == "news") {
echo '<script>window.location.href = "news.php";</script>';
} elseif ($place == "studio") {
echo '<script>window.location.href = "app/studio.php";</script>';
} elseif ($place == "logout") {
echo '<script>window.location.href = "app/user_logout.php";</script>';
} elseif ($place == "view") {
echo '<script>window.location.href = "app/view.php";</script>';
} else {
echo $place . " is not a correct path!";;
}