$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'))
$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)
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')
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();