14,15d13 < $allhtml=false; < $vh=""; 21,29d18 < function selresults($rs) { < $outc=""; < $recs=explode("\n", $rs); < for ($irecs=0; $irecs' . $recs[$irecs] . ''; < } < return $outc; < } < 31,37c20 < global $tablebit, $ext, $lastmt, $includesare; < $tvh=""; < if (strpos($includesare, $pfilename) !== false || $includesare == '') { < $tvh=""; < } else { < $tvh="visibility:hidden;"; < } --- > global $tablebit, $ext, $lastmt; 50c33 < $tablebit=str_replace('',' ',$tablebit); --- > $tablebit=str_replace('',' ',$tablebit); 56c39 < $tablebit=str_replace('',' ',$tablebit); --- > $tablebit=str_replace('',' ',$tablebit); 61c44 < global $mapbit, $lasttopoffset, $includesare; --- > global $mapbit, $lasttopoffset; 68d50 < if (strpos($includesare, $pfilename) !== false || $includesare == '') { 70d51 < } 83,84c64 < //$secondbit="
"; < $secondbit="

"; --- > $secondbit="
"; 105,107c85 < $includesare=''; < if (isset($_GET['include'])) { $includesare=str_replace("+"," ",urldecode($_GET['include'])); } < if (isset($_GET['filespec'])) { $fspec=str_replace("+"," ",urldecode($_GET['filespec'])); if (strpos($fspec, "#") !== false) { $parts=explode("#",$fspec); if (strpos($parts[1],"@") !== false) { if (strpos($parts[1],"+") !== false || strpos($parts[1]," ") !== false) { $allhtml=true; } $to=str_replace(" ","",str_replace("+","",$parts[1])); $fspec=$parts[0]; } } } --- > 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]; } } } 111,115d88 < if (isset($_POST['include'])) { $includesare=str_replace("+"," ",urldecode($_POST['include'])); } < if (isset($_POST['filespec'])) { $fspec=str_replace("+"," ",urldecode($_POST['filespec'])); if (strpos($fspec, "#") !== false) { $parts=explode("#",$fspec); if (strpos($parts[1],"@") !== false) { if (strpos($parts[1],"+") !== false || strpos($parts[1]," ") !== false) { $allhtml=true; } $to=str_replace(" ","",str_replace("+","",$parts[1])); $fspec=$parts[0]; } } } < if (isset($_POST['divmarginuse'])) { $none="INLINE-BLOCK;opacity:0.5;z-index:-6"; $via='topdiv'; } < if (isset($_POST['canvas'])) { $bimg=" bimg(true); "; } < if (isset($_POST['canvasnorepeat'])) { $bimg=" bimg(false); "; } 137,138d109 < $vh=""; < if (strpos($includesare, $filename) === false && $includesare != "") { $vh="visibility:hidden;"; } 166d136 < if ($vh == "") { 169,172c139 < $thirdbit.=$bdel . "img""; < } else { < $thirdbit.=$bdel . "img""; < } --- > $thirdbit.=$bdel . "img""; 213,214d179 < $vh=""; < if (strpos($includesare, $filename) === false && $includesare != "") { $vh="visibility:hidden;"; } 243d207 < if ($vh == "") { 246,249c210 < $thirdbit.=$bdel . "img""; < } else { < $thirdbit.=$bdel . "img""; < } --- > $thirdbit.=$bdel . "img""; 266c227 < $dcr.=$crd . "" . $filename . ""; --- > $dcr.=$crd . "" . $filename . ""; 278,279c239 < //$secondbit="
"; < $secondbit="

"; --- > $secondbit="
"; 284,285c244 < //$secondbit="
" . str_replace("\n","
",$dcr) . "

"; //"; // . $thirdbit . ""; < $secondbit="

" . str_replace("\n","
",$dcr) . "

"; --- > $secondbit="
" . str_replace("\n","
",$dcr) . "

"; //"; // . $thirdbit . ""; 287c246 < if ($to != "" && !$allhtml) { --- > if ($to != "") { 317c276 < $headers .= "Content-Disposition: attachment;filename=\"" . $filname . "\"" . $eol; --- > $headers .= "Content-Disposition: attachment;filename=\"" . $filename . "\"" . $eol; 337c296 < $hecho=" --- > echo " 346d304 < var includesare='" . $includesare . "'; 356,361d313 < function butwhatif(icolid) { < if (document.URL.toLowerCase().indexOf('http') == -1) { < document.getElementById('icolthree').src=document.getElementById(icolid).src; < document.getElementById('icolthree').style.display='block'; < } < } 367,386d318 < function showthese() { < var osel=document.getElementById('tresults'); < var cinc='', cincd=''; < for (var i=0; i' + recs[irecs] + ''; < } < document.getElementById('tresults').size='' + recs.length; < return outc; < } 448d379 < if (includesare.indexOf('-' + icol + '-' + irow + ext) != -1 || includesare == '') { 450d380 < } 456d385 < if (includesare.indexOf('-' + icol + '-' + irow + ext) != -1 || includesare == '') { 459d387 < } 514c442 < document.getElementById('tresults').innerHTML=resultsel(results); --- > document.getElementById('tresults').innerHTML=results; 527,529c455,457 <
< GIMP Guillotine Image Filespec (of images):

<     --- > > GIMP Guillotine Image Filespec (of images):

>     533,570d460 < if ($allhtml) { < $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($hecho)); < //$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=\"" . $filname . "\"" . $eol; < $headers .= $content . $eol . $eol; < < $headers .= "--" . $separator . "--"; < < //mail($to, $subject, "", $headers); < } < echo $hecho; 590c480 < $hecho=" --- > echo " 599d488 < var includesare='" . $includesare . "'; 608,613d496 < function butwhatif(icolid) { < if (document.URL.toLowerCase().indexOf('http') == -1) { < document.getElementById('icolthree').src=document.getElementById(icolid).src; < document.getElementById('icolthree').style.display='block'; < } < } 619,638d501 < function showthese() { < var osel=document.getElementById('tresults'); < var cinc='', cincd=''; < for (var i=0; i' + recs[irecs] + ''; < } < document.getElementById('tresults').size='' + recs.length; < return outc; < } 702d564 < if (includesare.indexOf('-' + icol + '-' + irow + ext) != -1 || includesare == '') { 704d565 < } 710d570 < if (includesare.indexOf('-' + icol + '-' + irow + ext) != -1 || includesare == '') { 713d572 < } 769c628 < document.getElementById('tresults').innerHTML=resultsel(results); --- > document.getElementById('tresults').innerHTML=results; 782,784c641,643 < < GIMP Guillotine Image Filespec (of images): ... Versus ...

<     --- > > GIMP Guillotine Image Filespec (of images): ... Versus ...

>     788,825d646 < if ($allhtml) { < $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($hecho)); < //$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=\"" . $filname . "\"" . $eol; < $headers .= $content . $eol . $eol; < < $headers .= "--" . $separator . "--"; < < //mail($to, $subject, "", $headers); < } < echo $hecho;