open($_POST['archive_name']) === TRUE) { DUPX_Log::info("\n>>> START EXTRACTION:"); if (!$zip->extractTo($target)) { DUPX_Log::error(ERR_ZIPEXTRACTION); } $log = print_r($zip, true); //Keep original timestamp on the file if ($_POST['archive_filetime'] == 'original') { $log .= "File timestamp is 'Original' mode.\n"; for ($idx = 0; $s = $zip->statIndex($idx); $idx++) { touch($target.DIRECTORY_SEPARATOR.$s['name'], $s['mtime']); } } else { $now = date("Y-m-d H:i:s"); $log .= "File timestamp is 'Current' mode: {$now}\n"; } $close_response = $zip->close(); $log .= "<<< EXTRACTION COMPLETE: " . var_export($close_response, true); DUPX_Log::info($log); } else { DUPX_Log::error(ERR_ZIPOPEN); } } //=============================== //RESET SERVER CONFIG FILES //=============================== if ($_POST['retain_config']) { DUPX_Log::info("\nNOTICE: Manual update of permalinks required see: Admin > Settings > Permalinks > Click Save Changes"); DUPX_Log::info("Retaining the original htaccess, user.ini or web.config files may cause issues with the setup of this site."); DUPX_Log::info("If you run into issues during or after the install process please uncheck the 'Config Files' checkbox labeled:"); DUPX_Log::info("'Retain original .htaccess, .user.ini and web.config' from Step 1 and re-run the installer. Backups of the"); DUPX_Log::info("orginal config files will be made and can be merged per required directive."); } else { DUPX_ServerConfig::reset(); } //FINAL RESULTS $ajax1_end = DUPX_U::getMicrotime(); $ajax1_sum = DUPX_U::elapsedTime($ajax1_end, $ajax1_start); DUPX_Log::info("\nSTEP-1 COMPLETE @ " . @date('h:i:s') . " - RUNTIME: {$ajax1_sum}"); $JSON['pass'] = 1; echo json_encode($JSON); error_reporting($ajax1_error_level); die(''); ?>