Changeset 11580


Ignore:
Timestamp:
2007/03/08 10:20:44 (17 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/lib/slib.php

    r11579 r11580  
    475475function sfReload($get = "") { 
    476476    if ($_SERVER["SERVER_PORT"] == "443" ){ 
    477         $protocol = "https://"; 
    478         $url = SSL_URL; 
     477        $url = ereg_replace(URL_DIR, "", SSL_URL); 
    479478    } else { 
    480         $protocol = "http://"; 
    481         $url = SITE_URL; 
     479        $url = ereg_replace(URL_DIR, "", SITE_URL); 
    482480    } 
    483481     
    484482    if($get != "") { 
    485         header("Location: ". $protocol . $url . $_SERVER['PHP_SELF'] . "?" . $get); 
     483        header("Location: ". $url . $_SERVER['PHP_SELF'] . "?" . $get); 
    486484    } else { 
    487         header("Location: ". $protocol . $url . $_SERVER['PHP_SELF']); 
     485        header("Location: ". $url . $_SERVER['PHP_SELF']); 
    488486    } 
    489487    exit; 
Note: See TracChangeset for help on using the changeset viewer.