Esempio n. 1
0
function wpshop_ajax_db_repair_tool()
{
    $version_id = isset($_POST['version_id']) ? wpshop_tools::varSanitizer($_POST['version_id']) : null;
    echo wpshop_install::alter_db_structure_on_update($version_id);
    die;
}
 public static function wpshop_options_validate_wpshop_shop_type($input)
 {
     global $current_db_version;
     $current_installation_step = get_option('wps-installation-current-step', 1);
     if (WPSINSTALLER_STEPS_COUNT <= $current_installation_step || !empty($current_db_version) && !empty($current_db_version['db_version']) && 51 < $current_db_version['db_version']) {
         $current_db_version['installation_state'] = 'completed';
         update_option('wpshop_db_options', $current_db_version);
         if ($input == 'sale') {
             wpshop_install::wpshop_insert_default_pages($input);
         }
     }
     return $input;
 }