Advanced Multi Uploader Support Product Page
Answered
problem secure AMU with Adv Conditional Region
Asked 25 Jul 2011 17:45:30
1
has this question
25 Jul 2011 17:45:30 Michel Boger posted:
Hello,I have treid to secure my AMU with the Adv Conditional Region.
But when I login to the page it doesn't show the AMU.
Can anyone tell me what I'm doing wrong?
Here you can find the page:
beeldboxhosting.nl/resize/
Login name: Do2011
Password: redbull
This is the code of the page:
<?php require_once('ScriptLibrary/incPureUpload.php'); ?>
<?php require_once('ScriptLibrary/cGraphicMediator.php'); ?>
<?php
// Pure PHP Upload 2.1.12
$ppu = new pureFileUpload();
$ppu->path = "plaatjes";
$ppu->extensions = "GIF,JPG";
$ppu->formName = "UploadQueue";
$ppu->storeType = "file";
$ppu->sizeLimit = "80000";
$ppu->nameConflict = "uniq";
$ppu->nameToLower = false;
$ppu->requireUpload = true;
$ppu->minWidth = "";
$ppu->minHeight = "";
$ppu->maxWidth = "";
$ppu->maxHeight = "";
$ppu->saveWidth = "";
$ppu->saveHeight = "";
$ppu->timeout = "600";
$ppu->progressBar = "";
$ppu->progressWidth = "";
$ppu->progressHeight = "";
$ppu->redirectURL = "";
$ppu->checkVersion("2.1.12"
$ppu->doUpload();
if (isset($editFormAction)) {
if (isset($_SERVER['QUERY_STRING'])) {
if (!eregi("GP_upload=true", $_SERVER['QUERY_STRING'])) {
$editFormAction .= "&GP_upload=true";
}
} else {
$editFormAction .= "?GP_upload=true";
}
}
?><?php
// Smart Image Processor PHP 2.0.7
if (isset($_GET['GP_upload'])) {
$sipp2 = new cGraphicMediator("upload", $ppu, ""
$sipp2->setComponent("Auto"
$sipp2->setMatteColor("#FFFFFF"
$sipp2->resize(500, 500, true);
$sipp2->overwrite = true;
$sipp2->saveJPEG(70);
$sipp2->process();
}
?>
<script language='JavaScript' src='ScriptLibrary/incPureUpload.js' type="text/javascript"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script language='JavaScript' src='ScriptLibrary/incPureUpload.js' type="text/javascript"></script>
<div id="rechts">
<?php if (isset($_SESSION['MM_Username'])) { // Adv Conditional Region ?>
<form action="<?php echo $GP_uploadAction; ?>" method="post" enctype="multipart/form-data" name="UploadQueue" id="UploadQueue" onsubmit="checkFileUpload(this,'GIF,JPG',true,80000,'','','','','','');return document.MM_returnValue">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,63,0','width','550','height','350','id','upload1','align','middle','src','dmxMultiUploader','name','upload1','quality','best','flashvars','url=<?php echo urlencode($GP_uploadAction); ?>&formName=UploadQueue&FlashUpload=true<?php if ($ppu->redirectURL <> '') {echo "&redirectUrl=".$ppu->redirectURL;}?>','wmode','transparent','pluginspage','www.macromedia.com/go/getflashplayer','movie','dmxMultiUploader' ); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,63,0" width="550" height="350" id="upload1" align="middle">
<param name="FlashVars" value="url=<?php echo urlencode($GP_uploadAction); ?>&formName=UploadQueue&FlashUpload=true<?php if ($ppu->redirectURL <> '') {echo "&redirectUrl=".$ppu->redirectURL;}?>" />
<param name="movie" value="dmxMultiUploader.swf" />
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<embed src="dmxMultiUploader.swf" name="upload1" quality="best" flashvars="url=<?php echo urlencode($GP_uploadAction); ?>&formName=UploadQueue&FlashUpload=true<?php if ($ppu->redirectURL <> '') {echo "&redirectUrl=".$ppu->redirectURL;}?>" wmode="transparent" type="application/x-shockwave-flash" width="550" height="350" pluginspage="www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
<input name="Filename" type="file" style="display:none" onchange="checkOneFileUpload(this,'GIF,JPG',true,80000,'','','','','','')" />
<input type="hidden" name="Filedata" />
<script type="text/javascript">window.upload1 = document.forms["UploadQueue"].upload1;</script>
</form>
<?php } // isset($_SESSION['MM_Username']) ?>
</div>
</div>
</div>
Replies
Replied 26 Jul 2011 09:38:00
26 Jul 2011 09:38:00 Miroslav Zografski replied:
Hello Michel,
set following:
<?php session_start(); ?>
right before the Pure PHP Upload code sniped.
set following:
<?php session_start(); ?>
right before the Pure PHP Upload code sniped.
Replied 29 Jul 2011 15:14:13
29 Jul 2011 15:14:13 Michel Boger replied:
Hello Miroslav,
Thanks for your solution.
It works great.
Michel
Thanks for your solution.
It works great.
Michel
Replied 03 Aug 2011 10:05:57
03 Aug 2011 10:05:57 Miroslav Zografski replied:
Hello Michel,
You are welcome.
You are welcome.