user = $aniga->user();
$msg = "";
$msg .= $aniga->checkpath();
$msg .= stripslashes($_POST['msg']);
$path = $_POST['path'];
$album = $_POST['albid'];
$level = $_POST['level'];
$zip_upload = $_POST['zip_upload'];
$mode = $_POST['mode'];
$noresize = $_POST['noresize'];
if ($_POST['event'] == 'upload') {
if ($mode == 'bulk') {
$filepath = '00-single/';
$db_path = get_option('aniga_dirpath').$filepath;
$dir_path = get_option('aniga_abspath').$filepath;
$bulkfile = array();
for ($i = 1; $i <= 5; $i++) {
if ($_FILES['pic'.$i]['name']) {
$filename = $_FILES['pic'.$i]['name'];
if(!ereg("thumb_",$filename) && !ereg("normal_",$filename) && okfiletype($filename, $aniga->allowed_pic)){
$msg .= $aniga_file->move_file($_FILES['pic'.$i]['tmp_name'], $dir_path, $filename, true);
$imagesize = getimagesize($dir_path.$aniga_file->fname);
$bulkfile[$i] = array('name' => $aniga_file->fname, 'x' => $imagesize[0], 'y' => $imagesize[1]);
}
else $msg .= sprintf(__('!!%1$s%2$s is not allowed!!', 'aniga'), $filepath, $filename) . "
\n";
}
}
?>
" . sprintf(__('\'%s\' is not a zip file!', 'aniga'), basename($_FILES['org']['name'])) . "
"; else { $dir_path = get_option('aniga_abspath').'album'.$album; for ($i = 1; ; $i++) { if (!is_dir($dir_path.'_'.$i) or $i > 250) { break; } } $dir_path = $dir_path.'_'.$i; $path = 'album'.$album.'_'.$i; $db_path = get_option('aniga_dirpath').'album'.$album.'_'.$i.'/'; mkdir($dir_path, 0777); chmod($dir_path, 0777); $msg .= aniga_zip_upload($dir_path, $_FILES['org']['name'], $_FILES['org']['tmp_name'], $db_path); $zipok = true; } ?>| x px |
jpg, gif, png', 'aniga'); ?>
Automatic Picture resizing is disabled, therefore you cannot use the Bulk Upload
You need to provide 3 files for each Picture:
filename.jpg - the original Picture (size does not matter)
normal_filename.jpg - this is shown in the post and links to the original Picture(e.g. max. 400px)
thumb_filename.jpg - the thumbnail of the original Picture(e.g. max. 150px)', 'aniga'); ?>