Changeset 17 for trunk/install
- Timestamp:
- Feb 20, 2010, 4:54:34 PM (15 years ago)
- Location:
- trunk/install
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install/install2.php
r2 r17 147 147 function split_sql($sql) { 148 148 $sql = trim($sql); 149 $sql = ereg_replace("\n#[^\n]*\n", "\n", $sql);149 $sql = preg_replace('/\n#[^\n]*\n/', "\n", $sql); 150 150 151 151 $buffer = array(); … … 417 417 $handle=opendir('../client/temi'); 418 418 while ($file = readdir($handle)) { 419 if ( (! ereg("[.]",$file)) ) {419 if ( (!preg_match('/[.]/',$file)) ) { 420 420 $themelist .= "$file "; 421 421 } -
trunk/install/install4.php
r2 r17 216 216 $config .= "\n"; 217 217 $config .= "\n"; 218 $config .= "if ( eregi(\"config.php\",\$_SERVER['PHP_SELF'])) {\n";218 $config .= "if (stristr(\"config.php\",\$_SERVER['PHP_SELF'])) {\n"; 219 219 $config .= " Header(\"Location: index.php\");\n"; 220 220 $config .= " die();\n"; … … 253 253 $config_adm .= "\n"; 254 254 $config_adm .= "\n"; 255 $config_adm .= "if ( eregi(\"config.php\",\$_SERVER['PHP_SELF'])) {\n";255 $config_adm .= "if (stristr(\"config.php\",\$_SERVER['PHP_SELF'])) {\n"; 256 256 $config_adm .= " Header(\"Location: index.php\");\n"; 257 257 $config_adm .= " die();\n";
Note:
See TracChangeset
for help on using the changeset viewer.