本文整理汇总了PHP中unzip函数的典型用法代码示例。如果您正苦于以下问题:PHP unzip函数的具体用法?PHP unzip怎么用?PHP unzip使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了unzip函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: unzipFile
function unzipFile($filename, $filenameRail, $feedDirectory)
{
$results = unzip($filename, $dest_dir = false, $create_zip_name_dir = true, $overwrite = true);
$results2 = unzip($filenameRail, $dest_dir = false, $create_zip_name_dir = true, $overwrite = true);
$filenameRailFolder = $feedDirectory . "/gtfs/" . basename($filenameRail, ".zip");
$test = copy_directory($filenameRailFolder, $feedDirectory . "/" . basename($filenameRail, ".zip"));
}
开发者ID:GrandMasterKev,项目名称:GTFS-Import-Basic,代码行数:7,代码来源:gtfs.library.php
示例2: install
function install()
{
if (!isset($_GET['step'])) {
hello_screen();
} else {
$step = $_GET['step'];
switch ($step) {
case 'test':
testserver();
break;
case 'unzip':
unzip();
break;
case 'database':
dbconfig();
break;
case 'admin':
adminconf();
break;
case 'final':
finalstep();
break;
default:
hello_screen();
}
}
}
开发者ID:antiherro,项目名称:smm,代码行数:27,代码来源:install.php
示例3: getOSZ
function getOSZ($id)
{
$osz = downloadOSZ($id);
if ($osz === true) {
unzip(ROOT . '/ddl/' . $id . '.osz', ROOT . '/ddl/' . $id . '/');
} else {
echo $osz . 'sec';
}
}
开发者ID:hjrhjr,项目名称:osu-web,代码行数:9,代码来源:download.php
示例4: uploadSkin
function uploadSkin()
{
// Check for upload error
if ($_FILES["uploadSkin"]["error"]) {
$this->esoTalk->message("invalidSkin");
return false;
}
// Move the uploaded file
move_uploaded_file($_FILES["uploadSkin"]["tmp_name"], "skins/{$_FILES["uploadSkin"]["name"]}");
// Upzip it
if (!($files = unzip("skins/{$_FILES["uploadSkin"]["name"]}", "skins/"))) {
$this->esoTalk->message("invalidSkin");
} else {
$directories = 0;
$infoFound = false;
$skinFound = false;
foreach ($files as $k => $file) {
if (substr($file["name"], 0, 9) == "__MACOSX/" or substr($file["name"], -9) == ".DS_Store") {
unset($files[$k]);
continue;
}
if ($file["directory"]) {
$directories++;
}
if (substr($file["name"], -8) == "skin.php") {
$skinFound = true;
}
}
// If we found a skin.php, info.php, and a base directory, write the files
if ($skinFound and $directories == 1) {
$error = false;
foreach ($files as $k => $file) {
if ($file["directory"] and !is_dir("skins/{$file["name"]}")) {
mkdir("skins/{$file["name"]}");
} elseif (!$file["directory"]) {
if (file_exists("skins/{$file["name"]}") and !is_writeable("skins/{$file["name"]}")) {
$this->esoTalk->message("notWritable", false, "skins/{$file["name"]}");
$error = true;
break;
}
$handle = fopen("skins/{$file["name"]}", "w");
chmod("skins/{$file["name"]}", 0777);
fwrite($handle, $file["content"]);
fclose($handle);
}
}
if (!$error) {
$this->esoTalk->message("skinAdded");
}
} else {
$this->esoTalk->message("invalidSkin");
}
}
unlink("skins/{$_FILES["uploadSkin"]["name"]}");
}
开发者ID:bk-amahi,项目名称:esoTalk,代码行数:55,代码来源:skins.controller.php
示例5: setOpenZipFile
function setOpenZipFile($vars_file, $vars_code)
{
$i = 0;
$vars_array = array();
$zip = @zip_open($vars_file);
if ($zip) {
echo 'id;filename;filesize;md5' . "\n\r";
while ($zip_entry = zip_read($zip)) {
if (zip_entry_filesize($zip_entry) > 0) {
$i++;
$vars_array = unzip($vars_file, $i);
echo $i . ';' . zip_entry_name($zip_entry) . ';' . zip_entry_filesize($zip_entry) . ';' . md5($vars_array[1]) . "\n\r";
}
}
zip_close($zip);
}
}
开发者ID:rkild511,项目名称:pb-source-repositery,代码行数:17,代码来源:thothbox.php
示例6: testunzip
public function testunzip()
{
//execute the method and test if it returns true and verify the if unzipped files exist
$cache_dir = rtrim($GLOBALS['sugar_config']['cache_dir'], '/\\');
$files_list = array('config.php', 'config_override.php');
$file = $cache_dir . '/zipTest.zip';
//creata a zip file first, to unzip
if (!file_exists($file)) {
zip_files_list($file, $files_list);
}
$result = unzip($file, $cache_dir);
$this->assertTrue($result);
$this->assertFileExists($cache_dir . '/config.php');
$this->assertFileExists($cache_dir . '/config_override.php');
unlink($cache_dir . '/config.php');
unlink($cache_dir . '/config_override.php');
}
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:17,代码来源:phpZipUtilsTest.php
示例7: md5_change
require CLASS_DIR . 'options/md5change.php';
md5_change();
break;
case 'md5_change_go':
if (!empty($options['disable_md5_change'])) {
break;
}
require CLASS_DIR . 'options/md5change.php';
md5_change_go();
break;
case 'unzip':
if (!empty($options['disable_unzip'])) {
break;
}
require CLASS_DIR . 'options/unzip.php';
unzip();
break;
case 'unzip_go':
if (!empty($options['disable_unzip'])) {
break;
}
require CLASS_DIR . 'options/unzip.php';
unzip_go();
break;
case 'split':
if (!empty($options['disable_split'])) {
break;
}
require CLASS_DIR . 'options/split.php';
rl_split();
break;
开发者ID:mewtutorial,项目名称:RapidTube,代码行数:31,代码来源:options.php
示例8: testExtractFailsWhenExtractDirectoryDoesNotExist
public function testExtractFailsWhenExtractDirectoryDoesNotExist()
{
$this->assertFalse(unzip($this->testdir . '/testarchive.zip', $this->testdir . '/testarchiveoutputnothere'));
}
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:4,代码来源:ZipTest.php
示例9: restore_backup
public function restore_backup()
{
//Upload File
$file_upload = $this->do_upload();
$filename = $file_upload['file_name'];
$filname_without_ext = pathinfo($filename, PATHINFO_FILENAME);
if (isset($file_upload['error'])) {
$data['error'] = $file_upload['error'];
$this->load->view('templates/header');
$this->load->view('templates/menu');
$this->load->view('settings/backup', $data);
$this->load->view('templates/footer');
} elseif ($file_upload['file_ext'] != '.zip') {
$data['error'] = "The file you are trying to upload is not a .zip file. Please try again.";
$this->load->view('templates/header');
$this->load->view('templates/menu');
$this->load->view('settings/backup', $data);
$this->load->view('templates/footer');
} else {
$data['file_upload'] = $file_upload;
//Unzip
$full_path = $file_upload['full_path'];
$file_path = $file_upload['file_path'];
$raw_name = $file_upload['raw_name'];
$return_code = unzip($full_path, $file_path);
if ($return_code === TRUE) {
//execute sql file
$sql_file_name = $file_path . $raw_name . '.sql';
$file_content = file_get_contents($sql_file_name);
$query_list = explode(";", $file_content);
foreach ($query_list as $query) {
//Remove Comments like # # Commment #
$pos1 = strpos($query, "#\n# ");
if ($pos1 !== FALSE) {
$pos2 = strpos($query, "\n#", $pos1 + 3);
$comment = substr($query, $pos1, $pos2 - $pos1) . "<br/>";
$query = substr($query, $pos2 + 2);
}
$this->db->query($query);
}
} else {
$data['error'] = $return_code;
}
$this->load->view('templates/header');
$this->load->view('templates/menu');
$this->load->view('settings/backup', $data);
$this->load->view('templates/footer');
}
}
开发者ID:Anuragigts,项目名称:25_clinic,代码行数:49,代码来源:Settings.php
示例10: internalToFilesystem
}
// soe stripped out all the name.
$targetFile = $targetPath . '/' . internalToFilesystem($seoname);
if (file_exists($targetFile)) {
$append = '_' . time();
$seoname = stripSuffix($seoname) . $append . '.' . getSuffix($seoname);
$targetFile = $targetPath . '/' . internalToFilesystem($seoname);
}
if (move_uploaded_file($tempFile, $targetFile)) {
@chmod($targetFile, 0666 & CHMOD_VALUE);
$album = new Album($gallery, $folder);
$image = newImage($album, $seoname);
$image->setOwner($_zp_current_admin_obj->getUser());
if ($name != $seoname && $image->getTitle() == substr($seoname, 0, strrpos($seoname, '.'))) {
$image->setTitle(substr($name, 0, strrpos($name, '.')));
}
$image->save();
} else {
$error = UPLOAD_ERR_NO_FILE;
}
} else {
if (is_zip($name)) {
unzip($tempFile, $targetPath);
}
}
}
}
}
}
$file = $_FILES['file'];
echo '{"name":"' . $file['name'] . '","type":"' . $file['type'] . '","size":"' . $file['size'] . '","error":' . $error . '}';
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:uploader.php
示例11: time
$append = '_' . time();
$soename = stripSuffix($soename) . $append . '.' . getSuffix($soename);
$uploadfile = $targetPath . '/' . internalToFilesystem($soename);
}
move_uploaded_file($tmp_name, $uploadfile);
@chmod($uploadfile, FILE_MOD);
$image = newImage($album, $soename);
$image->setOwner($_zp_current_admin_obj->getUser());
if ($name != $soename) {
$image->setTitle(stripSuffix($name));
}
$image->save();
}
} else {
if (is_zip($name)) {
unzip($tmp_name, $targetPath);
} else {
$error = UPLOAD_ERR_EXTENSION;
// invalid file uploaded
break;
}
}
}
} else {
break;
}
}
if ($error == UPLOAD_ERR_OK && ($filecount || isset($_POST['newalbum']))) {
if ($album->albumSubRights() & MANAGED_OBJECT_RIGHTS_EDIT) {
// he has edit rights, allow new album creation
header('Location: ' . FULLWEBPATH . '/' . ZENFOLDER . '/admin-edit.php?page=edit&album=' . pathurlencode($folder) . '&uploaded&subpage=1&tab=imageinfo&albumimagesort=id_desc');
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:uploader.php
示例12: rmdir_recursive
$_SESSION['unzip_dir'] = $unzip_dir;
$_SESSION['install_file'] = $install_file;
$_SESSION['zip_from_dir'] = $zip_from_dir;
if (is_dir($unzip_dir . '/scripts')) {
rmdir_recursive($unzip_dir . '/scripts');
}
if (is_file($unzip_dir . '/manifest.php')) {
rmdir_recursive($unzip_dir . '/manifest.php');
}
mkdir_recursive($unzip_dir);
if (!is_dir($unzip_dir)) {
echo "\n{$unzip_dir} is not an available directory\nFAILURE\n";
fwrite(STDERR, "\n{$unzip_dir} is not an available directory\nFAILURE\n");
exit(1);
}
unzip($argv[1], $unzip_dir);
// mimic standard UW by copy patch zip to appropriate dir
copy($argv[1], $install_file);
//// END UPGRADE PREP
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//// UPGRADE UPGRADEWIZARD
$zipBasePath = "{$unzip_dir}/{$zip_from_dir}";
$uwFiles = findAllFiles("{$zipBasePath}/modules/UpgradeWizard", array());
$destFiles = array();
foreach ($uwFiles as $uwFile) {
$destFile = str_replace($zipBasePath . "/", '', $uwFile);
copy($uwFile, $destFile);
}
require_once 'modules/UpgradeWizard/uw_utils.php';
// must upgrade UW first
开发者ID:vsanth,项目名称:dynamic-crm,代码行数:31,代码来源:silentUpgrade_step1.php
示例13: mk_temp_dir
$show_files = true;
if (empty($unzip_dir)) {
$unzip_dir = mk_temp_dir($base_tmp_upgrade_dir);
}
$zip_from_dir = ".";
$zip_to_dir = ".";
$zip_force_copy = array();
if (!$unzip_dir) {
logThis('Could not create a temporary directory using mk_temp_dir( $base_tmp_upgrade_dir )');
die($mod_strings['ERR_UW_NO_CREATE_TMP_DIR']);
}
//double check whether unzipped .
if (file_exists($unzip_dir . "/scripts") && file_exists($unzip_dir . "/manifest.php")) {
//already unzipped
} else {
unzip($install_file, $unzip_dir);
}
// assumption -- already validated manifest.php at time of upload
require_once "{$unzip_dir}/manifest.php";
if (isset($manifest['copy_files']['from_dir']) && $manifest['copy_files']['from_dir'] != "") {
$zip_from_dir = $manifest['copy_files']['from_dir'];
}
if (isset($manifest['copy_files']['to_dir']) && $manifest['copy_files']['to_dir'] != "") {
$zip_to_dir = $manifest['copy_files']['to_dir'];
}
if (isset($manifest['copy_files']['force_copy']) && $manifest['copy_files']['force_copy'] != "") {
$zip_force_copy = $manifest['copy_files']['force_copy'];
}
if (isset($manifest['version'])) {
$version = $manifest['version'];
}
开发者ID:razorinc,项目名称:sugarcrm-example,代码行数:31,代码来源:commit.php
示例14: performUninstall
function performUninstall($name)
{
$uh = new UpgradeHistory();
$uh->name = $name;
$uh->id_name = $name;
$found = $uh->checkForExisting($uh);
if ($found != null) {
global $sugar_config;
global $mod_strings;
global $current_language;
$base_upgrade_dir = sugar_cached("/upgrades");
$base_tmp_upgrade_dir = "{$base_upgrade_dir}/temp";
if (!isset($GLOBALS['mi_remove_tables'])) {
$GLOBALS['mi_remove_tables'] = true;
}
$unzip_dir = mk_temp_dir($base_tmp_upgrade_dir);
unzip($found->filename, $unzip_dir);
$mi = new ModuleInstaller();
$mi->silent = true;
$mi->uninstall("{$unzip_dir}");
$found->delete();
unlink(remove_file_extension($found->filename) . '-manifest.php');
unlink($found->filename);
}
}
开发者ID:netconstructor,项目名称:sugarcrm_dev,代码行数:25,代码来源:PackageManager.php
示例15: upgradeSugarCache
/**
* change from using the older SugarCache in 6.1 and below to the new one in 6.2
*/
function upgradeSugarCache($file)
{
global $sugar_config;
$cacheUploadUpgradesTemp = mk_temp_dir(sugar_cached('upgrades/temp'));
unzip($file, $cacheUploadUpgradesTemp);
if (!file_exists(clean_path("{$cacheUploadUpgradesTemp}/manifest.php"))) {
logThis("*** ERROR: no manifest file detected while bootstraping upgrade wizard files!");
return;
} else {
include clean_path("{$cacheUploadUpgradesTemp}/manifest.php");
}
$from_dir = "{$cacheUploadUpgradesTemp}/{$manifest['copy_files']['from_dir']}";
$allFiles = array();
if (file_exists("{$from_dir}/include/SugarCache")) {
$allFiles = findAllFiles("{$from_dir}/include/SugarCache", $allFiles);
}
if (file_exists("{$from_dir}/include/database")) {
$allFiles = findAllFiles("{$from_dir}/include/database", $allFiles);
}
if (file_exists("{$from_dir}/include/utils/external_cache.php")) {
$allFiles[] = "{$from_dir}/include/utils/external_cache.php";
}
if (file_exists("{$from_dir}/include/utils/sugar_file_utils.php")) {
$allFiles[] = "{$from_dir}/include/utils/sugar_file_utils.php";
}
if (file_exists("{$from_dir}/include/utils/sugar_file_utils.php")) {
$allFiles[] = "{$from_dir}/include/utils/sugar_file_utils.php";
}
foreach ($allFiles as $k => $file) {
$destFile = str_replace($from_dir . "/", "", $file);
if (!is_dir(dirname($destFile))) {
mkdir_recursive(dirname($destFile));
// make sure the directory exists
}
if (stristr($file, 'uw_main.tpl')) {
logThis('Skipping "' . $file . '" - file copy will during commit step.');
} else {
logThis('updating UpgradeWizard code: ' . $destFile);
copy_recursive($file, $destFile);
}
}
}
开发者ID:omusico,项目名称:sugar_work,代码行数:45,代码来源:uw_utils.php
示例16: fopen
}
if (zip_entry_open($zip, $zip_entry, 'r')) {
$fd = fopen($complete_name, 'w');
fwrite($fd, zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)));
fclose($fd);
zip_entry_close($zip_entry);
}
}
}
umask($old_umask);
zip_close($zip);
return true;
}
zip_close($zip);
}
if (!($err = @unzip(realpath("{$startpath}/" . $_REQUEST['file']), realpath($startpath)))) {
echo '<span class="warning"><b>' . $_lang['file_unzip_fail'] . ($err === 0 ? 'Missing zip library (php_zip.dll / zip.so)' : '') . '</b></span><br /><br />';
} else {
echo '<span class="success"><b>' . $_lang['file_unzip'] . '</b></span><br /><br />';
}
}
// End Unzip - Raymond
// New Folder & Delete Folder option - Raymond
if (is_writable($startpath)) {
// Delete Folder
if ($_REQUEST['mode'] == 'deletefolder') {
$folder = $_REQUEST['folderpath'];
if (!@rmdir($folder)) {
echo '<span class="warning"><b>' . $_lang['file_folder_not_deleted'] . '</b></span><br /><br />';
} else {
echo '<span class="success"><b>' . $_lang['file_folder_deleted'] . '</b></span><br /><br />';
开发者ID:hansek,项目名称:evolution,代码行数:31,代码来源:files.dynamic.php
示例17: _home
public function _home() {
global $config, $user, $cache, $upload;
if (_button()) {
$event_id = request_var('event_id', 0);
$filepath_1 = $config['events_path'] . 'tmp/';
$filepath_2 = $config['events_path'] . 'gallery/';
$filepath_3 = $filepath_1 . $event_id . '/';
$filepath_4 = $filepath_3 . 'thumbnails/';
$f = $upload->process($filepath_1, 'add_zip', 'zip');
if (!sizeof($upload->error) && $f !== false) {
@set_time_limit(0);
foreach ($f as $row) {
$zip_folder = unzip($filepath_1 . $row['filename'], $filepath_3, true);
_rm($filepath_1 . $row['filename']);
}
if (!empty($zip_folder)) {
$zip_folder = substr($zip_folder, 0, -1);
$fp = @opendir($filepath_3 . $zip_folder);
while ($file = @readdir($fp)) {
if (!is_level($file)) {
$ftp->ftp_rename($ftp->dfolder() . 'data/tmp/' . $event_id . '/' . $zip_folder . '/' . $file, $ftp->dfolder() . 'data/tmp/' . $event_id . '/' . $file);
//@rename($filepath_3 . $zip_folder . '/' . $file, $filepath_3 . $file);
}
}
@closedir($fp);
_rm($filepath_3 . $zip_folder);
}
if (!@file_exists($filepath_4)) {
a_mkdir($ftp->dfolder() . 'data/tmp/' . $event_id, 'thumbnails');
}
$footer_data = '';
$filerow_list = w();
$count_images = $img = $event_pre = 0;
$check_is = w();
if (@file_exists($filepath_2 . $event_id)) {
$fp = @opendir($filepath_2 . $event_id);
while ($filerow = @readdir($fp)) {
if (preg_match('#(\d+)\.(jpg)#is', $filerow)) {
$dis = getimagesize($filepath_2 . $event_id . $filerow);
$disd = intval(_decode('4e6a4177'));
if (($dis[0] > $dis[1] && $dis[0] < $disd) || ($dis[1] > $dis[0] && $dis[1] < $disd)) {
$check_is[] = $filerow;
continue;
}
$event_pre++;
}
}
@closedir($fp);
if (count($check_is)) {
echo lang('dis_invalid');
foreach ($check_is as $row) {
echo $row . '<br />';
}
exit;
}
$img = $event_pre;
}
$filerow_list = array_dir($filepath_3);
array_multisort($filerow_list, SORT_ASC, SORT_NUMERIC);
foreach ($filerow_list as $filerow) {
if (preg_match('#(\d+)\.(jpg)#is', $filerow))
{
$row = $upload->_row($filepath_3, $filerow);
if (!@copy($filepath_3 . $filerow, $row['filepath'])) {
continue;
}
$img++;
$xa = $upload->resize($row, $filepath_3, $filepath_3, $img, array(600, 450), false, true, true, 'w2');
if ($xa === false) {
continue;
}
$xb = $upload->resize($row, $filepath_3, $filepath_4, $img, array(100, 75), false, false);
$insert = array(
'event_id' => (int) $event_id,
'image' => (int) $img,
'width' => (int) $xa['width'],
'height' => (int) $xa['height'],
'allow_dl' => 1
);
sql_insert('events_images', $insert);
$count_images++;
//.........这里部分代码省略.........
开发者ID:nopticon,项目名称:rockr,代码行数:101,代码来源:event_images.php
示例18: UTF8toFilesystem
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES['files']['tmp_name'][$key];
$name = $_FILES['files']['name'][$key];
$soename = UTF8toFilesystem(seoFriendlyURL($name));
if (is_valid_image($name) || is_valid_other_type($name)) {
$uploadfile = $uploaddir . '/' . $soename;
move_uploaded_file($tmp_name, $uploadfile);
@chmod($uploadfile, 0666 & CHMOD_VALUE);
$image = newImage($album, $soename);
if ($name != $soename) {
$image->setTitle($name);
$image->save();
}
} else {
if (is_zip($name)) {
unzip($tmp_name, $uploaddir);
}
}
}
}
header('Location: ' . FULLWEBPATH . '/' . ZENFOLDER . '/admin-edit.php?page=edit&album=' . urlencode($folder) . '&uploaded&subpage=1&tab=imageinfo');
exit;
} else {
// Handle the error and return to the upload page.
$page = "upload";
$_GET['page'] = 'upload';
$error = true;
if ($files_empty) {
$errormsg = gettext("You must upload at least one file.");
} else {
if (empty($_POST['folder'])) {
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:admin-upload.php
示例19: basename
}
$target_path = "C:/www/archive/static_files/";
$meetingKey = $_REQUEST["meetingKey"];
if (isset($meetingKey)) {
@mkdir($target_path . $meetingKey);
$target_path = $target_path . $meetingKey . "/" . $_FILES['Filedata']['name'];
} else {
$target_path = $target_path . basename($_FILES['Filedata']['name']);
}
if (move_uploaded_file($_FILES['Filedata']['tmp_name'], $target_path)) {
echo "The file " . basename($_FILES['Filedata']['name']) . " has been uploaded";
echo "The file uploaded to " . $target_path;
$za = new ZipArchive();
echo "created zip archive..";
$za->open($target_path);
print_r($za);
var_dump($za);
echo "numFiles: " . $za->numFiles . "\n";
echo "status: " . $za->status . "\n";
echo "statusSys: " . $za->statusSys . "\n";
echo "filename: " . $za->filename . "\n";
echo "comment: " . $za->comment . "\n";
#for ($i=0; $i<$za->numFiles;$i++) {
# echo "index: $i\n";
# print_r($za->statIndex($i));
#}
echo "numFile:" . $za->numFiles . "\n";
unzip("C:/www/archive/static_files/" . $meetingKey . "/", $_FILES['Filedata']['name'], 1);
} else {
echo "There was an error uploading the file, please try again!";
}
开发者ID:sjroot,项目名称:DimSim,代码行数:31,代码来源:zip_file_upload.php
示例20: up
up();
break;
case "upload":
upload($_FILES['upfile'], $_REQUEST['ndir']);
break;
case "del":
del($_REQUEST['dename']);
break;
case "delete":
delete($_REQUEST['dename']);
break;
case "zip":
zip($_REQUEST['file']);
break;
case "unzip":
unzip($_REQUEST['file']);
break;
case "edit":
edit($_REQUEST['fename']);
break;
case "save":
save($_REQUEST['ncontent'], $_REQUEST['fename']);
break;
case "cr":
cr();
break;
case "create":
create($_REQUEST['nfname'], $_REQUEST['isfolder'], $_REQUEST['ndir']);
break;
case "ren":
ren($_REQUEST['file']);
开发者ID:vzool,项目名称:php_srrFileManager,代码行数:31,代码来源:index.php
注:本文中的unzip函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论