Changeset 252

Show
Ignore:
Timestamp:
12/05/07 18:50:26 (13 years ago)
Author:
exi
Message:

Removed pass by reference warning in class.comments.php and class.options.php.
Added a return option for the parser.
Switched to kbconfig.php as main config file.

Location:
branch/rev3
Files:
7 added
4 removed
17 modified

Legend:

Unmodified
Added
Removed
  • branch/rev3/common/includes/class.comments.php

    r190 r252  
    3838 
    3939        // create comment_added event 
    40         event::call('comment_added', &$this); 
     40        event::call('comment_added', $this); 
    4141    } 
    4242 
  • branch/rev3/common/includes/class.item.php

    r243 r252  
    11<?php 
    2 require_once('db.php'); 
    3  
    42define('DGM_TECHLEVEL', 422); 
    53 
     
    151149            else 
    152150            { 
    153                 // that item doesnt exist or is mispelled 
     151                // that item doesnt exist or is misspelled 
    154152                return false; 
    155153            } 
  • branch/rev3/common/includes/class.options.php

    r191 r252  
    129129            foreach ($options as $option) 
    130130            { 
    131                 $html .= options::assembleElement(&$option); 
     131                $html .= options::assembleElement($option); 
    132132            } 
    133133            $html .= $smarty->fetch(get_tpl('admin_options_set_foot')); 
  • branch/rev3/common/includes/class.parser.php

    r244 r252  
    1212        $this->error_ = array(); 
    1313        $this->killmail_ = trim(str_replace("\r", '', $killmail)); 
     14        $this->returnmail = false; 
    1415 
    1516        if (strpos($this->killmail_, 'Beteiligte Parteien:')) 
     
    424425        } 
    425426 
     427        if ($this->returnmail) 
     428        { 
     429            return $kill; 
     430        } 
    426431        $id = $kill->add(); 
    427432        if ($id == -1) 
  • branch/rev3/common/includes/class.ship.php

    r212 r252  
    88 * 
    99*/ 
    10  
    11 require_once("db.php"); 
    1210 
    1311class Ship 
  • branch/rev3/common/includes/db.php

    r202 r252  
    11<?php 
    2 require_once('config.php'); 
    3 require_once('common/includes/globals.php'); 
    4 require_once('common/includes/php_compat.php'); 
    5  
    6 if (defined('DB_USE_QCACHE') && DB_USE_QCACHE === true) 
    7 { 
    8     require_once('common/includes/class.db_cache.php'); 
    9 } 
    10 else 
    11 { 
    12     require_once('common/includes/class.db.php'); 
    13 } 
     2// cached query class will be loaded additionally once we received the config 
     3// see common/index.php for details 
     4require_once('common/includes/class.db.php'); 
    145 
    156// get mysql server info and store it in a define so we know if its 
  • branch/rev3/common/includes/globals.php

    r244 r252  
    66// current version: major.minor.sub 
    77// unpair numbers for minor = development version 
    8 define('KB_VERSION', '1.4.0 (Revelations 3)'); 
     8define('KB_VERSION', '1.4.0 (Trinity)'); 
    99 
    1010// set the running-server for id-syncs here 
  • branch/rev3/common/index.php

    r245 r252  
    2222 
    2323// many ppl had issues with pear and relative paths 
     24require_once('kbconfig.php'); 
     25require_once('common/includes/globals.php'); 
     26require_once('common/includes/php_compat.php'); 
    2427require_once('common/includes/db.php'); 
    2528require_once('common/includes/class.config.php'); 
     
    6265// load the config from the database 
    6366$config = new Config(KB_SITE); 
     67define('DB_USE_CCP', true); 
    6468define('KB_HOST', config::get('cfg_kbhost')); 
    6569define('MAIN_SITE', config::get('cfg_mainsite')); 
     
    7175if (DB_USE_QCACHE) 
    7276{ 
     77    // the object overloading system will switch to cached queries now 
    7378    require_once('common/includes/class.db_cache.php'); 
    7479} 
     
    131136} 
    132137 
    133 // this is to make sure that smarty is able to create output 
    134 if (!is_dir('./cache/templates_c')) 
    135 { 
    136     if (mkdir('./cache/templates_c')) 
    137     { 
    138         chmod('./cache/templates_c', 0777); 
    139     } 
    140     else 
    141     { 
    142         exit('please create cache/templates_c and chmod it 777'); 
    143     } 
    144 } 
    145  
    146138// all admin files are now in the admin directory and preload the menu 
    147139if (substr($page, 0, 5) == 'admin') 
  • branch/rev3/install/config.data

    r88 r252  
    55filter_date     0 
    66kill_points     1 
    7 map_con_cl_bg   112,102,112 
    8 map_con_cl_capt 255,255,255 
    9 map_con_cl_hl   255,255,255 
    10 map_con_cl_line 78,70,82 
    11 map_con_cl_normal       0,0,0 
     7mods_active     signature_generator 
     8post_password   CHANGEME 
     9adapt_items     0 
     10auto_reinforced 0 
     11bs_podlink      0 
     12cache_enabled   0 
     13date_gmtime     1 
     14is_reinforced   0 
     15item_values     1 
     16killlist_alogo  1 
     17kill_classified 0 
     18kill_splitfit   1 
     19least_active    0 
     20loss_points     1 
     21mail_host 
     22map_con_security        1 
    1223map_con_showlines       1 
    1324map_con_shownames       1 
    14 map_map_cl_bg   112,102,112 
    15 map_map_cl_capt 255,255,255 
    16 map_map_cl_hl   255,255,255 
    17 map_map_cl_line 78,70,82 
    18 map_map_cl_normal       0,0,0 
     25map_map_security        1 
    1926map_map_showlines       1 
    20 map_reg_cl_bg   112,102,112 
    21 map_reg_cl_capt 255,255,255 
    22 map_reg_cl_hl   255,255,255 
    23 map_reg_cl_line 78,70,82 
    24 map_reg_cl_normal       0,0,0 
     27map_region_cache        1 
     28map_reg_security        1 
    2529map_reg_showlines       1 
    26 mods_active     signature_generator 
    27 post_password   CHANGEME 
    28 ship_values     1 
    29 style_banner    revelations 
    30 style_name      revelations 
     30post_forbid     0 
     31post_permission all 
     32public_losses   0 
     33public_stats    do nothing 
     34public_summarytable     0 
     35readd_dupes     0 
     36reinforced_disable_threshold    5 
     37reinforced_prob 20 
     38reinforced_rf_prob      20 
     39reinforced_threshold    5 
     40ship_values     0 
     41show_standing   1 
     42show_standings  0 
     43style_banner    default 
     44style_name      default 
     45summarytable_summary    1 
     46total_points    1 
     47user_regdisabled        1 
     48user_showmenu   0 
  • branch/rev3/install/config.tpl

    r103 r252  
    99*/ 
    1010 
    11 // general config 
    12 define('KB_TITLE', '{$title}'); 
    13 define('KB_HOST', '{$host}'); 
     11// configuration key 
    1412define('KB_SITE', '{$site}'); 
    15  
    16 // Main website, leave blank if killboard is by itself 
    17 define('MAIN_SITE', ''); 
    18  
    19 // corporation OR alliance id 
    20 define('CORP_ID', {$cid}); 
    21 define('ALLIANCE_ID', {$aid}); 
    2213 
    2314// admin password 
    2415define('ADMIN_PASSWORD', '{$adminpw}'); 
    25 define('SUPERADMIN_PASSWORD', ''); 
    26  
    27 // debug, shows page time generation 
    28 define('KB_PROFILE', 0); 
    29  
    30 // page cache 
    31 define('KB_CACHE', 0); 
    32 define('KB_CACHEDIR', 'cache/data'); 
    33  
    34 $cacheignore = array( 
    35     'home', 
    36     'pilot_detail', 
    37     'kill_detail', 
    38     'admin', 
    39     'admin_cc', 
    40     'admin_rental', 
    41     'igb', 
    42     'post_igb', 
    43     'portrait_grab'); 
    44  
    45 $cachetimes = array ( 
    46     'awards' => 1440, 
    47     'campaigns' => 30, 
    48     'contracts' => 30, 
    49     'corp_detail' => 60, 
    50     'alliance_detail' => 240); 
    51  
    52 define('STYLE_URL', '{$style}'); 
    53 define('COMMON_URL', '{$common}'); 
    54 define('IMG_URL', '{$img}'); 
    55  
    56 define('DB_HALTONERROR', true); 
    5716 
    5817// database config 
  • branch/rev3/install/index.php

    r190 r252  
    2424<td valign="top" height="100%" style="height: 100%"> 
    2525<div id="header"> 
    26 <img src="revelations.jpg" border="0"> 
     26<img src="trinity.jpg" border="0"> 
    2727</div> 
    2828<div id="page-title">Install Step <?php echo $_SESSION['state']; ?></div> 
  • branch/rev3/install/install_step1.php

    r88 r252  
    1 <p>Welcome to the new installer, it will help you to set up everything correctly.<br/> 
     1<p>Welcome to the installer and updater, it will help you to set up everything correctly.<br/> 
    22The next step will test if your server has the needed modules to run the Killboard with all features. 
    33</p> 
  • branch/rev3/install/install_step2.php

    r215 r252  
    6666} 
    6767 
     68echo '<br/><div class="block-header2">Config</div>'; 
     69if (!file_exists('../kbconfig.php')) 
     70{ 
     71    $stoppage = true; 
     72    echo 'Please create the file \'kbconfig.php\' and make it writeable by the webserver.<br/>'; 
     73} 
     74elseif (is_writeable('../kbconfig.php')) 
     75{ 
     76    echo 'The config file \'../kbconfig.php\' is there and writeable, excellent!<br/>'; 
     77} 
     78else 
     79{ 
     80    $stoppage = true; 
     81    echo 'I cannot write into ../kbconfig.php, you need to fix that for me before you can continue.<br/>'; 
     82    echo 'Please issue a "chmod 777 ../kbconfig" on the commandline inside of this directory<br/>'; 
     83} 
     84 
    6885echo '<br/><div class="block-header2">Connectivity</div>'; 
    6986// connectivity 
  • branch/rev3/install/install_step3.php

    r168 r252  
    11<?php 
    22$stoppage = true; 
     3 
    34if ($_REQUEST['submit']) 
    45{ 
     
    1415    $host = 'localhost'; 
    1516} 
     17if (file_exists('../config.php')) 
     18{ 
     19    echo '<div class="block-header2">Found old config</div>'; 
     20    echo 'We will just reuse the data and create a new one.<br/>'; 
     21    include_once('../config.php'); 
     22    $_SESSION['sql'] = array(); 
     23    $_SESSION['sql']['host'] = DB_HOST; 
     24    $_SESSION['sql']['user'] = DB_USER; 
     25    $_SESSION['sql']['pass'] = DB_PASS; 
     26    $_SESSION['sql']['db'] = DB_NAME; 
     27} 
     28else 
     29{ 
    1630?> 
    1731<form id="options" name="options" method="post" action="?step=3"> 
     
    2539<tr><td width="120"></td><td><input type=submit name=submit value="Test"></td></tr> 
    2640</table> 
     41<?php 
     42} 
    2743 
    28 <?php 
    2944if ($_SESSION['sql']['db']) 
    3045{ 
  • branch/rev3/install/install_step4.php

    r205 r252  
    11<?php 
     2if (file_exists('../config.php')) 
     3{ 
     4    echo 'Redirecting you to the Update page, please wait.<br/>'; 
     5    echo '<meta http-equiv="refresh" content="1; URL=?step=40" />'; 
     6    return; 
     7} 
     8 
    29$stoppage = true; 
    310include('../common/includes/php_compat.php'); 
     11include('../common/includes/class.xml.php'); 
     12 
     13echo 'Reading packages...'; 
     14$xml = new sxml(); 
     15$kb = $xml->parse(file_get_contents('../packages/database/contents.xml')); 
    416 
    517$struct = $opt = $data = array(); 
    6 $dir = opendir('./sql'); 
    7 while ($file = readdir($dir)) 
    8 { 
    9     if (strpos($file, 'sql_') !== false) 
    10     { 
    11         $table = str_replace(array('sql_tblstrct_', 'sql_tbldata_opt_', 'sql_tbldata_', '.sql'), '', $file); 
    12         $table = 'kb3_'.preg_replace('/(_p\d{1,4})/', '', $table); 
    13         if (strpos($file, 'tblstrct')) 
    14         { 
    15             $structc++; 
    16             $struct[$table][] = $file; 
    17         } 
    18         elseif (strpos($file, '_opt_')) 
     18$tables = array(); 
     19foreach($kb['kb3']['table'] as $idx => $tbl) 
     20{ 
     21    $table = $tbl['name']; 
     22    $files = array(); 
     23    $dir = opendir('../packages/database/'.$table); 
     24 
     25    $xml = new sxml(); 
     26    $st = $xml->parse(file_get_contents('../packages/database/'.$table.'/table.xml')); 
     27    $struct[$table] = $st['kb3']['structure']; 
     28    $kb['kb3']['table'][$idx]['rows'] = $st['kb3']['rows']; 
     29    $structc++; 
     30 
     31    while ($file = readdir($dir)) 
     32    { 
     33        if ($file == '.' || $file == '..') 
     34        { 
     35            continue; 
     36        } 
     37        if (strpos($file, '_opt_')) 
    1938        { 
    2039            $dcnt++; 
    2140            $optcnt++; 
    22             $opt[$table][] = $file; 
     41            $opt[$table][] = '../packages/database/'.$table.'/'.$file; 
    2342            asort($opt[$table]); 
    2443        } 
    25         else 
     44        elseif (!strpos($file, 'xml')) 
    2645        { 
    2746            $dcnt++; 
    2847            $datacnt++; 
    29             $data[$table][] = $file; 
     48            $data[$table][] = '../packages/database/'.$table.'/'.$file; 
    3049            asort($data[$table]); 
    3150        } 
     
    3352} 
    3453 
    35 $db = mysql_pconnect($_SESSION['sql']['host'], $_SESSION['sql']['user'], $_SESSION['sql']['pass']); 
     54$db = mysql_connect($_SESSION['sql']['host'], $_SESSION['sql']['user'], $_SESSION['sql']['pass']); 
    3655mysql_select_db($_SESSION['sql']['db']); 
    3756$result = mysql_query('show tables'); 
     
    4463if ($_REQUEST['sub'] == 'struct') 
    4564{ 
    46     foreach ($struct as $table => $files) 
    47     { 
    48         foreach ($files as $file) 
    49         { 
    50             echo 'Creating table '.$table.' from file '.$file.'...'; 
    51             $query = file_get_contents('./sql/'.$file); 
    52             $id = mysql_query($query); 
    53             if ($id) 
    54             { 
    55                 echo 'done<br/>'; 
    56             } 
    57             else 
    58             { 
    59                 echo 'error: '.mysql_error().'<br/>'; 
    60             } 
     65    foreach ($struct as $table => $structure) 
     66    { 
     67        echo 'Creating table '.$table.'...'; 
     68        $query = $struct[$table]; 
     69        #echo $query; 
     70        $id = mysql_query($query); 
     71        if ($id) 
     72        { 
     73            echo 'done<br/>'; 
     74        } 
     75        else 
     76        { 
     77            echo 'error: '.mysql_error().'<br/>'; 
    6178        } 
    6279        unset($struct[$table]); 
     
    98115                    continue; 
    99116                } 
    100                 echo 'Inserting data ('.$i.'/'.$datacnt.') into '.$table.' from file '.$file.'...<br/>'; 
     117                echo 'Inserting data ('.$i.'/'.$datacnt.') into '.$table.'<br/> using file '.$file.'...<br/>'; 
    101118 
    102119                $error = ''; 
    103                 $querys = file('./sql/'.$file); 
    104                 $lines = count($querys); 
     120                $fp = gzopen($file, 'r'); 
     121                $lines = 0; 
    105122                $errors = 0; 
    106                 foreach ($querys as $query) 
    107                 { 
     123                while ($query = gzgets($fp, 4000)) 
     124                { 
     125                    $text .= $query; 
     126                    if (substr($text, -3, 1) != ';') 
     127                    { 
     128                        continue; 
     129                    } 
     130                    $query = $text; 
     131                    $text = ''; 
     132                    $lines++; 
    108133                    if (trim($query)) 
    109134                    { 
     
    115140                        $query_count++; 
    116141                        $id = mysql_query($query); 
     142                        #echo $query; 
    117143                        if (!$id) 
    118144                        { 
     
    122148                    } 
    123149                } 
    124                 echo 'File '.$file.' had '.$lines.' lines with '.$query_count.' querys. '.$errors.' Querys failed.<br/>'; 
     150                echo 'File '.$file.' had '.$lines.' lines with '.$query_count.' querys.<br/> '.$errors.' Querys failed.<br/>'; 
    125151                if (!$error) 
    126152                { 
    127                     echo 'done<br/>'; 
     153                    echo 'Finished importing of this file.<br/>'; 
    128154                    echo '<meta http-equiv="refresh" content="1; URL=?step=4&sub=data" />'; 
    129155                    echo 'Automatic reload in 1s for next chunk. <a href="?step=4&sub=data">Manual Link</a><br/>'; 
     
    175201                    continue; 
    176202                } 
    177                 echo 'Inserting optional data ('.$i.'/'.$optsel.') into '.$table.' from file '.$file.'...'; 
    178                 $querys = file('./sql/'.$file); 
    179                 foreach ($querys as $query) 
    180                 { 
     203                echo 'Inserting optional data ('.$i.'/'.$optsel.') into '.$table.'<br/> using file '.$file.'...'; 
     204                $fp = gzopen($file, 'r'); 
     205                while ($query = gzgets($fp, 4000)) 
     206                { 
     207                    $text .= $query; 
     208                    if (substr($text, -3, 1) != ';') 
     209                    { 
     210                        continue; 
     211                    } 
     212                    $query = $text; 
    181213                    $query = trim($query); 
    182214                    if ($query) 
     
    187219                        } 
    188220                        $id = mysql_query($query); 
     221                        #echo $query; 
    189222                    } 
    190223                } 
     
    209242        $stoppage = false; 
    210243        echo 'All tables imported. Checking tables for correct data...<br/>'; 
    211         $check = file('./sql/tbl_check.txt'); 
    212         foreach ($check as $line) 
    213         { 
    214             $tmp = explode(chr(9), $line); 
    215             $table = trim($tmp[0]); 
    216             $count = trim($tmp[1]); 
     244        foreach ($kb['kb3']['table'] as $line) 
     245        { 
     246            $table = $line['name']; 
     247            $count = $line['rows']; 
    217248            echo 'Checking table '.$table.': '; 
    218249            $result = mysql_query('SELECT count(*) as cnt FROM '.$table); 
    219250            $test = mysql_fetch_array($result); 
    220             if ($test['cnt'] != $count) 
    221             { 
    222                 echo $test['cnt'].'/'.$count.' - FAILED'; 
    223                 $stoppage = true; 
     251            $failed = 0; 
     252            if ($test['cnt'] != $count && $count != 0) 
     253            { 
     254                echo $test['cnt'].'/'.$count.' - <font color="red"><b>FAILED</b></font>'; 
     255                $failed++; 
    224256            } 
    225257            else 
    226258            { 
    227                 echo $test['cnt'].'/'.$count.' - PASSED'; 
     259                echo $test['cnt'].'/'.$count.' - <font color="green"><b>PASSED</b></font>'; 
    228260            } 
    229261            echo '<br/>'; 
     
    255287{ 
    256288    echo 'All table structures seem to be in the database.<br/>'; 
    257     echo 'I will now check some table structures in case you are upgrading from a previous version... '; 
    258     include('install_step4_tblchk.php'); 
    259     echo 'done<br/>Please continue with <a href="?step=4&sub=datasel">Importing Data</a><br/>'; 
     289#    echo 'I will now check some table structures in case you are upgrading from a previous version... '; 
     290#    include('install_step4_tblchk.php'); 
     291    echo 'Please continue with <a href="?step=4&sub=datasel">Importing Data</a><br/>'; 
    260292 
    261293    echo '<br/><br/>In case you aborted the install and you got already data in those table you can bypass the import now by with <a href="?step=5">this link</a><br/>'; 
    262294    echo 'To be sure i will check some table data for you now:<br/>'; 
    263     $check = file('./sql/tbl_check.txt'); 
    264     foreach ($check as $line) 
    265     { 
    266         $tmp = explode(chr(9), $line); 
    267         $table = trim($tmp[0]); 
    268         $count = trim($tmp[1]); 
     295    foreach ($kb['kb3']['table'] as $line) 
     296    { 
     297        $table = $line['name']; 
     298        $count = $line['rows']; 
    269299        echo 'Checking table '.$table.': '; 
    270300        $result = mysql_query('SELECT count(*) as cnt FROM '.$table); 
    271301        $test = mysql_fetch_array($result); 
    272302        $failed = 0; 
    273         if ($test['cnt'] != $count) 
    274         { 
    275             echo $test['cnt'].'/'.$count.' - FAILED'; 
     303        if ($test['cnt'] != $count && $count != 0) 
     304        { 
     305            echo $test['cnt'].'/'.$count.' - <font color="red"><b>FAILED</b></font>'; 
    276306            $failed++; 
    277307        } 
    278308        else 
    279309        { 
    280             echo $test['cnt'].'/'.$count.' - PASSED'; 
     310            echo $test['cnt'].'/'.$count.' - <font color="green"><b>PASSED</b></font>'; 
    281311        } 
    282312        echo '<br/>'; 
    283313    } 
    284     echo 'Checking table kb3_items: '; 
    285     $result = mysql_query('SELECT count(*) as cnt FROM kb3_items'); 
    286     $test = mysql_fetch_array($result); 
    287     $failed = 0; 
    288     if ($test['cnt'] <= 5000) 
    289     { 
    290         echo $test['cnt'].'<5000 - FAILED'; 
    291         $failed++; 
    292     } 
    293     else 
    294     { 
    295         echo $test['cnt'].'>5000 - PASSED'; 
    296     } 
    297     echo '<br/>'; 
    298     if (!$failed) 
     314    if ($failed == 0) 
    299315    { 
    300316        echo 'All important table data seems to be there, you are safe to bypass the import.<br/>'; 
  • branch/rev3/install/install_step7.php

    r212 r252  
    77 
    88$config = preg_replace("/\{([^\}]+)\}/e", "\\1", join('', file('config.tpl'))); 
    9 $fp = fopen('../cache/config.php', 'w'); 
     9$fp = fopen('../kbconfig.php', 'w'); 
    1010fwrite($fp, trim($config)); 
    1111fclose($fp); 
     12chmod('../kbconfig.php', 0400); 
    1213?> 
    13 <p>Here is the config i created for you, i saved it as ../cache/config.php with chmod 777.<br/> 
    14 Please move that file to the main dir or create a new one there with the following content.<br/> 
    15 You can continue once that config exists, i will try to delete the generated config if it should be stil there on the next step.<br/> 
     14<p>I wrote the config to ../kbconfig.php and chmodded it to 400.<br/> 
    1615</p> 
    1716<?php 
     
    1918?> 
    2019<?php 
    21 if (!file_exists('../config.php')) 
     20if (!file_exists('../kbconfig.php')) 
    2221{ 
    2322    ?> 
    24 <p><a href="?step=<?php echo $_SESSION['state']; ?>">Refresh</a></p> 
     23<p>Something went wrong, the file ../kbconfig.php is gone!</p> 
    2524<?php 
    2625    return; 
     
    2827// config is there, use it to create all config vars which arent there 
    2928// to prevent that ppl with running installs get new values 
    30 require_once('../config.php'); 
     29require_once('../kbconfig.php'); 
    3130 
    32 $db = mysql_pconnect(DB_HOST, DB_USER, DB_PASS); 
     31$db = mysql_connect(DB_HOST, DB_USER, DB_PASS); 
    3332mysql_select_db(DB_NAME); 
    3433 
    35 $confs = file('config.data'); 
    36 foreach ($confs as $line) 
     34function insertConfig($key, $value) 
    3735{ 
    38     list($key, $value) = explode(chr(9), trim($line)); 
     36    global $db; 
     37 
    3938    $result = mysql_query('select * from kb3_config where cfg_site=\''.KB_SITE.'\' and cfg_key=\''.$key.'\''); 
    4039    if (!$row = mysql_fetch_row($result)) 
     
    4443    } 
    4544} 
     45 
     46// move stuff from the config to the database 
     47insertConfig('cfg_allianceid', $aid); 
     48insertConfig('cfg_corpid', $cid); 
     49 
     50insertConfig('cfg_common', $common); 
     51insertConfig('cfg_img', $img); 
     52insertConfig('cfg_kbhost', $host); 
     53insertConfig('cfg_style', $style); 
     54insertConfig('cfg_kbtitle', $title); 
     55 
     56insertConfig('cfg_profile', 0); 
     57insertConfig('cfg_qcache', 1); 
     58insertConfig('cfg_sqlhalt', 0); 
     59 
     60insertConfig('cfg_mainsite', ''); 
     61 
     62$confs = file('config.data'); 
     63foreach ($confs as $line) 
     64{ 
     65    list($key, $value) = explode(chr(9), trim($line)); 
     66    insertConfig($key, $value); 
     67} 
    4668?> 
    4769<br/><br/><font size=+1>Found the config on the right place, please continue...</font><br/> 
  • branch/rev3/install/install_step8.php

    r88 r252  
    11<?php 
    22$stoppage = true; 
    3  
    4 @unlink('../cache/config.php'); 
    53?> 
    64<div class="block-header2">Installation Complete</div> 
    7 <p>Congratulations, you successfully installed the EVE Development Network Killboard v1.2!<br/> 
     5<p>Congratulations, you successfully installed the EVE Development Network Killboard v1.4!<br/> 
    86Please check <a href="http://www.eve-dev.net/">EVE-Dev.net</a> for updates from time to time.<br/> 
    97<br/>