X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=install%2Findex.php;h=de7c8c6b438e9d694e95510cac0378495ad03ed3;hb=f784f9e4be4d376aac46be4348a571c15c8055cd;hp=7fd3831e12c372f49353f1578f2fc86938dc5fcc;hpb=93fbb5cdaa4ac33ba5f3d32d9ddd1eda80af9467;p=fa-stable.git diff --git a/install/index.php b/install/index.php index 7fd3831e..de7c8c6b 100644 --- a/install/index.php +++ b/install/index.php @@ -12,8 +12,8 @@ $page_security = 'SA_OPEN'; $path_to_root=".."; -//if (file_exists($path_to_root.'/config.php')) -// header("Location: $path_to_root/index.php"); +if (file_exists($path_to_root.'/config_db.php')) + header("Location: $path_to_root/index.php"); include($path_to_root . "/install/isession.inc"); @@ -45,7 +45,7 @@ function subpage_title($txt) function display_coas() { start_table(TABLESTYLE); - $th = array(_("Chart of accounts"), _("Description"), _("Install")); + $th = array(_("Chart of accounts"), _("Description"), _("Encoding"), _("Install")); table_header($th); $k = 0; @@ -60,6 +60,7 @@ function display_coas() alt_table_row_color($k); label_cell($coa['name']); label_cell(is_array($coa['Descr']) ? implode('
', $coa['Descr']) : $coa['Descr']); + label_cell($coa['encoding']); if ($installed) label_cell(_("Installed")); else @@ -94,19 +95,6 @@ function install_connect_db() { return true; } -function coa_type_list_row($label, $name, $selected=null) -{ - - $coa_types = array( - 0 => _('New company with Standard American COA (4digit)'), - _('Demo based on Standard American COA (4digit)'), - _('Any COA selected from FA repository (inet connection required)') - ); - echo "$label\n"; - echo array_selector($name, $selected, $coa_types); - echo ""; -} - function do_install() { global $path_to_root, $db_connections, $def_coy, $installed_extensions; @@ -165,7 +153,7 @@ if (!isset($_SESSION['inst_set'])) // default settings ); if (!@$_POST['Tests']) - $_POST['Page'] = 1; + $_POST['Page'] = 1; // set to start page if (isset($_POST['back']) && (@$_POST['Page']>1)) { $_POST['Page']--; @@ -248,9 +236,9 @@ elseif (isset($_POST['set_admin'])) { start_form(); switch(@$_POST['Page']) { default: - include ('../install.html'); - submit_center('continue', _('Continue >>')); - break; +// include ('../install.html'); +// submit_center('continue', _('Continue >>')); +// break; case '1': subpage_title(_('System Diagnostics')); $_POST['Tests'] = display_system_tests(true);