$last_version = $updater->get_version(); $last_version_name = '<br /> <span style="color:#878787">(' . $updater->get_name() . ')</span>'; if ($updater->is_actual()) { $my_version = '<span style="color:green;font-weight:bold;font-size:15px">' . $my_version . '</span>'; $last_version = '<span style="color:green;font-weight:bold;font-size:15px">' . $last_version . '</span>'; $msg = $layout->div_ok(txt('cp_updater_check_status_actual')); } else { $my_version = '<span style="color:red;font-weight:bold;font-size:15px">' . $my_version . '</span>'; $last_version = '<span style="color:green;font-weight:bold;font-size:15px">' . $last_version . '</span>'; $msg = $layout->div_error(txt('cp_updater_check_status_notactual')); $need_update = 1; } echo $layout->tbl_start(); echo $layout->head(array(txt('cp_updater_last_version') => '50%', txt('cp_updater_your_version') => '50%')); echo $msg; echo $layout->row(array($last_version . $last_version_name, $my_version . $my_version_name)); echo $layout->row(array(txt('cp_updater_rel_date') . ': ' . $updater->get_build(), txt('cp_updater_your_date') . ': ' . PHPOS_BUILD)); echo $layout->tbl_end(); echo $layout->subtitle(txt('cp_updater_changelog') . ' (' . $updater->get_name() . ')', ICONS . 'notes.png'); echo $layout->txtdesc(txt('cp_updater_desc_changes')); echo $layout->tbl_start(); $changes = $updater->get_changes(); $changes_array = explode("\n", $changes); if (is_array($changes_array)) { foreach ($changes_array as $entry) { echo $layout->row(array($entry)); } } echo $layout->tbl_end(); } else { echo $layout->div_error($updater->get_conn_error());