Changeset 11579
- Timestamp:
- 2007/03/08 10:17:06 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/lib/slib.php
r11577 r11579 475 475 function sfReload($get = "") { 476 476 if ($_SERVER["SERVER_PORT"] == "443" ){ 477 $protocol = "https"; 477 $protocol = "https://"; 478 $url = SSL_URL; 478 479 } else { 479 $protocol = "http"; 480 } 481 480 $protocol = "http://"; 481 $url = SITE_URL; 482 } 483 482 484 if($get != "") { 483 header("Location: ". $protocol."://" .$_SERVER["SERVER_NAME"]. $_SERVER['PHP_SELF'] . "?" . $get);485 header("Location: ". $protocol . $url . $_SERVER['PHP_SELF'] . "?" . $get); 484 486 } else { 485 header("Location: ". $protocol."://" .$_SERVER["SERVER_NAME"]. $_SERVER['PHP_SELF']);487 header("Location: ". $protocol . $url . $_SERVER['PHP_SELF']); 486 488 } 487 489 exit;
Note: See TracChangeset
for help on using the changeset viewer.