function update_files() { global $lang_update_php, $file_system_icon; echo <<<EOT <tr> <td class="tableh1" colspan="2"> {$file_system_icon}{$lang_update_php['performing_file_updates']} </td> </tr> EOT; delete_files(); update_system_thumbs(); }
function start_update() { // The updater html_header("Coppermine - Upgrade"); html_logo(); test_fs(); if ($errors != '') { html_prereq_errors($errors); } else { test_sql_connection(); if ($errors == '') { update_tables(); update_system_thumbs(); } else { html_error($errors); } if ($errors == '') { html_install_success($notes); session_destroy(); } else { html_error($errors); } } html_footer(); }
} } echo "</table>"; } // --------------------------------- MAIN CODE ----------------------------- // // The defaults values $table_prefix = $_POST['table_prefix']; $DFLT = array('cfg_d' => 'include', 'cfg_f' => 'include/config.inc.php', 'alb_d' => 'albums', 'upl_d' => 'userpics'); $errors = ''; $notes = ''; // The installer html_header("Coppermine - Upgrade"); html_logo(); test_fs(); if ($errors != '') { html_prereq_errors($errors); } else { test_sql_connection(); if ($errors == '') { update_tables(); update_system_thumbs(); } else { html_error($errors); } if ($errors == '') { html_install_success($notes); } else { html_error($errors); } } html_footer();