/** * Copyright (C) 2014-2020 ServMask Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ */ if ( ! defined( 'ABSPATH' ) ) { die( 'Kangaroos cannot jump here' ); } class Ai1wm_Export_Themes { public static function execute( $params ) { // Set archive bytes offset if ( isset( $params['archive_bytes_offset'] ) ) { $archive_bytes_offset = (int) $params['archive_bytes_offset']; } else { $archive_bytes_offset = ai1wm_archive_bytes( $params ); } // Set file bytes offset if ( isset( $params['file_bytes_offset'] ) ) { $file_bytes_offset = (int) $params['file_bytes_offset']; } else { $file_bytes_offset = 0; } // Set themes bytes offset if ( isset( $params['themes_bytes_offset'] ) ) { $themes_bytes_offset = (int) $params['themes_bytes_offset']; } else { $themes_bytes_offset = 0; } // Get processed files size if ( isset( $params['processed_files_size'] ) ) { $processed_files_size = (int) $params['processed_files_size']; } else { $processed_files_size = 0; } // Get total themes files size if ( isset( $params['total_themes_files_size'] ) ) { $total_themes_files_size = (int) $params['total_themes_files_size']; } else { $total_themes_files_size = 1; } // Get total themes files count if ( isset( $params['total_themes_files_count'] ) ) { $total_themes_files_count = (int) $params['total_themes_files_count']; } else { $total_themes_files_count = 1; } // What percent of files have we processed? $progress = (int) min( ( $processed_files_size / $total_themes_files_size ) * 100, 100 ); // Set progress Ai1wm_Status::info( sprintf( __( 'Archiving %d theme files...
%d%% complete', AI1WM_PLUGIN_NAME ), $total_themes_files_count, $progress ) ); // Flag to hold if file data has been processed $completed = true; // Start time $start = microtime( true ); // Get themes list file $themes_list = ai1wm_open( ai1wm_themes_list_path( $params ), 'r' ); // Set the file pointer at the current index if ( fseek( $themes_list, $themes_bytes_offset ) !== -1 ) { // Open the archive file for writing $archive = new Ai1wm_Compressor( ai1wm_archive_path( $params ) ); // Set the file pointer to the one that we have saved $archive->set_file_pointer( $archive_bytes_offset ); // Loop over files while ( list( $file_abspath, $file_relpath, $file_size, $file_mtime ) = fgetcsv( $themes_list ) ) { $file_bytes_written = 0; // Add file to archive if ( ( $completed = $archive->add_file( $file_abspath, 'themes' . DIRECTORY_SEPARATOR . $file_relpath, $file_bytes_written, $file_bytes_offset ) ) ) { $file_bytes_offset = 0; // Get themes bytes offset $themes_bytes_offset = ftell( $themes_list ); } // Increment processed files size $processed_files_size += $file_bytes_written; // What percent of files have we processed? $progress = (int) min( ( $processed_files_size / $total_themes_files_size ) * 100, 100 ); // Set progress Ai1wm_Status::info( sprintf( __( 'Archiving %d theme files...
%d%% complete', AI1WM_PLUGIN_NAME ), $total_themes_files_count, $progress ) ); // More than 10 seconds have passed, break and do another request if ( ( $timeout = apply_filters( 'ai1wm_completed_timeout', 10 ) ) ) { if ( ( microtime( true ) - $start ) > $timeout ) { $completed = false; break; } } } // Get archive bytes offset $archive_bytes_offset = $archive->get_file_pointer(); // Truncate the archive file $archive->truncate(); // Close the archive file $archive->close(); } // End of the themes list? if ( feof( $themes_list ) ) { // Unset archive bytes offset unset( $params['archive_bytes_offset'] ); // Unset file bytes offset unset( $params['file_bytes_offset'] ); // Unset themes bytes offset unset( $params['themes_bytes_offset'] ); // Unset processed files size unset( $params['processed_files_size'] ); // Unset total themes files size unset( $params['total_themes_files_size'] ); // Unset total themes files count unset( $params['total_themes_files_count'] ); // Unset completed flag unset( $params['completed'] ); } else { // Set archive bytes offset $params['archive_bytes_offset'] = $archive_bytes_offset; // Set file bytes offset $params['file_bytes_offset'] = $file_bytes_offset; // Set themes bytes offset $params['themes_bytes_offset'] = $themes_bytes_offset; // Set processed files size $params['processed_files_size'] = $processed_files_size; // Set total themes files size $params['total_themes_files_size'] = $total_themes_files_size; // Set total themes files count $params['total_themes_files_count'] = $total_themes_files_count; // Set completed flag $params['completed'] = $completed; } // Close the themes list file ai1wm_close( $themes_list ); return $params; } } Архивы 40 стр/мин (А4) - PC Market https://pcmarket.uz/skorchb/40-str-min-a4/ Компьютерная техника в Узбекистане Sat, 30 Mar 2024 10:15:35 +0000 ru-RU hourly 1 https://wordpress.org/?v=6.4.4 212930935 Pantum BP5100DW https://pcmarket.uz/product/pantum-bp5100dw/ https://pcmarket.uz/product/pantum-bp5100dw/#respond Wed, 11 Oct 2023 17:08:13 +0000 https://pcmarket.uz/?post_type=product&p=21265 Цветность печати - чёрно-белая
Функции устройства - принтер
Технология печати - лазерная печать
Максимальный формат - A4
Двусторонняя печать - да
Артикул - BP5100DW

Сообщение Pantum BP5100DW появились сначала на PC Market.

]]>
https://pcmarket.uz/product/pantum-bp5100dw/feed/ 0 21265
Pantum BP5100DN https://pcmarket.uz/product/pantum-bp5100dn/ https://pcmarket.uz/product/pantum-bp5100dn/#respond Wed, 11 Oct 2023 15:10:03 +0000 https://pcmarket.uz/?post_type=product&p=21260 Цветность печати - чёрно-белая
Функции устройства - принтер
Технология печати - лазерная печать
Максимальный формат - A4
Двусторонняя печать - да
Артикул - BP5100DN

