X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Finst_upgrade.php;h=5e5e1a9809ff1a514011a2fe8d659fb659597234;hb=268a54dcfd08aff7113bc3afe8b784f36db2d0d4;hp=948594f8e6adf7b735668bae1d0d31b8847e6a69;hpb=1ea749c4abfe081bd7f1b4b11c65a61b311a189e;p=fa-stable.git diff --git a/admin/inst_upgrade.php b/admin/inst_upgrade.php index 948594f8..5e5e1a98 100644 --- a/admin/inst_upgrade.php +++ b/admin/inst_upgrade.php @@ -50,7 +50,7 @@ if (get_post('Upgrade')) $i = find_submit('Clear'); if ($i != -1) { - unlink($path_to_root.'/tmp/upgrade.'.$i.'.log'); + unlink(VARLOG_PATH.'/upgrade.'.$i.'.log'); $Ajax->activate('_page_body'); } if (get_post('_select_comp_update')) @@ -63,6 +63,7 @@ start_form(); $th = array(_("Company"), _("Table set"), _("Current version"), _("Last log"), _('Upgrade')); start_table(TABLESTYLE); table_header($th); +$k = 0; //row colour counter $uptodate = true; foreach($site_status as $i => $comp) @@ -76,7 +77,7 @@ foreach($site_status as $i => $comp) label_cell($comp['version'], 'align=center' .($status ? '':' class=redfg')/*, 'class='.( $status ? 'ok' : 'error')*/); - $log = $path_to_root.'/tmp/upgrade.'.$i.'.log'; + $log = VARLOG_PATH.'/upgrade.'.$i.'.log'; if (file_exists($log)) { label_cell(viewer_link(_('View log'), "admin/view/view_upgrade_log.php?id=$i", null, $i, 'log.png') @@ -112,7 +113,7 @@ if ($uptodate) else { if (get_post('select_comp') === '') display_note(_("Select company for incremental upgrade."), 0, 1, "class='stockmankofg'"); - submit_center('Upgrade', _('Upgrade'), true, _('Save database and perform upgrade'), 'process'); + submit_center('Upgrade', _('Upgrade'), true, _('Save database and perform upgrade'), 'nonajax'); } end_form();