Rank: Newbie
Groups: Member
Joined: 7/17/2008(UTC) Posts: 5
|
I thought I would give you the full code of the .php page that calls Aurigma: Quote:<?php if(!empty($_SESSION['infoAlbum']) && isConnected()) { ?> <h3><?php echo title($lang, 'create_origin_title', $nat) ?> - <?php echo $_SESSION['infoAlbum']['nom_album_origin'] ?></h3>
<p><a href='<?php echo $nat; ?>/59-conditions-generales.html'><?php echo title($lang, 'create_origin_TandCs', $nat) ?></a></p>
<script type="text/javascript"> //<![CDATA[ //Create JavaScript object that will embed Image Uploader to the page. function ImageUploader_BeforeUpload() { getImageUploader("ImageUploader").setUploadThumbnail2Watermark("ImageUrl=" + "http://test.shootsurf.com/watermark/watermark.png;ImageWidth=143;ImageHeight='42;" + "Position=TopRight;Opacity=10"); } var iu = new ImageUploaderWriter("ImageUploader1", 630, 400);
//For ActiveX control full path to CAB file (including file name) should be specified. iu.activeXControlCodeBase = "<?php echo $dirAurigma; ?>/ImageUploader5.cab"; iu.activeXControlVersion = "5,1,10,0"; iu.activeXControlEnabled = false; //alert("ActiveXCodeBAse : "+iu.activeXControlCodeBase); //For Java applet only path to directory with JAR files should be specified (without file name). iu.javaAppletJarFileName = "ImageUploader5.jar"; iu.javaAppletCodeBase = "./"+"<?php echo $dirAurigma; ?>"; iu.javaAppletCached = true; iu.javaAppletVersion = "5.1.10.0"; //alert("AppletCodeBAse : "+iu.activeXControlCodeBase); iu.showNonemptyResponse = "off";
//Configure appearance. iu.addParam("PaneLayout", "TwoPanes"); iu.addParam("ShowDebugWindow", "true"); iu.addParam("AllowRotate", "true"); iu.addParam("BackgroundColor", "#ccccff"); iu.addParam("CacheGuiGraphics", "true"); iu.addParam("GuiGraphicsVersion","1"); iu.addParam("CheckFilesBySelectAllButton","true");
//iu.addParam("TreePaneWidth", "234"); //largeur du panel de vue des dossiers
iu.addParam("UploadView", "Thumbnails"); iu.addParam("FileMask", "*.jpg;*.jpeg;*.jpe");
//Configure License Keys iu.addParam("LicenseKey", "71050-43C8A-00000-0C12B-1E4E4;72050-43C8A-00000-05DCD-A87F9");
//Configure thumbnail settings. //Send a thumbnail which is resized to have the width which is not larger than the specified one. iu.addParam("UploadThumbnail1FitMode", "Fit"); iu.addParam("UploadThumbnail1Width", "145"); iu.addParam("UploadThumbnail1Height", "90"); iu.addParam("UploadThumbnail1JpegQuality", "60");
iu.addParam("UploadThumbnail2FitMode", "Fit"); iu.addParam("UploadThumbnail2Width", "600"); iu.addParam("UploadThumbnail2Height", "400"); iu.addParam("UploadThumbnail2JpegQuality", "60"); iu.addParam("UploadThumbnail2Watermark", "ImageUrl=http://test.shootsurf.com/watermark/watermark01.png;ImageWidth=143;ImageHeight=42;" + "Position=TopRight;Opacity=10"); iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload");
//Configure upload iu.addParam("HashAlgorithm", "SHA"); iu.addParam("UploadSourceFile", "true"); //Upload de l'img originale iu.addParam("AllowAutoRotate", "false"); //Though it may be convenient, remember that not all cameras recognize orientation properly. Also, reading EXIF data slows the process of folder scanning, and if the folder contains a lot of images, the decrease in speed may be noticeable. //iu.addParam("UploadThumbnail1Watermark", // "ImageUrl=http://localhost/AurigmaLogo.png;ImageWidth=86;ImageHeight=63;" + // "Position=TopRight;Opacity=50");
iu.addParam("FilesPerOnePackageCount", "1"); //Send file per file
iu.addParam("AutoRecoverMaxTriesCount", "10"); //specifies the maximum number of upload attempts that Image Uploader will make before completely stopping the upload process. This value includes the very first attempt and should be at least 1. iu.addParam("AutoRecoverTimeOut", "5000"); //specifies the interval in milliseconds between the attempts.
//Configure URL files are uploaded to. iu.addParam("Action", "uploadAurigma.php")
//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "<?php echo $nat; ?>/surf-photos/album-unpub/<?php echo $_SESSION['infoAlbum']['id_album_origin']."-".url_title($_SESSION['infoAlbum']['nom_album_origin']); ?>.html")
//Tell Image Uploader writer object to generate all necessary HTML code to embed //Image Uploader to the page. iu.writeHtml(); </script>
<p><a href='<? echo $nat; ?>/upload-simple-surf-photos.html' ><?php echo title($lang, 'upload_java_upload_http', $nat) ?></a></p> <?php } ?>
|