Changeset 11579


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

Legend:

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

    r11577 r11579  
    475475function sfReload($get = "") { 
    476476    if ($_SERVER["SERVER_PORT"] == "443" ){ 
    477         $protocol = "https"; 
     477        $protocol = "https://"; 
     478        $url = SSL_URL; 
    478479    } else { 
    479         $protocol = "http"; 
    480     } 
    481          
     480        $protocol = "http://"; 
     481        $url = SITE_URL; 
     482    } 
     483     
    482484    if($get != "") { 
    483         header("Location: ".$protocol."://" .$_SERVER["SERVER_NAME"] . $_SERVER['PHP_SELF'] . "?" . $get); 
     485        header("Location: ". $protocol . $url . $_SERVER['PHP_SELF'] . "?" . $get); 
    484486    } else { 
    485         header("Location: ".$protocol."://" .$_SERVER["SERVER_NAME"] . $_SERVER['PHP_SELF']); 
     487        header("Location: ". $protocol . $url . $_SERVER['PHP_SELF']); 
    486488    } 
    487489    exit; 
Note: See TracChangeset for help on using the changeset viewer.