Changeset 267 for dev/install

Show
Ignore:
Timestamp:
12/06/07 13:20:39 (13 years ago)
Author:
exi
Message:

Config file is now saved as 440.
The upgrader should now drop tables at initial call of step40.

Location:
dev/install
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • dev/install/install_step4.php

    r266 r267  
    33{ 
    44    echo 'Redirecting you to the Update page, please wait.<br/>'; 
    5     echo '<meta http-equiv="refresh" content="1; URL=?step=40" />'; 
     5    echo '<meta http-equiv="refresh" content="1; URL=?step=40&action=drop" />'; 
    66    return; 
    77} 
  • dev/install/install_step40.php

    r266 r267  
    66include('../common/includes/class.db.php'); 
    77 
    8 echo 'Running database checks... '; 
    9 include('install_step40_tblchk.php'); 
    10 echo 'done<br/>'; 
    118 
    129echo 'Reading packages...'; 
     
    5451mysql_select_db($_SESSION['sql']['db']); 
    5552 
    56 if (!isset($_REQUEST['sub'])) 
    57 { 
     53if ($_REQUEST['action'] == 'drop') 
     54{ 
     55    echo 'Running database checks... '; 
     56    include('install_step40_tblchk.php'); 
     57    echo 'done<br/>'; 
     58 
    5859    echo 'Dropping some tables...<br/>'; 
    5960    $dropdata = explode(',', 'kb3_ships,kb3_ship_classes,kb3_item_types,kb3_regions,kb3_systems,kb3_system_jumps,kb3_item_locations,kb3_constellations,kb3_races'); 
  • dev/install/install_step41.php

    r254 r267  
    1717fwrite($fp, trim($config)); 
    1818fclose($fp); 
    19 chmod('../kbconfig.php', 0400); 
     19chmod('../kbconfig.php', 0440); 
    2020 
    2121function insertConfig($key, $value) 
  • dev/install/install_step7.php

    r254 r267  
    1010fwrite($fp, trim($config)); 
    1111fclose($fp); 
    12 chmod('../kbconfig.php', 0400); 
     12chmod('../kbconfig.php', 0440); 
    1313?> 
    14 <p>I wrote the config to ../kbconfig.php and chmodded it to 400.<br/> 
     14<p>I wrote the config to ../kbconfig.php and chmodded it to 440.<br/> 
    1515</p> 
    1616<?php