//if we're upgrading from v3.2 $post_install_error .= do_delta_update_3_2_to_3_3($dbh); $post_install_error .= do_delta_update_3_3_to_3_4($dbh); } else { if ($current_machform_version === '3.3') { //if we're upgrading from v3.3 $post_install_error .= do_delta_update_3_3_to_3_4($dbh); } } } } if (empty($post_install_error)) { $installation_success = true; //update ap_settings table with the latest version $settings['machform_version'] = NEW_MACHFORM_VERSION; mf_ap_settings_update($settings, $dbh); //clear the session, so that the user need to re-login $_SESSION = array(); } else { $installation_has_error = true; } } //end !is_invalid_admin_email & !is_invalid_license_key } //end run_upgrade ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>MachForm Upgrade Script</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php /******************************************************************************** MachForm Copyright 2007-2012 Appnitro Software. This code cannot be redistributed without permission from http://www.appnitro.com/ More info at: http://www.appnitro.com/ ********************************************************************************/ require 'includes/init.php'; require 'config.php'; require 'includes/db-core.php'; require 'includes/helper-functions.php'; require 'includes/check-session.php'; $dbh = mf_connect_db(); mf_ap_settings_update($data, $dbh); echo '{"status" : "ok"}';