Quote
fusion_zip($src_directory, $target_directory, $filename=false);
function randomize($length = 10) {
return substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, $length);
}
$filename = ($filename) ? stripinput($filename) : randomize(15);
$var = preg_replace("#/+#", "", THEME);
$var = str_replace(".", "", $var);
$var = str_replace("themes","", $var);
$var = THEME.$var.".zip";
ZipDir(THEME, $var);
ZipDir(THEME, DOWNLOADS.str_replace("../","",THEME).".zip")
ZipDir("upload_folder", "test_arch.zip");
ZipDir($upload_folder, "test_arch.zip");
if (!isset($_GET['upload_folder'])) { $upload_folder = INFUSIONS."news_letter_panel/attach/"; }
if (isset($_POST['archive'])) {
ZipDir("upload_folder", "test_arch.zip");
}
// rest of my script code
// then the form
echo "<form name='do_archive' method='post' action='".FUSION_SELF.$aidlink."'>\n";
echo "<table style='width:500px' align='center' cellspacing='0' cellpadding='0'><tr>\n";
echo "<td align='center'><hr><br /></td>\n";
echo "</tr><tr>\n";
echo "<td align='center'><b>".$locale['nl_852']."</b><br /><br /></td>\n";
echo "</tr><tr>\n";
echo "<td align='center'><input class='button' type='submit' name='archive' value='".$locale['nl_244']."' /></td>\n";
echo "</tr></table></form>";
include/functions.php
RecursiveDirectoryIterator::__construct(upload_folder) [<a href='recursivedirectoryiterator.--construct'>recursivedirectoryiterator.--construct</a>]: failed to open dir: No such file or directory Line: 35
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
6 participants
Notifications
You are not receiving notifications from this thread.
Related Questions