Changeset 1663 in ExiteCMS for trunk/setup.php


Ignore:
Timestamp:
08/21/08 19:14:34 (4 years ago)
Author:
hverton
Message:

moved some static setup code to the dynamically generated dbsetup_include

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/setup.php

    r1661 r1663  
    388388        } else { 
    389389 
     390            // update installation specific configuration items 
     391            $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$basedir."' WHERE cfg_name = 'siteurl'"); 
     392            $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$username."' WHERE cfg_name = ''siteusername"); 
     393            $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$localeset."' WHERE cfg_name = 'locale'"); 
     394  
    390395            // create the admin rights field for the webmaster, based on all admin modules available 
    391396            $result = dbquery("SELECT admin_rights FROM ".$db_prefix."admin"); 
     
    424429            $result = dbcommands($commands, $db_prefix); 
    425430     
    426             // add the standard modules to make them pre-installed 
    427             $commands = array(); 
    428             $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##modules (mod_title, mod_folder, mod_version) VALUES ('Main menu panel', 'main_menu_panel', '1.0.0')"); 
    429             $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##modules (mod_title, mod_folder, mod_version) VALUES ('Advanced login panel', 'user_info_panel', '1.0.0')"); 
    430             $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##modules (mod_title, mod_folder, mod_version) VALUES ('Welcome message panel', 'welcome_message_panel', '1.0.0')"); 
    431             $result = dbcommands($commands, $db_prefix); 
    432  
    433             // and activate the panels of these modules 
     431            // activate the panels of core modules 
    434432            $commands = array(); 
    435433            $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##panels (panel_name, panel_filename, panel_side, panel_order, panel_type, panel_access, panel_display, panel_status) VALUES ('".addslashes($locale['520'])."', 'main_menu_panel', '1', '1', 'file', '0', '0', '1')"); 
     
    462460 
    463461            // add the ExiteCMS core report options 
     462             
     463            /* NOT IMPLEMENTED YET */ 
    464464 
    465465            // add the default forum poll settings 
Note: See TracChangeset for help on using the changeset viewer.