__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle 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 Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This debug script is used during zip support development.
*
* @package core_files
* @copyright 2012 Petr Skoda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', true);
require(__DIR__.'/../../../../config.php');
require_once($CFG->libdir.'/clilib.php');
$help =
"Create sample zip file for testing
Example:
\$php zip_create_test_file.php test.zip
";
if (count($_SERVER['argv']) != 2 or file_exists($_SERVER['argv'][1])) {
echo $help;
exit(0);
}
$archive = $_SERVER['argv'][1];
$packer = get_file_packer('application/zip');
$file = __DIR__.'/test.txt';
$files = array(
'test.test' => $file,
'testíček.txt' => $file,
'Prüfung.txt' => $file,
'测试.txt' => $file,
'試験.txt' => $file,
'Žluťoučký/Koníček.txt' => $file,
);
$packer->archive_to_pathname($files, $archive);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| empty.zip | File | 22 B | 0777 |
|
| passwordis1.zip | File | 232 B | 0777 |
|
| test.tgz | File | 152 B | 0777 |
|
| test.txt | File | 4 B | 0777 |
|
| test_7zip_927.zip | File | 1020 B | 0777 |
|
| test_infozip_3.zip | File | 1.13 KB | 0777 |
|
| test_moodle.zip | File | 678 B | 0777 |
|
| test_moodle_22.zip | File | 678 B | 0777 |
|
| test_osx_1074.zip | File | 1.07 KB | 0777 |
|
| test_osx_compress.zip | File | 3.67 KB | 0777 |
|
| test_tc_8.zip | File | 782 B | 0777 |
|
| test_thumbsdb.zip | File | 2.72 KB | 0777 |
|
| test_win8_cz.zip | File | 346 B | 0777 |
|
| test_win8_de.zip | File | 222 B | 0777 |
|
| test_winrar_421.zip | File | 1.27 KB | 0777 |
|
| test_winzip_165.zip | File | 1.19 KB | 0777 |
|
| testimage.jpg | File | 27.96 KB | 0777 |
|
| testimage.png | File | 4.13 KB | 0777 |
|
| testimage.svg | File | 778 B | 0777 |
|
| testimage_basic.svg | File | 458 B | 0777 |
|
| testimage_error.svg | File | 765 B | 0777 |
|
| testimage_rotated.jpg | File | 116.09 KB | 0777 |
|
| testimage_viewbox.svg | File | 800 B | 0777 |
|
| testimage_width_height.svg | File | 807 B | 0777 |
|
| zip_create_test_file.php | File | 1.54 KB | 0777 |
|
| zip_info.php | File | 9.29 KB | 0777 |
|