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