processing your files...

'; $msg = ""; $path = $_POST['path']; $album = $_POST['albid']; $zip_upload = $_POST['zip_upload']; $abspath = $_POST['abspath']; $dirpath = $_POST['dirpath']; $blog_url = $_POST['blog_url']; $level = $_POST['level']; $noresize = $_POST['noresize']; if ($album == 0) $msg .= "

" . __("Select an Album!", 'aniga') . "

"; elseif ($path == '' && $zip_upload == '' && $bulk == '') $msg .= "

Choose a Directory, submit a zip file or Pictures!

"; elseif ($zip_upload == 'yes' && !okfiletype($_FILES['org']['name'], $aniga->allowed_zip) && get_option('anigal_zip_mode') == 'zip') $msg .= "

" . sprintf('\'%s\' is not a zip file!', basename($_FILES['org']['name'])) . "

"; elseif ($zip_upload == 'yes' && (ini_get('safe_mode') || ini_get('safe_mode') == 'on')) $msg .= "

your server has PHP safe mode restrictions in effect, choose manual ftp upload

"; else { if ($zip_upload == 'yes') { $dir_path = $abspath.'album'.$album; for ($i = 1; ; $i++) { if (!is_dir($dir_path.'_'.$i) or $i > 99) { break; } } $dir_path = $dir_path.'_'.$i; $db_path = $dirpath.'album'.$album.'_'.$i.'/'; $path = 'album'.$album.'_'.$i; mkdir($dir_path, 0777); chmod($dir_path, 0777); $msgzip = anigal_m_zip_upload($dir_path, $_FILES['org']['name'], $_FILES['org']['tmp_name'], $db_path); $msg .= $msgzip; } } ?>

..done

"; m_zip_entry_close($zip_entry); $i++; } } m_zip_close($zip); $msgf .= "

" . sprintf('The file \'%s\' has been un-zipped to:', basename($file_org)) . " '$db_path'

"; } else $msgf .= "

could not read zip file

"; unlink($file); } else $msgf .= "

could not move zip file to '$db_path'

"; return $msgf; } ?>