Beispiel #1
0
function makeHtmlWebToZip($webDir)
{
    $content = '';
    $splStr = '';
    $filePath = '';
    $c = '';
    $fileArray = '';
    $fileName = '';
    $fileType = '';
    $isTrue = '';
    $webFolderName = '';
    $cleanFileList = '';
    $splStr = aspSplit($webDir, '/');
    $webFolderName = $splStr[2];
    //call eerr(webFolderName,webDir)
    $content = getFileFolderList($webDir, true, '全部', '', '全部文件夹', '', '');
    $splStr = aspSplit($content, vbCrlf());
    foreach ($splStr as $key => $filePath) {
        if (CheckFolder($filePath) == false) {
            $fileArray = handleFilePathArray($filePath);
            $fileName = lCase($fileArray[2]);
            $fileType = lCase($fileArray[4]);
            $fileName = remoteNumber($fileName);
            $isTrue = true;
            if (inStr('|' . $cleanFileList . '|', '|' . $fileName . '|') > 0 && $fileType == 'html') {
                $isTrue = false;
            }
            if ($isTrue == true) {
                //call echo(fileType,fileName)
                if ($c != '') {
                    $c = $c . '|';
                }
                $c = $c . replace($filePath, HandlePath('/'), '');
                $cleanFileList = $cleanFileList . $fileName . '|';
            }
        }
    }
    Rw($c);
    $c = $c . '|||||';
    createFileGBK('htmlweb/1.txt', $c);
    aspEcho('<hr>cccccccccccc', $c);
    //先判断这个文件存在20160309
    if (CheckFile('/myZIP.php') == true) {
        aspEcho('', XMLPost(getHost() . '/myZIP.php?webFolderName=' . $webFolderName, 'content=' . escape($c)));
    }
}
Beispiel #2
0
function displayTemplateDirDialog($dir)
{
    $folderPath = '';
    ?>
        <form name="form2" method="post" action="?act=templateFileList">
        <table width="99%" border="0" cellspacing="0" cellpadding="0" class="tableline">
        <tr>
        <td height="30"><input name="dir" type="text" id="dir" value="<?php 
    echo $dir;
    ?>
" size="60" />
        <input type="submit" name="button2" id="button2" value=" 进入 " /><?php 
    $folderPath = $dir . '/images/column/';
    if (CheckFolder($folderPath)) {
        Rw('面板样式' . displayPanelList($folderPath));
    }
    $folderPath = $dir . '/images/nav/';
    if (CheckFolder($folderPath)) {
        Rw('导航样式' . displayPanelList($folderPath));
    }
    ?>
</td>
        </tr>
        </table>
        </form>
        <?php 
}