&check_cookie; &check_login; if($param1 eq "forms"){ $form=qq~form=1~; $title_display="none"; $tabs="none"; $img_up1="none";$img_up2="none"; $resize=qq~hei=310-document.body.clientHeight dialogHeight=parseInt(dialogHeight)+hei+"px" init_hei=parseInt(dialogHeight)+hei+"px" ~; }else{ $form_display="none"; $resize=qq~hei=460-document.body.clientHeight dialogHeight=parseInt(dialogHeight)+hei+"px" init_hei=parseInt(dialogHeight)+hei+"px" ~; } if($image_magick_check){$resizeit='';$thumb=""}else{$resizeit="none";$thumb="none"} if($buttons !~ /\bupload\b/){$img_upload=0;$img_up2="none";}else{$img_upload=1} open(TL,"$path_to_lang/$thislang/insert_image.txt"); while(){push(@LaNg,$_)} &exec_lang; if($demo_mode){ $demo1=qq~alert("DISABLED FOR DEMO")~; $demo2=qq~alert("DISABLED FOR DEMO")~; $demo3=qq~alert("DISABLED FOR DEMO")~; $demo4=qq~alert("DEMO NOTE:\\n\\nIf your server supports ImageMagick $brand will display a Thumbnail\\nImage tab. The tab will allow you to create thumbnail images on the server\\n\\nThe DEMO /images/ folder already contains thumbnails. Select a none\\nthumbnail image to step through the thumbnail process. For the DEMO\\nthe thumbnail heights and widths are preset.\\n\\nClick the Create Thumbnail button to auto-link the thumbnail to the full\\nsized image for an inline display of the image.\\n\\nNOTE: In Full Page edit mode full size image displays on the page\\ncannot be closed. They do close automatically when the page is saved.\\n\\n-----------------------------------------------------------------------------------------------------\\n\\nIf your server does not support ImageMagick $brand will not display the\\nThumbnail Image tab. You can still resize the image to display in smaller\\nsize and use the Inline Link tool to create an inline display for the image's\\nfull size display.") ~; }else{ $demo1=qq~hole.location="$url_to_editor?delete_file="+document.forms[0].url.value~; $demo2=qq~hole.location="$url_to_editor?delete_file="+document.forms[1].flash_url.value~; $demo3=qq~document.getElementById("create_th_butt").disabled=true; document.body.style.cursor="wait" params=document.forms[0].thwid.value+"&"+document.forms[0].thhei.value; hole.location="$url_to_editor?create_thumbnail="+display.document.getElementById("theimg").src+"&"+params ~; } if($buttons =~ /folder_delete/){$DF=0}else{$DF=1} print "Content-type: text/html\n\n"; open(I,"$htm/insert_image.txt"); while(){ s/\$(\w+)/${$1}/eg; print } 1;