<?PHP
ob_start();
session_start();
ini_set("memory_limit","-1");
include("../includes/globals.php.inc");
include("../includes/functions.php");
include("../lang/English.php");
if(strtolower($sxSetup['Language']) != 'english') include("../lang/".$sxSetup['Language'].".php");
include("../themes/$THEME_FOLDER/config.php.inc");
protectWriteMode();
if((!userEditor())AND(!userAdmin())) loginError($sxLang['LoginRequired']);
if((userEditor())AND(!$sxSetup['EditorRightsPhotoBatchAdd'])) loginError($sxLang['LoginRequired']);
$sxTitleAddendum = $sxLang['AdminHeading'];
include("../themes/$THEME_FOLDER/header.php");
?>
<div class="bodyWrapper">
<h1 class="sxAdminHeading"><?PHP echo $sxLang['PhotoHeadingBatchUp']; ?></h1>
<div class="sxAdminBreadcrumbs"><?PHP if(userAdmin()) { ?><a href="index.php"><?PHP echo $sxLang['AdminBreadcrumb']; ?><?PHP }?><?PHP if(userEditor()) { ?><a href="editor_index.php"><?PHP echo $sxLang['EditorBreadcrumb']; ?><?PHP }?></a> > <a href="photos.php"><?PHP echo $sxLang['PhotoHeadingManager']; ?></a> > <?PHP echo $sxLang['PhotoHeadingBatchUp']; ?></div>
<?PHP echoMessage($message); ?>
<div id="batchinfo"><?PHP echo $sxLang['PhotoBatchInfoUp']; ?></div>
<div id="fileQueue"></div>
<input type="file" name="uploadify" id="uploadify" /><br /><br />
<div id="fileQueueButtons">
<input style="float:right; width: 150px;" type="button" value="<?PHP echo $sxLang['PhotoButtonBatchUploadNow'];?>" onclick="javascript:jQuery('#uploadify').uploadifyUpload()">
<input style="float:left; width: 110px;" type="button" value="<?PHP echo $sxLang['PhotoButtonBatchCancelAll'];?>" onclick="javascript:jQuery('#uploadify').uploadifyClearQueue()">
</div>
<form style="text-align: right;">
<input style="width: 150px;" align="right" type="button" value="<?PHP echo $sxLang['ButtonNext']; ?>" onclick="window.location.href='./photo_batch.php'">
</form>
</div>
<?PHP
include("../themes/$THEME_FOLDER/footer.php");
ob_end_flush();
?>