28d27 < $ifm=""; 33,37d31 < $bimg=""; < $subject='Perhaps a Gimp Guillotine Image'; < $to=''; < $headers=''; < $via='mycanvas'; 39,42c33,34 < if (isset($_GET['filespec'])) { $fspec=str_replace("+"," ",urldecode($_GET['filespec'])); if (strpos($fspec, "#") !== false) { $parts=explode("#",$fspec); if (strpos($parts[1],"@") !== false) { $to=$parts[1]; $fspec=$parts[0]; } } } < if (isset($_GET['divmarginuse'])) { $none="INLINE-BLOCK;opacity:0.5;z-index:-6"; $via='topdiv'; } < if (isset($_GET['canvas'])) { $bimg=" bimg(true); "; } < if (isset($_GET['canvasnorepeat'])) { $bimg=" bimg(false); "; } --- > if (isset($_GET['filespec'])) { $fspec=str_replace("+"," ",urldecode($_GET['filespec'])); } > if (isset($_GET['divmarginuse'])) { $none="INLINE-BLOCK;opacity:0.5;z-index:-6"; } 63,64c55 < $ifm=""; < if ($below == "Image") $below="Image (or in New Window or Background Image via Canvas (no-repeat))"; --- > if ($below == "Image") $below="Image (or in New Window)"; 97c88 < if ($jscr == "") $jscr="\n if (imagec == ',') { dur=dur; "; --- > if ($jscr == "") $jscr="\n if (imagec == ',') { "; 110c101 < if ($jscr != "") $jscr.=" \n } \n if (imagec != ',') { lookati(); } \n"; --- > if ($jscr != "") $jscr.=" \n } \n if (imagec != ',') { lookati(); } \n"; 128,129c119 < $ifm=""; < if ($below == "Image") $below="Image (or in New Window or Background Image via Canvas (no-repeat))"; --- > if ($below == "Image") $below="Image (or in New Window)"; 131c121 < if ($jscr == "") $jscr="\n if (imagec == ',') { dur=dur; "; --- > if ($jscr == "") $jscr="\n if (imagec == ',') { "; 176c166 < if ($jscr != "") $jscr.=" \n } \n if (imagec != ',') { lookati(); } \n"; --- > if ($jscr != "") $jscr.=" \n } \n if (imagec != ',') { lookati(); } \n"; 190,226d179 < if ($to != "") { < $eol = PHP_EOL; < $headers = 'From: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; < $headers .= 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; < < $filname="gimp_guillotine.html"; < $content = chunk_split(base64_encode( "
" . str_replace("margin-top:-","margin-top:0.00",str_replace("margin-top: ","margin-top:",$thirdbit)) . "" )); < //$uid = md5(uniqid(time())); < < // a random hash will be necessary to send mixed content < $separator = md5(time()); < < $headers .= "MIME-Version: 1.0" . $eol; < $headers .= "Content-Type: multipart/mixed; boundary=\"" . $separator . "\"" . $eol . $eol; < $headers .= "Content-Transfer-Encoding: 7bit" . $eol; < $headers .= "This is a MIME encoded message." . $eol . $eol; < < // message < $headers .= "--" . $separator . $eol; < $headers .= "Content-Type: text/plain; charset=\"iso-8859-1\"" . $eol; < $headers .= "Content-Transfer-Encoding: 8bit" . $eol . $eol; < < $headers .= "Please see attachment below:" . $eol . $eol; < < //ourpremail($tem, $mysubject, "", $headers . "--" . $separator . "--"); < < // attachment < $headers .= "--" . $separator . $eol; < $headers .= "Content-Type: application/octet-stream; name=\"" . $filname . "\"" . $eol; < $headers .= "Content-Transfer-Encoding: base64" . $eol; < $headers .= "Content-Disposition: attachment;filename=\"" . $filename . "\"" . $eol; < $headers .= $content . $eol . $eol; < < $headers .= "--" . $separator . "--"; < < //mail($to, $subject, "", $headers); < } 235,238d187 < if ($ifm != "") { < $ifm=""; < } < 258,262d206 < function bimg(dobr) { < if (dobr) document.body.style.backgroundRepeat='repeat'; < if (!dobr) document.body.style.backgroundRepeat='no-repeat'; < document.body.style.backgroundImage=\"url('\" + dur + \"')\"; < } 268c212 < return document.getElementById(huh); --- > return null; 284c228 < //alert('DuR=' + dur); --- > //alert(dur); 297c241 < if (!lookatidone) { --- > if (lookatidone) return; 359,360d302 < dodur(); < } 370c312 < //if (imagec != ',') { lookati(); } --- > if (imagec != ',') { lookati(); } 373d314 < if (dur == '') { 383d323 < } 388c328 < --- > 395,396c335,336 < GIMP Guillotine Image Filespec (of images):