Changeset 376 for trunk/install/install3.php
- Timestamp:
- Sep 24, 2022, 1:11:18 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install/install3.php
r253 r376 38 38 $configArray['siteUrl'] = trim( mosGetParam( $_POST, 'siteUrl', '' ) ); 39 39 $configArray['absolutePath'] = trim( mosGetParam( $_POST, 'absolutePath', '' ) ); 40 if (get_magic_quotes_gpc()) {41 $configArray['absolutePath'] = stripslashes(stripslashes($configArray['absolutePath']));42 $sitename = stripslashes(stripslashes($sitename));43 }40 #if (get_magic_quotes_gpc()) { 41 # $configArray['absolutePath'] = stripslashes(stripslashes($configArray['absolutePath'])); 42 # $sitename = stripslashes(stripslashes($sitename)); 43 #} 44 44 45 45 … … 185 185 $url = $configArray['siteUrl']; 186 186 else { 187 $port = ( $_SERVER['SERVER_PORT'] == 80 ) ? '' : ":".$_SERVER['SERVER_PORT']; 188 $root = $_SERVER['SERVER_NAME'].$port.$_SERVER['PHP_SELF']; 187 # $port = ( $_SERVER['SERVER_PORT'] == 80 ) ? '' : ":".$_SERVER['SERVER_PORT']; 188 $port = ( $_SERVER['SERVER_PORT'] == 80 ) ? 'http://' : "https://"; 189 # $root = $_SERVER['SERVER_NAME'].$port.$_SERVER['PHP_SELF']; 190 $root = $_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']; 189 191 $root = str_replace("install/","",$root); 190 192 $root = str_replace("/install3.php","",$root); 191 $url = "http://".$root."/client"; 193 # $url = "http://".$root."/client"; 194 $url = $port.$root."/client"; 192 195 } 193 196 ?>
Note:
See TracChangeset
for help on using the changeset viewer.