-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpheader.php
More file actions
32 lines (32 loc) · 847 Bytes
/
Copy pathphpheader.php
File metadata and controls
32 lines (32 loc) · 847 Bytes
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
<?
include('includes/connect.php');
?>
<?
$site_name='Drexsell.com';
?>
<?
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?>
<?
function alternate() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= str_replace("www.", "m.", $_SERVER['SERVER_NAME']).":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= str_replace("www.", "m.", $_SERVER['HTTP_HOST']).$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?>