Changeset 17 for trunk/install


Ignore:
Timestamp:
Feb 20, 2010, 4:54:34 PM (14 years ago)
Author:
roby
Message:

Sostituite le funzioni del gruppo ereg perché divenute "deprecate" con il php 5.3

Location:
trunk/install
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/install2.php

    r2 r17  
    147147function split_sql($sql) {
    148148        $sql = trim($sql);
    149         $sql = ereg_replace("\n#[^\n]*\n", "\n", $sql);
     149        $sql = preg_replace('/\n#[^\n]*\n/', "\n", $sql);
    150150
    151151        $buffer = array();
     
    417417                                        $handle=opendir('../client/temi');
    418418                                        while ($file = readdir($handle)) {
    419                                           if ( (!ereg("[.]",$file)) ) {
     419                                          if ( (!preg_match('/[.]/',$file)) ) {
    420420                                            $themelist .= "$file ";
    421421                                          }
  • trunk/install/install4.php

    r2 r17  
    216216$config .= "\n";
    217217$config .= "\n";
    218 $config .= "if (eregi(\"config.php\",\$_SERVER['PHP_SELF'])) {\n";
     218$config .= "if (stristr(\"config.php\",\$_SERVER['PHP_SELF'])) {\n";
    219219$config .= "        Header(\"Location: index.php\");\n";
    220220$config .= "    die();\n";
     
    253253$config_adm .= "\n";
    254254$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";
    256256$config_adm .= "        Header(\"Location: index.php\");\n";
    257257$config_adm .= "        die();\n";
Note: See TracChangeset for help on using the changeset viewer.