Сообщение Pantum BP5100DN появились сначала на PC Market.

]]>
https://pcmarket.uz/product/pantum-bp5100dn/feed/ 0 21260
Pantum BM5100FDW https://pcmarket.uz/product/pantum-bm5100fdw/ https://pcmarket.uz/product/pantum-bm5100fdw/#respond Tue, 10 Oct 2023 19:07:15 +0000 https://pcmarket.uz/?post_type=product&p=21208 Цветность печати - чёрно-белая
Функции устройства - копир, принтер, сканер, факс
Технология печати - лазерная печать
Максимальный формат - A4
Двусторонняя печать - да
Артикул - BM5100FDW

Сообщение Pantum BM5100FDW появились сначала на PC Market.

]]>
https://pcmarket.uz/product/pantum-bm5100fdw/feed/ 0 21208
Pantum BM5100FDN https://pcmarket.uz/product/pantum-bm5100fdn/ https://pcmarket.uz/product/pantum-bm5100fdn/#respond Tue, 10 Oct 2023 18:57:59 +0000 https://pcmarket.uz/?post_type=product&p=21203 Цветность печати - чёрно-белая
Функции устройства - копир, принтер, сканер, факс
Технология печати - лазерная печать
Максимальный формат - A4
Двусторонняя печать - да
Артикул - BM5100FDN

Сообщение Pantum BM5100FDN появились сначала на PC Market.

]]>
https://pcmarket.uz/product/pantum-bm5100fdn/feed/ 0 21203
Pantum BM5100ADW https://pcmarket.uz/product/pantum-bm5100adw/ https://pcmarket.uz/product/pantum-bm5100adw/#respond Tue, 10 Oct 2023 18:51:20 +0000 https://pcmarket.uz/?post_type=product&p=21198 Цветность печати - чёрно-белая
Функции устройства - копир, принтер, сканер
Технология печати - лазерная печать
Максимальный формат - A4
Двусторонняя печать - да
Артикул - BM5100ADW

