Changeset 699

Show
Ignore:
Timestamp:
08/22/05 16:17:37 (8 years ago)
Author:
plec_
Message:

Fix broken DB update for install.php

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/include/schema_validate.php

    r695 r699  
    3535        global $db; 
    3636 
    37         check_users_not_empty(); 
     37        //check_users_not_empty(); 
    3838        $db->ExecSqlUniqueRes("SELECT * FROM schema_info WHERE tag='schema_version'", $row, false); 
    3939        if (empty ($row)) 
     
    8787                if ($row == null) 
    8888                { 
    89             $exploded_path = explode("/", $_SERVER['SCRIPT_NAME']);     # Split directories in token 
    90             array_pop($exploded_path);                                  # Remove install.php from the list 
    91             $system_path = implode("/", $exploded_path);                # Build the system_path for the auth-server 
    92             print "<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=$system_path/install.php\">"; 
    93             exit(); 
    9489                        echo "<html><head><h1>"; 
    9590                        echo _("No user matches the default account origin, a new user admin/admin will be created. Change the password as soon as possible !"); 
     
    576571                //$db->ExecSqlUpdate("BEGIN;\n$sql\nROLLBACK;\n", true); 
    577572                echo "</html></head>"; 
    578                 exit (); 
     573                //exit (); 
    579574        } 
    580575}