if ($edit_filetimestamp == 1) { $file_timestamp_day = intval(hacklogdm_admin::post('file_timestamp_day')); $file_timestamp_month = intval(hacklogdm_admin::post('file_timestamp_month')); $file_timestamp_year = intval(hacklogdm_admin::post('file_timestamp_year')); $file_timestamp_hour = intval(hacklogdm_admin::post('file_timestamp_hour')); $file_timestamp_minute = intval(hacklogdm_admin::post('file_timestamp_minute')); $file_timestamp_second = intval(hacklogdm_admin::post('file_timestamp_second')); $timestamp_sql = ", file_date = '" . gmmktime($file_timestamp_hour, $file_timestamp_minute, $file_timestamp_second, $file_timestamp_month, $file_timestamp_day, $file_timestamp_year) . "'"; } $file_permission = intval(hacklogdm_admin::post('file_permission')); $file_updated_date = current_time('timestamp'); $editfile = $wpdb->query("UPDATE {$wpdb->downloads} SET {$file_sql} file_name = '{$file_name}', file_des = '{$file_des}', file_hash = '{$file_hash}', {$file_size_sql} file_permission = {$file_permission}, file_updated_date = '{$file_updated_date}' {$timestamp_sql} {$hits_sql} WHERE file_id = {$file_id};"); if (!$editfile) { hacklogdm_admin::add_error(sprintf(__('Error In Editing File \'%s (%s)\'', hacklogdm::textdomain), $file_name, $file)); } else { hacklogdm_admin::add_message(sprintf(__('File \'%s (%s)\' Edited Successfully', hacklogdm::textdomain), $file_name, $file)); } } break; /************************************************************************************************* * action delete **************************************************************************************************/ /************************************************************************************************* * action delete **************************************************************************************************/ case __('Delete File', hacklogdm::textdomain): hacklogdm_admin::delete_file(); break; } } // Determines Which Mode It Is
$update_download_queries[] = update_option('download_display_type', $download_display_type); $update_download_queries[] = update_option('download_template_custom_css', $download_template_custom_css); $update_download_queries[] = update_option('download_template_popup', $download_template_popup); $update_download_queries[] = update_option('download_template_embedded', $download_template_embedded); $update_download_text[] = __('Download Path', hacklogdm::textdomain); $update_download_text[] = __('Download Path URL', hacklogdm::textdomain); $update_download_text[] = __('Download Options(Use filename or Not、Download slug、Use Nice Permalink or Not、Time Limit、Hash Function、Check HTTP Referer)', hacklogdm::textdomain); $update_download_text[] = __('Download Method', hacklogdm::textdomain); $update_download_text[] = __('Download Display Type', hacklogdm::textdomain); $update_download_text[] = __('Download Custom CSS', hacklogdm::textdomain); $update_download_text[] = __('Download Popup Template', hacklogdm::textdomain); $update_download_text[] = __('Download Embedded Template', hacklogdm::textdomain); $i = 0; foreach ($update_download_queries as $update_download_query) { if ($update_download_query) { hacklogdm_admin::add_message($update_download_text[$i] . ' ' . __('Updated', hacklogdm::textdomain)); } $i++; } } ### Get Download Options $download_options = hacklogdm_admin::get_opt('download_options'); $download_template_custom_css = hacklogdm_admin::get_opt('download_template_custom_css'); ### Get File Download Method $download_method = intval(hacklogdm_admin::get_opt('download_method')); //display style 0 :embedded 1: popup $download_display_type = intval(hacklogdm_admin::get_opt('download_display_type')); $download_template_popup = hacklogdm_admin::get_opt('download_template_popup'); $download_template_embedded = hacklogdm_admin::get_opt('download_template_embedded'); hacklogdm_admin::show_message_or_error(); ?>