logThis('ERROR: no manifest.php file found!'); unlinkTempFiles(); $out = "<b><span class='error'>{$mod_strings['ERR_UW_NO_MANIFEST']}</span></b><br />"; break; } $_SESSION['install_file'] = clean_path($tempFile); logThis('zip file moved to [' . $_SESSION['install_file'] . ']'); //rrs serialize manifest for saving in the db $serial_manifest = array(); $serial_manifest['manifest'] = isset($manifest) ? $manifest : ''; $serial_manifest['installdefs'] = isset($installdefs) ? $installdefs : ''; $serial_manifest['upgrade_manifest'] = isset($upgrade_manifest) ? $upgrade_manifest : ''; $_SESSION['install_manifest'] = base64_encode(serialize($serial_manifest)); } if (!empty($tempFile)) { upgradeUWFiles($tempFile); //set the upgrade progress status. actually it should be set when a file is uploaded set_upgrade_progress('upload', 'done'); } break; // end 'upload' // end 'upload' case 'delete': logThis('running delete'); if (!isset($_REQUEST['install_file']) || $_REQUEST['install_file'] == "") { logThis('ERROR: trying to delete non-existent file: [' . $_REQUEST['install_file'] . ']'); $error = $mod_strings['ERR_UW_NO_FILE_UPLOADED']; } // delete file in upgrades/patch $delete_me = urldecode($_REQUEST['install_file']); if (@unlink($delete_me)) {
logThis('ERROR: no manifest.php file found!'); unlinkUWTempFiles(); $out = "<b><span class='error'>{$mod_strings['ERR_UW_NO_MANIFEST']}</span></b><br />"; break; } $_SESSION['install_file'] = basename($tempFile); logThis('zip file moved to [' . $_SESSION['install_file'] . ']'); //rrs serialize manifest for saving in the db $serial_manifest = array(); $serial_manifest['manifest'] = isset($manifest) ? $manifest : ''; $serial_manifest['installdefs'] = isset($installdefs) ? $installdefs : ''; $serial_manifest['upgrade_manifest'] = isset($upgrade_manifest) ? $upgrade_manifest : ''; $_SESSION['install_manifest'] = base64_encode(serialize($serial_manifest)); } if (!empty($tempFile)) { upgradeUWFiles($target_path); //set the upgrade progress status. actually it should be set when a file is uploaded set_upgrade_progress('upload', 'done'); } break; // end 'upload' // end 'upload' case 'delete': logThis('running delete'); if (!isset($_REQUEST['install_file']) || $_REQUEST['install_file'] == "") { logThis('ERROR: trying to delete non-existent file: [' . $_REQUEST['install_file'] . ']'); $error = $mod_strings['ERR_UW_NO_FILE_UPLOADED']; } // delete file in upgrades/patch $delete_me = 'upload://upgrades/patch/' . basename(urldecode($_REQUEST['install_file'])); if (@unlink($delete_me)) {