Сообщение Pantum BM5100ADW появились сначала на PC Market.

]]>
https://pcmarket.uz/product/pantum-bm5100adw/feed/ 0 21198
Pantum BM5100ADN https://pcmarket.uz/product/pantum-bm5100adn/ https://pcmarket.uz/product/pantum-bm5100adn/#respond Tue, 10 Oct 2023 18:39:09 +0000 https://pcmarket.uz/?post_type=product&p=21193 Цветность печати - чёрно-белая
Функции устройства - копир, принтер, сканер
Технология печати - лазерная печать
Максимальный формат - A4
Двусторонняя печать - да
Артикул - BM5100ADN

Сообщение Pantum BM5100ADN появились сначала на PC Market.

]]>
https://pcmarket.uz/product/pantum-bm5100adn/feed/ 0 21193
HP LaserJet Pro MFP 4103dw https://pcmarket.uz/product/hp-laserjet-pro-mfp-4103dw/ https://pcmarket.uz/product/hp-laserjet-pro-mfp-4103dw/#respond Thu, 11 May 2023 13:34:40 +0000 https://pcmarket.uz/?post_type=product&p=18629 Цветность печати - черно-белая
Функции устройства - Принтер, Сканер, Копир
Технология печати - лазерная
Максимальный формат - А4
Двусторонняя печать - есть
Артикул - 2Z627A
Цена 5 980 000 сум

Сообщение HP LaserJet Pro MFP 4103dw появились сначала на PC Market.

]]>
https://pcmarket.uz/product/hp-laserjet-pro-mfp-4103dw/feed/ 0 18629
ECOSYS M2040dn https://pcmarket.uz/product/ecosys-m2040dn/ https://pcmarket.uz/product/ecosys-m2040dn/#respond Tue, 30 Nov 2021 18:16:44 +0000 http://pcmarket.uz/?post_type=product&p=9963 Цветность печати - черно-белая
Функции устройства - принтер , копир , сканер
Технология печати - лазерная
Максимальный формат - А4
Двусторонняя печать - да
Цена: 7 000 000 сум

Сообщение ECOSYS M2040dn появились сначала на PC Market.

]]>
https://pcmarket.uz/product/ecosys-m2040dn/feed/ 0 9963
ECOSYS M2540dn https://pcmarket.uz/product/ecosys-m2540dn/ https://pcmarket.uz/product/ecosys-m2540dn/#respond Tue, 30 Nov 2021 18:10:43 +0000 http://pcmarket.uz/?post_type=product&p=9961 Цветность печати - черно-белая
Функции устройства - принтер , факс , копир , сканер
Технология печати - лазерная
Максимальный формат - А4
Двусторонняя печать - да
Цена: 7 250 000 сум

Сообщение ECOSYS M2540dn появились сначала на PC Market.

]]>
https://pcmarket.uz/product/ecosys-m2540dn/feed/ 0 9961
ECOSYS P4140DN https://pcmarket.uz/product/ecosys-p4140dn/ https://pcmarket.uz/product/ecosys-p4140dn/#respond Tue, 30 Nov 2021 18:03:20 +0000 http://pcmarket.uz/?post_type=product&p=9959 Цветность печати - черно-белая
Функции устройства - Принтер
Технология печати - лазерная
Максимальный формат - А3
Двусторонняя печать - да
Цена: 19 320 000 сум

Сообщение ECOSYS P4140DN появились сначала на PC Market.

]]>
https://pcmarket.uz/product/ecosys-p4140dn/feed/ 0 9959
CANON imageRUNNER ADVANCE 5240i https://pcmarket.uz/product/canon-imagerunner-advance-5240i/ https://pcmarket.uz/product/canon-imagerunner-advance-5240i/#respond Sun, 22 Aug 2021 10:49:39 +0000 http://pcmarket.uz/?post_type=product&p=8194 Цветность печати - цветная
Функции устройства - Принтер, Сканер, Копир
Технология печати - лазерная
Максимальный формат - А3
Двусторонняя печать - есть

Сообщение CANON imageRUNNER ADVANCE 5240i появились сначала на PC Market.

]]>
https://pcmarket.uz/product/canon-imagerunner-advance-5240i/feed/ 0 8194