Transform -> Guillotine" //ini_set('max_execution_time', 6000); set_time_limit(300); ini_set('display_errors', false); // thanks to https://stackoverflow.com/questions/8440439/safely-catch-a-allowed-memory-size-exhausted-error-in-php error_reporting(-1); set_error_handler(function($code, $string, $file, $line) { throw new ErrorException($string, null, $code, $file, $line); }); $vend='/PHP/animegif/video.mov'; $vext=".mov"; if (isMobile()) { $vend='/PHP/animegif/video.m4v'; $vext=".m4v"; } $vmime='mp4'; $ronly=""; $thetemp="/tm" . "p/"; $theztemp=$thetemp; $videopath=""; $immogpath=""; $fiext=""; if (!is_dir($thetemp) || strpos($thetemp, substr(DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR,0,1)) === false) { $thetemp=str_replace(DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, sys_get_temp_dir() . DIRECTORY_SEPARATOR); $thetemp=str_replace(DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, str_replace("C:","",$_SERVER['DOCUMENT_ROOT']) . DIRECTORY_SEPARATOR); $theztemp='C:' . str_replace('/', substr('\\',0,1), $thetemp); $thetemp=str_replace(substr('\\',0,1),substr('\\',0,1) . substr('\\',0,1), substr($theztemp,2)); $fiext=".exe"; $videopath="C:\\PROGRA~1\\IMAGEM~1.0-Q\\"; $immogpath="C:\\PROGRA~1\\IMAGEM~1.0-Q\\"; } $lportbit=":8888"; //echo $theztemp; //exit; $impreexe="magick"; if (strpos($thetemp, '/') !== false) { $impreexe="convert"; $immogpath='/usr/local/Cellar/imagemagick/7.1.0-10_1/bin/'; if (file_exists('/home/virtfs/rjmprogr/usr/local/cpanel/3rdparty/bin/mogrify')) { $immogpath='/home/virtfs/rjmprogr/usr/local/cpanel/3rdparty/bin/'; } else if (file_exists('/usr/local/Cellar/imagemagick/7.1.0-10_1/bin/mogrify')) { $sleept=""; $immogpath='/usr/local/Cellar/imagemagick/7.1.0-10_1/bin/'; } else if ('/usr/local/bin/mogrify') { $immogpath='/usr/local/bin/'; } } if (strpos($thetemp, '/') !== false) { $videopath="/usr/local/bin/"; if (file_exists('/usr/local/bin/ffmpeg')) { $videopath="/usr/local/bin/"; } } function thet($inb) { global $theztemp, $thetemp; return $theztemp; } $user_agent = $_SERVER["HTTP_USER_AGENT"]; function getOS() { // thanks to https://www.daniweb.com/programming/web-development/threads/495588/getting-users-os-info-out-of-server-http-user-agent global $user_agent, $lportbit; $os_platform = "win Unknown OS Platform"; $os_array = array( '/windows nt 10/i' => 'Windows 10', '/windows nt 6.3/i' => 'Windows 8.1', '/windows nt 6.2/i' => 'Windows 8', '/windows nt 6.1/i' => 'Windows 7', '/windows nt 6.0/i' => 'Windows Vista', '/windows nt 5.2/i' => 'Windows Server 2003/XP x64', '/windows nt 5.1/i' => 'Windows XP', '/windows xp/i' => 'Windows XP', '/windows nt 5.0/i' => 'Windows 2000', '/windows me/i' => 'Windows ME', '/win98/i' => 'Windows 98', '/win95/i' => 'Windows 95', '/win16/i' => 'Windows 3.11', '/macintosh|mac os x/i' => 'Mac OS X', '/mac_powerpc/i' => 'Mac OS 9', '/linux/i' => 'Linux', '/ubuntu/i' => 'Ubuntu', '/iphone/i' => 'iPhone', '/ipod/i' => 'iPod', '/ipad/i' => 'iPad', '/android/i' => 'Android', '/blackberry/i' => 'BlackBerry', '/webos/i' => 'Mobile' ); foreach ($os_array as $regex => $value) { if (preg_match($regex, $user_agent)) { $os_platform = $value; } } return $os_platform; } if (substr(strtoupper(getOS()),0,3) === 'WIN') { $lportbit=""; if (1 == 3) { $vend='/' . ggserver_remote_addr() . 'video.mov'; $vmime='webm'; } } function xggserver_remote_addr() { global $theztemp; $path = $theztemp . "/gg*video.mov"; $latest_ctime = 0; $latest_filename = ''; $files = glob($path); foreach($files as $file) { if (is_file($file) && filectime($file) > $latest_ctime) { $latest_ctime = filectime($file); $latest_filename = $file; } } if (strpos($latest_filename, '/gg') !== false) { return '/gg' . explode('video.mov', explode('/gg', $latest_filename)[1])[0]; } return $latest_filename; } function datauriit($infn) { global $thetemp, $theztemp; if (strpos(("~" . $infn), "~" . $thetemp) !== false) { if (file_exists($infn)) { return 'data:image/' . str_replace("jpg","jpeg",strtolower(explode(".", $infn)[-1 + sizeof(explode(".", $infn))])) . ';base64,' . base64_encode(file_get_contents($infn)); } } return $infn; } function yourexec($incid) { global $vext, $thetemp, $immogpath, $videopath, $videomidbit; if (!file_exists('xy.xy')) { file_put_contents('xy.xy',''); } if (strpos($thetemp, '/') === false) { $incid=str_replace(" mv "," copy /Y ",str_replace("/usr/local/bin/", $immogpath, $incid)); if (strpos($incid, $videomidbit) !== false) { $incidone=explode(' ' . $videomidbit, $incid)[0]; $incidtwo=str_replace(' -i ', ' -i "C:', $incidone); $incid=str_replace($incidone,$incidtwo,str_replace(' ' . $videomidbit, '" ' . $videomidbit, $incid)); } $thets=explode("; ", $incid); for ($ijh=0; $ijh '; return urldecode($_GET['outfile']); } } else if (isset($_POST['outfile'])) { if (urldecode($_POST['outfile']) != "") { $stfle=' '; return urldecode($_POST['outfile']); } } // if (substr(strtoupper(getOS()),0,3) === 'WIN' && (isset($_POST['video']) || isset($_GET['video']))) { return 'gg'; } return 'gg' . str_replace(".","",str_replace("_", "",str_replace("0", "a",str_replace("1", "b",str_replace("2", "c",str_replace("3", "d",str_replace("4", "e",str_replace("5", "f",str_replace("6", "g",str_replace("7", "h",str_replace("8", "i",str_replace("9", "j",str_replace(":", "_", $rma))))))))))))); } function server_remote_addr() { global $stfle; if (isset($_POST['nickz'])) { return str_replace('+',' ',urldecode($_POST['nickz'])); } $rma = $_SERVER['REMOTE_ADDR']; $ua = strtolower($_SERVER['HTTP_USER_AGENT']); // you can add different browsers with the same way .. if(preg_match('/(chromium)[ \/]([\w.]+)/', $ua)) $rma = '000000'.$rma; elseif(preg_match('/(chrome)[ \/]([\w.]+)/', $ua)) $rma = '00000'.$rma; elseif(preg_match('/(safari)[ \/]([\w.]+)/', $ua)) $rma = '0000'.$rma; elseif(preg_match('/(opera)[ \/]([\w.]+)/', $ua)) $rma = '000'.$rma; elseif(preg_match('/(msie)[ \/]([\w.]+)/', $ua)) $rma = '00'.$rma; elseif(preg_match('/(mozilla)[ \/]([\w.]+)/', $ua)) $rma = '0'.$rma; if (isset($_GET['outfile'])) { if (urldecode($_GET['outfile']) != "") { $stfle=' '; return urldecode($_GET['outfile']); } } else if (isset($_POST['outfile'])) { if (urldecode($_POST['outfile']) != "") { $stfle=' '; return urldecode($_POST['outfile']); } } return str_replace(":", "_", $rma); } function isMobile() { // thanks to https://stackoverflow.com/questions/4117555/simplest-way-to-detect-a-mobile-device-in-php return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]); } if ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443) { // thanks to https://stackoverflow.com/questions/1175096/how-to-find-out-if-youre-using-https-without-serverhttps $absurlprefix="https://" . $_SERVER['SERVER_NAME'] . "" . str_replace("~","",str_replace(":443~","",str_replace(":80~","",(":" . $_SERVER['SERVER_PORT'] . "~")))) . "" . str_replace("gimp_guillotine_followup.php","",explode("#",explode("?",$_SERVER['REQUEST_URI'])[0])[0]); } else { $absurlprefix="http://" . $_SERVER['SERVER_NAME'] . "" . str_replace("~","",str_replace(":443~","",str_replace(":80~","",(":" . $_SERVER['SERVER_PORT'] . "~")))) . "" . str_replace("gimp_guillotine_followup.php","",explode("#",explode("?",$_SERVER['REQUEST_URI'])[0])[0]); } $adatam="data-"; $adatam=""; $ru=urlencode(explode('#',explode('?',$_SERVER['REQUEST_URI'])[0])[0]); $zipfile=""; $ziparr = array(); $ziparrc = array(); $ziparrwh = array(); $ext=""; $div_img="div, .iimg"; // div, img $iferr=""; $erroris=""; $cr=""; $dcr=" "; $getdateelsewisecont=""; $getdateelsewise=""; $hastoexist=""; $andoneone=" && 1 == 4"; $andtwotwo=""; $pdfabit=""; if (isset($_POST['getme'])) { if (file_exists($theztemp . '' . ggserver_remote_addr() . 'pdftmp.pdf') && $_POST['getme'] == 'pdf') { if (isMobile()) { echo '
'; } else { header("Content-type:application/pdf"); //echo 'data:application/pdf;base64,' . base64_encode(file_get_contents($theztemp . '' . ggserver_remote_addr() . 'pdftmp.pdf')); echo file_get_contents($theztemp . '' . ggserver_remote_addr() . 'pdftmp.pdf'); } } if (file_exists($theztemp . '' . ggserver_remote_addr() . 'video' . $vext) && $_POST['getme'] == 'video') { echo ''; //header("Content-type:video/mov"); //echo 'data:application/pdf;base64,' . base64_encode(file_get_contents($theztemp . '' . ggserver_remote_addr() . 'pdftmp.pdf')); //echo file_get_contents($theztemp . '' . ggserver_remote_addr() . 'video.mov'); } if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'PHP' . DIRECTORY_SEPARATOR . 'animegif' . DIRECTORY_SEPARATOR . server_remote_addr() . '.gif') && $_POST['getme'] == 'gif') { echo ''; } exit; } else if (isset($_GET['getme'])) { if (file_exists($theztemp . '' . ggserver_remote_addr() . 'pdftmp.pdf') && $_GET['getme'] == 'pdf') { if (isMobile()) { echo '
'; } else { header("Content-type:application/pdf"); //echo 'data:application/pdf;base64,' . base64_encode(file_get_contents($theztemp . '' . ggserver_remote_addr() . 'pdftmp.pdf')); echo file_get_contents($theztemp . '' . ggserver_remote_addr() . 'pdftmp.pdf'); } } if (file_exists($theztemp . '' . ggserver_remote_addr() . 'video' . $vext) && $_GET['getme'] == 'video') { echo ''; //header("Content-type:video/mov"); //echo 'data:application/pdf;base64,' . base64_encode(file_get_contents($theztemp . '' . ggserver_remote_addr() . 'pdftmp.pdf')); //echo file_get_contents($theztemp . '' . ggserver_remote_addr() . 'video.mov'); } if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'PHP' . DIRECTORY_SEPARATOR . 'animegif' . DIRECTORY_SEPARATOR . server_remote_addr() . '.gif') && $_GET['getme'] == 'gif') { echo ''; } exit; } if (isset($_POST['andgo'])) { $ronly=" readonly"; $pdfvb=''; $andtwotwo=""; if (isset($_POST['andvgo'])) { $andtwotwo.=""; } $andoneone=" && 1 == 3"; //$andtwotwo=""; //""; if (file_exists($theztemp . '' . ggserver_remote_addr() . 'pdftmp.pdf')) { $adatam=""; //$pdfabit='
or
PDF
'; $pdfabit='
or
PDF (all original slides)
'; } if (file_exists($theztemp . '' . ggserver_remote_addr() . 'video' . $vext)) { $pdfabit.='
or
Video (all original slides)
'; } else if (isset($_POST['andvgo'])) { $pdfvb='
or
Video (all original slides show in another local web server window as well)
'; } else { $pdfvb=''; } if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'PHP' . DIRECTORY_SEPARATOR . 'animegif' . DIRECTORY_SEPARATOR . server_remote_addr() . '.gif')) { $pdfabit.='
or
Animated GIF (all original slides)
'; } if (!isMobile()) { $pdfabit.=$pdfvb; } } else if (isset($_GET['andgo'])) { $ronly=" readonly"; $pdfvb=''; $andoneone=" && 1 == 1"; $andtwotwo=""; if (isset($_GET['andvgo'])) { $andtwotwo.=""; } if (file_exists($theztemp . '' . ggserver_remote_addr() . 'pdftmp.pdf')) { $adatam=""; $pdfabit='
or
PDF (all original slides)
'; } if (file_exists($theztemp . '' . ggserver_remote_addr() . 'video' . $vext)) { $pdfabit.='
or
Video (all original slides)
'; } else if (isset($_GET['andvgo'])) { $pdfvb='
or
Video (all original slides show in another local web server window as well)
'; } else { $pdfvb=''; } if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'PHP' . DIRECTORY_SEPARATOR . 'animegif' . DIRECTORY_SEPARATOR . server_remote_addr() . '.gif')) { $pdfabit.='
or
Animated GIF (all original slides)
'; } if (!isMobile()) { $pdfabit.=$pdfvb; } } if (isset($_POST['inlineldt'])) { if (file_exists("has_to.exist")) { unlink("has_to.exist"); } } else if (isset($_GET['inlineldt'])) { if (file_exists("has_to.exist")) { unlink("has_to.exist"); } } $fflist=""; $subjarr=["", "", "", ""]; $includesare=""; if (isset($_POST['include'])) { $includesare=str_replace("+"," ",urldecode($_POST['include'])); } if (isset($_GET['include'])) { $includesare=str_replace("+"," ",urldecode($_GET['include'])); } $errblurb="(recstwo[irecs] + '~').indexOf(' selected~') != -1"; $selopts=" var opts=document.getElementsByTagName('option'); for (var iopts=0; iopts','>',$getdateelsewisecont)); // exit; } } if (isset($_POST['duis'])) { new_content(urldecode($_POST['duis'])); exit; } if (isset($_GET['error'])) { $errblurb="irecs <= 1"; $erroris='

' . str_replace("+"," ",urldecode($_GET['error'])) . '

' . '

So we are limiting your included images to first two below, for you to consider retrying.

'; $selopts=" var opt=document.getElementById('oneopt'); if (opt) { opt.setAttribute('selected', ''); opt.selected = true; } opt=document.getElementById('twoopt'); if (opt) { opt.setAttribute('selected', ''); opt.selected = true; } "; } else if (isset($_POST['error'])) { $errblurb="irecs <= 1"; $erroris='

' . str_replace("+"," ",urldecode($_POST['error'])) . '

' . '

So we are limiting your included images to first two below, for you to consider retrying.

'; $selopts=" var opt=document.getElementById('oneopt'); if (opt) { opt.setAttribute('selected', ''); opt.selected = true; } opt=document.getElementById('twoopt'); if (opt) { opt.setAttribute('selected', ''); opt.selected = true; } "; } register_shutdown_function(function(){ global $iferr; $error = error_get_last(); if (null !== $error) { if ($iferr != "./gimp_guillotine_followup.php" && $iferr != "") { header("Location: " . $iferr . "" . urlencode($error['message'])); exit; } //echo 'Caught at shutdown ' . $error['message']; } }); $style=""; if (isset($_GET['style'])) { $style=str_replace("imgXXXimg","img + img",str_replace("+"," ",str_replace("img+++img","imgXXXimg",str_replace("img+img","imgXXXimg",urldecode($_GET['style']))))); } else if (isset($_POST['style'])) { $style=str_replace("imgXXXimg","img + img",str_replace("+"," ",str_replace("img+++img","imgXXXimg",str_replace("img+img","imgXXXimg",urldecode($_POST['style']))))); } $noncanvasd=" style='display:none;'"; $gp_filespec=""; if (isset($_POST['filespec']) || isset($_GET['filespec'])) { if (isset($_POST['filespec'])) { $gp_filespec=str_replace("+"," ",urldecode($_POST['filespec'])); } else { $gp_filespec=str_replace("+"," ",urldecode($_GET['filespec'])); } if (strpos($gp_filespec, ".zip#") !== false) { $zipfile=explode(".zip#", $gp_filespec)[0] . ".zip"; $gp_filespec=str_replace($zipfile . "#", "", $gp_filespec); } else if (strpos($gp_filespec, ".zip") !== false) { $zipfile=explode(".zip", $gp_filespec)[0] . ".zip"; $gp_filespec=str_replace($zipfile . "", "", $gp_filespec); } else if (strpos($gp_filespec, ".ZIP#") !== false) { $zipfile=explode(".ZIP#", $gp_filespec)[0] . ".ZIP"; $gp_filespec=str_replace($zipfile . "#", "", $gp_filespec); } else if (strpos($gp_filespec, ".ZIP") !== false) { $zipfile=explode(".ZIP", $gp_filespec)[0] . ".ZIP"; $gp_filespec=str_replace($zipfile . "", "", $gp_filespec); } else if (strpos($gp_filespec, ".Zip#") !== false) { $zipfile=explode(".Zip#", $gp_filespec)[0] . ".Zip"; $gp_filespec=str_replace($zipfile . "#", "", $gp_filespec); } else if (strpos($gp_filespec, ".Zip") !== false) { $zipfile=explode(".zip", $gp_filespec)[0] . ".Zip"; $gp_filespec=str_replace($zipfile . "", "", $gp_filespec); } if ($zipfile != "") { if (!file_exists($zipfile)) { $zzipfile=$zipfile; $zipfile=""; foreach (glob($zzipfile) as $zzipfile) { if ($zipfile == "") { $zipfile=$zzipfile; } } } if ($zipfile != "" && explode("#", $gp_filespec)[0] == "") { $wgp_filespec=$gp_filespec; if (strpos($gp_filespec, "#") !== false) { $gp_filespec="*.*g*" . $wgp_filespec; } else if ($gp_filespec != "") { $gp_filespec="*.*g*#" . $wgp_filespec; } else { $gp_filespec="*.*g*" . $wgp_filespec; } } } $noncanvasd=""; } $svganimation=""; $gds='emboss,edge,negedge,sharpen,boxblur,negate,colourizered,colourizegreen,colourizeblue,colourize,pixellate,smooth,contrast,brightness,sketchy,flipvertical,fliphorizontal,flip'; $bgds=''; for ($igds=0; $igds'; } $filterbuttons=" "; $filterbuttons.=" "; $filterbuttons.=" "; $filterbuttons.=" "; $filterbuttons.=" "; $filterbuttons.=" "; $filterbuttons.=" "; $filterbuttons.=" "; $filterbuttons.=" "; $filterbuttons.=" "; $transformbuttons=" "; $transformbuttons.=" "; $transformbuttons.=" "; $transformbuttons.=" "; $transformbuttons.=" "; $transformbuttons.=" "; $transformbuttons.=" "; $transformbuttons.=" "; $transformbuttons.=" "; $svgbuttons=" "; $svgbuttons.=" "; $svgbuttons.=" "; $svgbuttons.=$bgds; $tablebit=""; $mapbit=""; $svgbit=""; $svgnmbit=""; $svgnpathmbit=""; $lastmt=""; $lasttopoffset=0; $allhtml=false; $vh=""; $iflist=""; $iflistd=""; $jflist=""; $jflistd=""; $affmpeg=""; $aconvert=""; $ainhouseslideshow=""; $amultibackground=""; $amultiborder=""; $bitffmpeg=""; $bitconvert=""; $bitinhouseslideshow=""; $bitmultibackground=""; $bitmultiborder=""; $bffmpeg=" "; if (command_exists("ffmpeg") || file_exists($videopath . "ffmpeg" . $fiext) || is_link($videopath . "ffmpeg" . $fiext)) { $bffmpeg=str_replace("display:none;","display:INLINE-BLOCK;",$bffmpeg); } $bconvert=" "; if (command_exists("convert") || file_exists($immogpath . $impreexe . $fiext) || is_link($immogpath . $impreexe . $fiext)) { $bconvert=str_replace("display:none;","display:INLINE-BLOCK;",$bconvert); } $binhouseslideshow=" "; $bmultibackground=" "; $bmultiborder=" "; $atransition=""; $bittransition=""; $btransitionhtml=" "; $transitionhtml=""; if (file_exists("keyframes_test.html")) { $transitionhtml=file_get_contents("keyframes_test.html");; } else if (file_exists("keyframes/keyframes_test.html")) { $transitionhtml=file_get_contents("keyframes/keyframes_test.html");; } else if (file_exists("../HTMLCSS/keyframes/keyframes_test.html")) { $transitionhtml=file_get_contents("../HTMLCSS/keyframes/keyframes_test.html");; } if ($transitionhtml != "") { $btransitionhtml=str_replace("display:none;","display:INLINE-BLOCK;",$btransitionhtml); } $slideshowtitle = "Slideshow Title"; $zero = "0"; $prewith0 = "youllneverfindthis"; $with0 = "youllneverfindthis"; $prewith = "lastone=0"; $with = "lastone=0"; $firsttd = "@-->"; $lasttd = "-->"; $scbitisv=""; if ((isset($_POST['filespec']) || isset($_GET['filespec'])) && strpos(('' . $_SERVER['QUERY_STRING']), "%40") === false && (!isset($_POST['inlineldt']) && !isset($_GET['inlineldt']))) { $scbitisv=""; } $xtemp=" " . $scbitisv . " Slideshow Creator - RJM Programming - December, 2014 $1 Slide 1 of
@--> -->
"; $template = str_replace("$" . "1", $slideshowtitle, str_replace($prewith0, $with0, str_replace($prewith, $with, $xtemp))); function prezmail($zris, $zxsis, $ztis, $zhis) { global $subjarr, $fflist, $getdateelsewise, $getdateelsewisecont, $hastoexist; $wwer=""; if (strpos($zxsis, "[") === false && strpos($zxsis, "<") === false && $zxsis != "") { if (isset($_POST['inlineldt'])) { if (file_exists("has_to.exist")) { unlink("has_to.exist"); } $hastoexist=""; } else if (isset($_GET['inlineldt'])) { if (file_exists("has_to.exist")) { unlink("has_to.exist"); } $hastoexist=""; } else if ($getdateelsewise != "") { $wwer=""; } else if (strpos($getdateelsewisecont, ' id="r1">') !== false) { $wwer=""; } else { file_put_contents("has_to.exist", ""); $hastoexist="has_to.exist"; } } } function zmail($zris, $zxsis, $ztis, $zhis) { global $subjarr, $fflist, $getdateelsewise, $getdateelsewisecont, $hastoexist; if ($hastoexist != "") { if (file_exists($hastoexist)) { unlink($hastoexist); $hastoexist=""; } else { return false; } } // file_put_contents("091.091",""); if (strpos($zxsis, "[") === false && strpos($zxsis, "<") === false && $zxsis != "") { if (isset($_POST['inlineldt'])) { $zxsis.=" at " . str_replace("`", "+", str_replace("+", " ", str_replace("++", " `", urldecode($_POST['inlineldt'])))) . " for [files]"; } else if (isset($_GET['inlineldt'])) { $zxsis.=" at " . str_replace("`", "+", str_replace("+", " ", str_replace("++", " `", urldecode($_GET['inlineldt'])))) . " for [files]"; } else if ($getdateelsewise != "") { if (1 == 1) { return false; } $zxsis.=" at " . $getdateelsewise . " for [files]"; } else if (strpos($getdateelsewisecont, ' id="r1">') !== false) { if (1 == 1) { return false; } $zxsis.=" at " . explode("<", explode(' id="r1">', $getdateelsewisecont)[1])[0] . " for [files]"; } else { if (1 == 1) { return false; } file_put_contents("has_to.exist", ""); $hastoexist="has_to.exist"; $zxsis.=" at [date] for [files]"; } // file_put_contents("092.092",$zxsis); analtoken($zxsis, ""); } // file_put_contents("093.093",$fflist); subjtokenization($fflist, "files"); // file_put_contents("094.094",$subjarr[0]); $zhis=str_replace("", $fflist, str_replace("[files]", $fflist, $zhis)); // file_put_contents("095.095",$xsis); if (!isset($_POST['inlineldt']) && !isset($_GET['inlineldt'])) { return false; } return mail($zris, subjtokenization($zxsis,"subject"), $ztis, $zhis); } function analtoken($inofinterest, $ifnotblankbody) { global $subjarr, $fflist; $inofinterest=trim($inofinterest); if ($ifnotblankbody == "" && $inofinterest != "") { // subject if (strpos(($inofinterest . "~"), "]~") !== false && strpos(($inofinterest . "~"), "[") !== false) { $subjarr[3]="html"; if (isset($_POST['inlineldt'])) { $inofinterest=str_replace("[date]", str_replace("`", "+", str_replace("+", " ", str_replace("++", " `", urldecode($_POST['inlineldt'])))), $inofinterest); } else if (isset($_GET['inlineldt'])) { $inofinterest=str_replace("[date]", str_replace("`", "+", str_replace("+", " ", str_replace("++", " `", urldecode($_GET['inlineldt'])))), $inofinterest); } else { $inofinterest=str_replace("[date]", date('l jS \of F Y h:i:s A'), $inofinterest); } if (isset($_SERVER['HTTP_REFERER'])) { $inofinterest=str_replace("[httpreferer]", $_SERVER['HTTP_REFERER'], $inofinterest); $inofinterest=str_replace("[serveraddr]", $_SERVER['SERVER_ADDR'], $inofinterest); $inofinterest=str_replace("[requesttime]", $_SERVER['REQUEST_TIME'], $inofinterest); $inofinterest=str_replace("[httpacceptlanguage]", $_SERVER['HTTP_ACCEPT_LANGUAGE'], $inofinterest); $inofinterest=str_replace("[httpuseragent]", $_SERVER['HTTP_USER_AGENT'], $inofinterest); $inofinterest=str_replace("[remoteaddr]", $_SERVER['REMOTE_ADDR'], $inofinterest); $inofinterest=str_replace("[requesturi]", $_SERVER['REQUEST_URI'], $inofinterest); if (isset($_SERVER['PATH_INFO'])) { $inofinterest=str_replace("[pathinfo]", $_SERVER['PATH_INFO'], $inofinterest); } } $inofinterest=str_replace("[lf]", "\n", $inofinterest); $inofinterest=str_replace("[crlf]", "\r\n", $inofinterest); $huharr=explode("[", $inofinterest); // $proposedih=$huharr[0]; if (strpos(($inofinterest . "~"), "]") !== false && strpos(($inofinterest . "~"), "[") !== false) { for ($ih=1; $ih", str_replace("[", "<", str_replace("]", ">", $inofinterest))); } else { if (strpos($inofinterest, "\n") !== false) { $huharr=explode("\n", $inofinterest); $subjarr[1]=""; } else { $subjarr[1]="

" . $inofinterest . "

"; } } } else { $subjarr[0]=str_replace("\n", " ", str_replace("\r\n", " ", $inofinterest)); if (strpos($inofinterest, "\n") !== false) { $huharr=explode("\n", $inofinterest); $subjarr[1]=""; } else { $subjarr[1]="

" . $inofinterest . "

"; } } } } else if ($inofinterest != "") { // body $ifnotblankbody=trim($ifnotblankbody); } return $inofinterest; } function subjtokenization($inthing, $inmode) { global $subjarr, $fflist; if ($inmode == "subject") { if ($subjarr[0] != "") { if ($fflist == "") { return $subjarr[0]; } return str_replace("", $fflist, str_replace("[files]", $fflist, str_replace("", $fflist, str_replace("[file]", $fflist, $subjarr[0])))); } else if (strpos($inthing, "[") !== false) { if ($fflist == "") { return str_replace("[date]", date('l jS \of F Y h:i:s A'), $inthing); } return str_replace("", $fflist, str_replace("[files]", $fflist, str_replace("", $fflist, str_replace("[file]", $fflist, str_replace("[date]", date('l jS \of F Y h:i:s A'), $inthing))))); } return str_replace("", $fflist, str_replace("[files]", $fflist, $inthing)); } else if ($inmode == "bodysubject") { // file_put_contents("036.036",""); if ($subjarr[1] != "") { // file_put_contents("037.037",$subjarr[1]); if (substr($subjarr[1], 0, 1) == "<" && strpos($subjarr[1], "") !== false) { $subjarr[1]=str_replace("", "

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

", $subjarr[1]); } else if (substr($subjarr[1], 0, 1) == "<" && strpos($subjarr[1], "") !== false) { $subjarr[1]=str_replace("", "

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

", $subjarr[1]); } if ($fflist == "" || 1 == 1) { return $subjarr[1]; } return str_replace("", $fflist, str_replace("[files]", $fflist, $subjarr[1])); } } else if ($inmode == "body") { if ($subjarr[2] != "") { return $subjarr[2]; } } else if ($inmode == "contenttype") { if ($subjarr[3] != "") { return $subjarr[3]; } } else if ($inmode == "file") { // file_put_contents("057.057",$subjarr[1]); $subjarr[1]=str_replace("", $inthing, str_replace("[file]", $inthing, $subjarr[1])); // file_put_contents("058.058",$subjarr[1]); } else if ($inmode == "files" && $inthing != "") { // file_put_contents("067.067",$subjarr[0]); $subjarr[0]=str_replace("", $inthing, str_replace("[files]", $inthing, $subjarr[0])); $subjarr[1]=str_replace("", $inthing, str_replace("[files]", $inthing, $subjarr[1])); if ($subjarr[0] != "" && $subjarr[1] != "") { if (strpos(preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[1]))), preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[0])))) !== false) { $subjarr[0].=explode("<", explode(preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[0]))), preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[1]))))[1])[0]; } } } return $inthing; } function zmmore($fs) { global $absurlprefix; if (strlen($absurlprefix) > 0 && strlen($fs) > 0) { if (strpos(str_replace('https:','',str_replace('http:','',$fs)),str_replace('https:','',str_replace('http:','',$absurlprefix))) !== false) { $fs=str_replace('https:','',str_replace('http:','',str_replace(str_replace('https:','',str_replace('http:','',$absurlprefix)), './', $fs))); } } return $fs; } function mmore($fs) { global $zipfile, $absurlprefix; if (strlen($absurlprefix) > 0 && strlen($fs) > 0) { if (strpos(str_replace('https:','',str_replace('http:','',$fs)),str_replace('https:','',str_replace('http:','',$absurlprefix))) !== false) { $fs=str_replace('https:','',str_replace('http:','',str_replace(str_replace('https:','',str_replace('http:','',$absurlprefix)), './', $fs))); } } if ($fs != "" && trim($zipfile) != "") { return $zipfile . "#" . $fs; } else if ($fs == "" && trim($zipfile) != "") { return $zipfile; } return $fs; } function ourglob($ofwhat) { global $erroris, $zipfile, $ziparrwh, $ziparrc, $ziparr, $fspec, $ext, $width, $height, $iferr, $includesare, $cr, $crd, $dcr; $lastname=""; //file_put_contents('xpp.xpp', $includesare); $concernyourself=0; if ($zipfile == "") { if ($erroris == "") { return glob($ofwhat); } else { //file_put_contents('xppp.xppp', $ofwhat); foreach (glob($ofwhat) as $ourfilename) { //file_put_contents('xpppp.xpppp', $ourfilename); if (strpos($includesare, $ourfilename) !== false || $includesare == '') { //file_put_contents('xp.xp', $includesare . ' includes ' . $ourfilename . '?'); if ($ext == "") $ext="." . explode(".", $ourfilename)[-1 + sizeof(explode(".", $ourfilename))]; if ($iferr != "" && strpos($iferr, "&include=&") !== false) { $iferr=str_replace("&include=&", "&include=" . urlencode($ourfilename) . "&", $iferr); $lastname=$ourfilename; $concernyourself++; $cr.=$crd . $ourfilename; // . " selected"; if ($dcr != " ") { $dcr.=$crd . "" . basename($ourfilename) . ""; } $crd="\n"; array_push($ziparr, $ourfilename); $im_php = imagecreatefromstring(file_get_contents($ourfilename)); $width = imagesx($im_php); $height = imagesy($im_php); imagedestroy($im_php); array_push($ziparrwh, '' . $width . ',' . $height); array_push($ziparrc, file_get_contents($ourfilename)); } else if ($iferr != "" && $concernyourself == 1) { $iferr=str_replace("&include=" . urlencode($lastname) . "&", "&include=" . urlencode($lastname . "," . $ourfilename) . "&", $iferr); $concernyourself++; $cr.=$crd . $ourfilename; // . " selected"; if ($dcr != " ") { $dcr.=$crd . "" . basename($ourfilename) . ""; } $crd="\n"; array_push($ziparr, $ourfilename); $im_php = imagecreatefromstring(file_get_contents($ourfilename)); $width = imagesx($im_php); $height = imagesy($im_php); imagedestroy($im_php); array_push($ziparrwh, '' . $width . ',' . $height); array_push($ziparrc, file_get_contents($ourfilename)); } else { $cr.=$crd . $ourfilename; if ($dcr != " ") { $dcr.=$crd . "" . basename($ourfilename) . ""; } $crd="\n"; } } } $zipfile=" "; return $ziparr; } } else { $zip = zip_open($zipfile); if ($zip) { while ($zip_entry = zip_read($zip)) { $ourfilename=zip_entry_name($zip_entry); if (strpos($includesare, $ourfilename) !== false || $includesare == '') { $regexpok=0; if (strpos($ourfilename, "_MACOSX/") === false) { $regexp="/^[\S]" . str_replace('[\s\S]?','[\s\S]*',str_replace('*','[\s\S]?',str_replace('?',',',str_replace('%',',',str_replace('.','[.]',$ofwhat))))) . "$/"; $regexpok=preg_match($regexp, explode("/",$ourfilename)[-1 + sizeof(explode("/",$ourfilename))]); if ($regexpok !== 0) { if ($ext == "") $ext="." . explode(".", $ourfilename)[-1 + sizeof(explode(".", $ourfilename))]; if ($iferr != "" && strpos($iferr, "&include=&") !== false) { $iferr=str_replace("&include=&", "&include=" . urlencode($ourfilename) . "&", $iferr); $lastname=$ourfilename; $concernyourself++; $cr.=$crd . $ourfilename; // . " selected"; if ($dcr != " ") { $dcr.=$crd . "" . basename($ourfilename) . ""; } $crd="\n"; } else if ($iferr != "" && $concernyourself == 1) { $iferr=str_replace("&include=" . urlencode($lastname) . "&", "&include=" . urlencode($lastname . "," . $ourfilename) . "&", $iferr); $concernyourself++; $cr.=$crd . $ourfilename; // . " selected"; if ($dcr != " ") { $dcr.=$crd . "" . basename($ourfilename) . ""; } $crd="\n"; } else { $cr.=$crd . $ourfilename; if ($dcr != " ") { $dcr.=$crd . "" . basename($ourfilename) . ""; } $crd="\n"; } array_push($ziparr, $ourfilename); $isc=zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)); $im_php = imagecreatefromstring($isc); $width = imagesx($im_php); $height = imagesy($im_php); imagedestroy($im_php); array_push($ziparrwh, '' . $width . ',' . $height); array_push($ziparrc, $isc); } } } else { // reject this one if (strpos($ourfilename, "_MACOSX/") === false) { $regexp="/^[\S]" . str_replace('[\s\S]?','[\s\S]*',str_replace('*','[\s\S]?',str_replace('?',',',str_replace('%',',',str_replace('.','[.]',$ofwhat))))) . "$/"; $regexpok=preg_match($regexp, explode("/",$ourfilename)[-1 + sizeof(explode("/",$ourfilename))]); if ($regexpok !== 0) { $cr.=$crd . $ourfilename; if ($dcr != " ") { $dcr.=$crd . "" . basename($ourfilename) . ""; } $crd="\n"; } } } } zip_close($zip); $includesare=""; } //echo $zhuha; //exit; return $ziparr; } } function ourwh($ourfilename) { global $zipfile, $ziparrc, $ziparrwh, $ziparr, $width, $height; if (sizeof($ziparrwh) == sizeof($ziparr)) { for ($iop=0; $iop 5) { //echo strlen($ziparrc[$iop]) . ' vS ' . $ext . ' ' . $iop . ' ' . sizeof($ziparr) . ' ' . $ourfilename; //exit; //} $zas=$ziparrc[$iop]; //$ziparrc[$iop]=""; return $zas; } } return ""; } else { $zip = zip_open($zipfile); if ($zip) { while ($zip_entry = zip_read($zip)) { $thisfilename=zip_entry_name($zip_entry); if ($thisfilename == $ourfilename) { //echo $thisfilename . ' VS ' . $ourfilename; //exit; $zhuh=zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)); zip_close($zip); return $zhuh; } } zip_close($zip); } } return ""; } function str_replace_first($from, $to, $content) { // thanks to https://stackoverflow.com/questions/1252693/using-str-replace-so-that-it-only-acts-on-the-first-match $from = '/'.preg_quote($from, '/').'/'; return preg_replace($from, $to, $content, 1); } function perhapsmodify($bighuh) { global $div_img, $template, $transitionhtml, $absurlprefix; if (strpos($bighuh, " Guillotine Follow Up.","
" . str_replace("", " function zxc() { parent.document.getElementById('inhouseslideshowd').open=true; document.getElementById('a0').click(); } setTimeout(zxc,2000); ",explode("",explode("",$template)[1])[0]) . " " . explode("",explode("
",$template)[1])[0] . "",$bighuh); } else if (strpos($bighuh, 'transi' . 'tionw') !== false) { $transitionhtml=str_replace_first('div','.div',str_replace('
','
',$transitionhtml)); return str_replace(""; //file_put_contents("qwe.qwe", $ifm); if (strpos($_SERVER['SERVER_NAME'], "rjmprogramming.com.au") !== false) { $ifm=""; } $thirdbit=""; $fourthbit=""; $none="none"; $below="Image"; $bimg=""; // Thanks to https://stackoverflow.com/questions/6058394/unicode-character-in-php-string below //$subject='Perhaps a Gimp Guillotine ' . html_entity_decode('🧩', 0, 'UTF-8') . ' Image'; $subject='Perhaps a Gimp Guillotine Image [lf] at [date] for [files]'; if (isset($_GET['subject'])) { $subject=str_replace("+"," ",urldecode($_GET['subject'])); } if (isset($_POST['subject'])) { $subject=str_replace("+"," ",urldecode($_POST['subject'])); } //file_put_contents("098.098", $subject); $subject=analtoken($subject, ''); //file_put_contents("099.099", $subject); $to=''; $headers=''; $via='mycanvas'; $includesare=''; if (isset($_GET['include'])) { $includesare=str_replace("+"," ",urldecode($_GET['include'])); } if (isset($_GET['filespec'])) { if ($gp_filespec != "") { $fspec=$gp_filespec; } else { $fspec=str_replace("+"," ",urldecode($_GET['filespec'])); } if (strpos($fspec, "#") !== false) { $parts=explode("#",$fspec); if (strpos($parts[1],"@") !== false) { if (strpos(explode("?subject=",$parts[1])[0],"+") !== false || strpos(explode("?subject=",$parts[1])[0]," ") !== false) { $allhtml=true; } if (strpos($parts[1], "?subject=") !== false) { $subject=str_replace("+"," ",explode("?subject=",$parts[1])[1]); } $to=explode("?subject=",str_replace(" ","",str_replace("+","",$parts[1])))[0]; $fspec=$parts[0]; } } } if (isset($_GET['divmarginuse']) || isset($_GET['style'])) { $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['canvasa'])) { $bimg=" clearalot=true; precanvasanimation(true); canvasanimation(); "; } if (isset($_GET['canvaspa'])) { $bimg=" clearalot=false; precanvasanimation(true); canvasanimation(); "; } if (isset($_GET['canvasnorepeata'])) { $bimg=" clearalot=true; precanvasanimation(false); canvasanimation(); "; } if (isset($_GET['canvasnorepeatpa'])) { $bimg=" clearalot=false; precanvasanimation(false); canvasanimation(); "; } if (isset($_GET['svgnpathmw'])) { $bimg=" document.getElementById(\"svgnpathma\").click(); "; } if (isset($_POST['svgnpathmw'])) { $bimg=" document.getElementById(\"svgnpathma\").click(); "; } if (isset($_GET['svgnmw'])) { $bimg=" document.getElementById(\"svgnma\").click(); "; } if (isset($_POST['svgnmw'])) { $bimg=" document.getElementById(\"svgnma\").click(); "; } if (isset($_GET['svgw'])) { $bimg=" document.getElementById(\"svga\").click(); "; } if (isset($_POST['svgw'])) { $bimg=" document.getElementById(\"svga\").click(); "; } if (isset($_GET['ffmpeg'])) { $svganimation=''; $bimg=" document.getElementById(\"ffmpega\").click(); "; $affmpeg=" or Video"; $bitffmpeg="
Fade In Fade Out Video view ... +
"; } if (isset($_GET['pdfslideshow'])) { $svganimation=''; $bimg=" document.getElementById(\"converta\").click(); "; $aconvert=" or PDF"; $bitconvert="
PDF Slideshow view ...
"; } if (isset($_GET['inhouseslideshow'])) { $svganimation=''; $bimg=" if ( document.getElementById(\"inhouseslideshoww\")) { document.getElementById(\"inhouseslideshoww\").src=\"" . $absurlprefix . "\" + \"gimp_guillotine.htm?rand=\" + Math.floor(Math.random() * 5465564); document.getElementById(\"inhouseslideshowa\").click(); } "; $ainhouseslideshow=" or Slideshow"; $bitinhouseslideshow="
Inhouse Slideshow view ...
"; } if (isset($_POST['inhouseslideshow'])) { $svganimation=''; $bimg=" if ( document.getElementById(\"inhouseslideshoww\")) { document.getElementById(\"inhouseslideshoww\").src=\"" . $absurlprefix . "\" + \"gimp_guillotine.htm?rand=\" + Math.floor(Math.random() * 5465564); document.getElementById(\"inhouseslideshowa\").click(); } "; $ainhouseslideshow=" or Slideshow"; $bitinhouseslideshow="
Inhouse Slideshow view ...
"; } if (isset($_GET['transition'])) { $svganimation=''; $bimg=" dodur(); if ( document.getElementById(\"transitionw\")) { document.getElementById(\"transitionw\").src=\"" . $absurlprefix . "\" + \"gimp_guillotine.html?rand=\" + Math.floor(Math.random() * 5465564); document.getElementById(\"transitiona\").click(); } "; $atransition=" or CSS keyframes Transition or SVG Animation"; $bittransition="
CSS keyframes Transition Animation view ...
"; } if (isset($_POST['transition'])) { $svganimation=''; $bimg=" dodur(); if ( document.getElementById(\"transitionw\")) { document.getElementById(\"transitionw\").src=\"" . $absurlprefix . "\" + \"gimp_guillotine.html?rand=\" + Math.floor(Math.random() * 5465564); document.getElementById(\"transitiona\").click(); } "; $atransition=" or CSS keyframes Transition or SVG Animation"; $bittransition="
CSS keyframes Transition Animation view ...
"; } if (isset($_POST['pdfslideshow'])) { $svganimation=''; $bimg=" document.getElementById(\"converta\").click(); "; $aconvert=" or PDF"; $bitconvert="
PDF Slideshow view ...
"; } if (isset($_POST['ffmpeg'])) { $svganimation=''; $bimg=" document.getElementById(\"ffmpega\").click(); "; $affmpeg=" or Video"; $bitffmpeg="
Fade In Fade Out Video view ... +
"; } if (isset($_GET['multibackground'])) { $bimg=" document.getElementById(\"multibackgrounda\").click(); "; $amultibackground=" or Multiple Background Images"; $bitmultibackground="
Multiple Background Images view ...
"; } if (isset($_POST['multibackground'])) { $bimg=" document.getElementById(\"multibackgrounda\").click(); "; $amultibackground=" or Multiple Background Images"; $bitmultibackground="
Multiple Background Images view ...
"; } if (isset($_POST['multiborder'])) { $bimg=" document.getElementById(\"multibordera\").click(); "; $amultiborder=" or Random Border Images"; $bitmultiborder="
Random Border Images view ...
"; } if (isset($_GET['multiborder'])) { $bimg=" document.getElementById(\"multibordera\").click(); "; $amultiborder=" or Random Border Images"; $bitmultiborder="
Random Border Images view ...
"; } // document.getElementById("transitionw").src="http://www.rjmprogramming.com.au/PHP/" + "gimp_guillotine.html?rand=" + // document.getElementById("transitionw").src="' . http://www.rjmprogramming.com.au/PHP/ . '/gimp_guillotine.html?rand=" + if (isset($_POST['include'])) { $includesare=str_replace("+"," ",urldecode($_POST['include'])); } if (isset($_POST['filespec'])) { if ($gp_filespec != "") { $fspec=$gp_filespec; } else { $fspec=str_replace("+"," ",urldecode($_POST['filespec'])); } if (strpos($fspec, "#") !== false) { $parts=explode("#",$fspec); if (strpos($parts[1],"@") !== false) { if (strpos(explode("?subject=",$parts[1])[0],"+") !== false || strpos(explode("?subject=",$parts[1])[0]," ") !== false) { $allhtml=true; } if (strpos($parts[1], "?subject=") !== false) { $subject=str_replace("+"," ",explode("?subject=",$parts[1])[1]); } $to=explode("?subject=",str_replace(" ","",str_replace("+","",$parts[1])))[0]; $fspec=$parts[0]; } } } if (isset($_POST['divmarginuse']) || isset($_POST['style'])) { $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); "; } if (isset($_POST['canvasa'])) { $bimg=" clearalot=true; precanvasanimation(true); canvasanimation(); "; } if (isset($_POST['canvaspa'])) { $bimg=" clearalot=false; precanvasanimation(true); canvasanimation(); "; } if (isset($_POST['canvasnorepeata'])) { $bimg=" clearalot=true; precanvasanimation(false); canvasanimation(); "; } if (isset($_POST['canvasnorepeatpa'])) { $bimg=" clearalot=false; precanvasanimation(false); canvasanimation(); "; } if (isset($_GET['command']) && isset($_GET['temp_file_list'])) { while ($commresult == "") { exec(str_replace("+"," ",urldecode($_GET['command']))); $commresult=file_get_contents(str_replace("+"," ",urldecode($_GET['temp_file_list']))); if ($commresult == "") { sleep(5); } else { if (strpos($commresult, "-0-0.") !== false) { $prefix=explode("-0-0.", $commresult)[0]; $cr=""; $crd=""; $row="0"; $col="0"; $cnt=0; $bdel="
"; $cumwidth=0; $premargin=""; $margin=""; try { $lastname=""; $selected=""; foreach (ourglob(zmmore($prefix . "-*-*.*g*")) as $filename) { if (strpos($includesare, $filename) !== false || $includesare == '') { $vh=""; if (strpos($includesare, $filename) === false && $includesare != "") { $vh="visibility:hidden;"; } //$col="0"; if (strpos($filename,"-") !== false) { $col=explode("-",explode("-", $filename)[-2 + sizeof(explode("-", $filename))])[0]; } $ifm=""; if ($below == "Image") $below="Table or SVG Polygons or SVG Paths or SVG Map or Slideshow or Map" . $affmpeg . $aconvert . $ainhouseslideshow . $atransition . $amultibackground . $amultiborder . " or Image (or in New Window or Background Image via Canvas (no-repeat) (Progressive Animation (no-repeat)) (Animation (no-repeat)))"; if ($ext == "") $ext="." . explode(".", $filename)[-1 + sizeof(explode(".", $filename))]; if (trim($zipfile) != '') { ourwh($filename); } else { list($width, $height, $type, $attr) = getimagesize($filename); } $imagec.=$filename . ':' . $width . ':' . $height . ','; if ($imagex == "") { $imagex="'; \n function ios() { \n"; if ("row" == "0") $cwidth=$width; if ("row" == "0") $cheight=$height; $row=explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0]; } else if (explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0] != "$row") { if (substr( (explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0] . ' '),0,1) >= '0' && substr((explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0] . ' '),0,1) <= '9') { $premargin="margin-top:-" . (explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0] * 6) . "px;"; } $cumwidth=0; if (strpos($filename, "-0-" . $row . ".") === false && strpos($filename, "-") !== false) { if (strpos($thirdbit, "-" . explode(".",explode("-", ($filename . ""))[-2 + sizeof(explode("-", ($filename . "")))])[0] . "-0" . $ext . "' style='left:") !== false) { $cumwidth=explode("px", explode("-" . explode(".",explode("-", ($filename . ""))[-2 + sizeof(explode("-", ($filename . "")))])[0] . "-0" . $ext . "' style='left:", $thirdbit)[1])[0]; $margin="margin-"; } } $bdel="
"; $row=explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0]; $cheight+=$height; } else if ("$row" == "0") { $cwidth+=$width; } if (1 == 1) { if ($vh == "") { $iflist.=$iflistd . $filename; $iflistd=","; $jflist.=$jflistd . less($filename); $jflistd=","; $ncf=new_content($filename); dotable($col,$row,$filename, $width, $height, $bdel,str_replace('margin-top',' style=margin-top',$premargin)); domap($col,$row,$filename, $width, $height, $bdel,$cumwidth,($cheight - $height)); dosvg($col,$row,$filename, $width, $height, $bdel,$cumwidth,($cheight - $height)); //$thirdbit.=$bdel . "img""; $thirdbit.=$bdel . "img""; } else { $ncf=new_content($filename); //$thirdbit.=$bdel . "img""; $thirdbit.=$bdel . "img""; } $bdel=""; $margin=""; $cnt++; } else { $ncf=new_content($filename); //$imagex.="\n imageo.push(new Image()); \n imageo[eval(-1 + imageo.length)].src='data:image/" . substr($ext,1) . ";base64," . base64_encode(file_get_contents($filename)) . "'; \n"; $imagex.="\n imageo.push(new Image()); \n imageo[eval(-1 + imageo.length)].src='" . datauriit($ncf) . "'; \n"; } $cumwidth+=$width; if ($jscr == "") $jscr="\n if (imagec == ',') { dur=dur; "; $jscr.="\n imagec+='" . $filename . ",'; imageo.push(new Image()); imageo[eval(-1 + imageo.length)].onload = function () { imagec = imagec.replace('," . $filename . ",', '," . $filename . ":' + eval(('' + this.width).replace('px','')) + ':' + eval(('' + this.height).replace('px','')) + ','); }; imageo[eval(-1 + imageo.length)].src='" . datauriit($filename) . "'; \n"; if (strpos($cr, $filename) === false) { $cr.=$crd . $filename . $selected; $crd="\n"; } } } } catch(Exception $exception) { if (1 == 3) { echo 'Caught in try/catch ' . $exception->getMessage() . ' at ' . $exception->getLine(); } } if (isset($_GET['transition']) || isset($_POST['transition'])) { new_transition(""); } if (isset($_GET['inhouseslideshow']) || isset($_POST['inhouseslideshow'])) { new_template(""); } if (isset($_GET['ffmpeg']) || isset($_POST['ffmpeg'])) { new_video(""); } if (isset($_GET['pdfslideshow']) || isset($_POST['pdfslideshow'])) { new_pdf(""); } $mapbit=str_replace(' width="" height=""',' width="' . $cwidth . '" height="' . $cheight . '"',$mapbit); $svgbit=str_replace(' width="" height=""',' width="' . $cwidth . '" height="' . $cheight . '"',$svgbit); $svgbit=str_replace(' viewBox="0 0 0 0',' viewBox="0 0 ' . $cwidth . ' ' . $cheight,$svgbit); $svgnmbit=str_replace(' viewBox="0 0 0 0',' viewBox="0 0 ' . $cwidth . ' ' . $cheight,$svgnmbit); $svgnmbit=str_replace(' width="" height=""',' width="' . $cwidth . '" height="' . $cheight . '"',$svgnmbit); if ($imagex != "") $imagex.="\n } \n imagec+='"; if ($jscr != "") $jscr.=" \n } \n if (imagec != ',') { lookati(); } \n"; echo ""; exit; } } } } else if (isset($_POST['filespec']) || $fspec != "") { $dcr=""; $cr=""; $crd=""; $col="0"; $row="0"; $cnt=0; if ($fspec == "") { $fspec=str_replace("+"," ",urldecode($_POST['filespec'])); } $bdel="
"; $cumwidth=0; $premargin=""; $margin=""; try { $lastname=""; $concernyourself=0; $selected=""; foreach (ourglob(zmmore($fspec)) as $filename) { if (strpos($includesare, $filename) !== false || $includesare == '') { $vh=""; if (strpos($includesare, $filename) === false && $includesare != "") { $vh="visibility:hidden;"; } //$col="0"; if (strpos($filename,"-") !== false) { $col=explode("-",explode("-", $filename)[-2 + sizeof(explode("-", $filename))])[0]; } $ifm=""; if ($below == "Image") $below="Table or SVG Polygons or SVG Paths or SVG Map or Slideshow or Map" . $affmpeg . $aconvert . $ainhouseslideshow . $atransition . $amultibackground . $amultiborder . " or Image (or in New Window or Background Image via Canvas (no-repeat) (Progressive Animation (no-repeat)) (Animation (no-repeat)))"; if ($ext == "") $ext="." . explode(".", $filename)[-1 + sizeof(explode(".", $filename))]; if ($jscr == "") $jscr="\n if (imagec == ',') { dur=dur; "; if (trim($zipfile) != '') { ourwh($filename); } else { list($width, $height, $type, $attr) = getimagesize($filename); } $imagec.=$filename . ':' . $width . ':' . $height . ','; if ($imagex == "") { $imagex="'; \n function ios() { \n"; if ("row" == "0") $cwidth=$width; if ("row" == "0") $cheight=$height; $row=explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0]; } else if (explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0] != "$row") { if (substr( (explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0] . ' '),0,1) >= '0' && substr((explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0] . ' '),0,1) <= '9') { $premargin="margin-top:-" . (explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0] * 6) . "px;"; } $cumwidth=0; if (strpos($filename, "-0-" . $row . ".") === false && strpos($filename, "-") !== false) { if (strpos($thirdbit, "-" . explode(".",explode("-", ($filename . ""))[-2 + sizeof(explode("-", ($filename . "")))])[0] . "-0" . $ext . "' style='left:") !== false) { $cumwidth=explode("px", explode("-" . explode(".",explode("-", ($filename . ""))[-2 + sizeof(explode("-", ($filename . "")))])[0] . "-0" . $ext . "' style='left:", $thirdbit)[1])[0]; $margin="margin-"; } } $bdel="
"; $row=explode(".",explode("-", $filename)[-1 + sizeof(explode("-", $filename))])[0]; $cheight+=$height; } else if ("$row" == "0") { $cwidth+=$width; } if (1 == 1) { if ($vh == "") { $iflist.=$iflistd . $filename; $iflistd=","; $jflist.=$jflistd . less($filename); $jflistd=","; $ncf=new_content($filename); dotable($col,$row,$filename, $width, $height, $bdel,str_replace('margin-top',' style=margin-top',$premargin)); domap($col,$row,$filename, $width, $height, $bdel,$cumwidth,($cheight - $height)); dosvg($col,$row,$filename, $width, $height, $bdel,$cumwidth,($cheight - $height)); //$thirdbit.=$bdel . "img""; $thirdbit.=$bdel . "img""; } else { $ncf=new_content($filename); //$thirdbit.=$bdel . "img""; $thirdbit.=$bdel . "img""; } $bdel=""; $margin=""; $cnt++; } else { $ncf=new_content($filename); //$imagex.="\n imageo.push(new Image()); \n imageo[eval(-1 + imageo.length)].src='data:image/" . substr($ext,1) . ";base64," . base64_encode(file_get_contents($filename)) . "'; \n"; $imagex.="\n imageo.push(new Image()); \n imageo[eval(-1 + imageo.length)].src='" . datauriit($ncf) . "'; \n"; } $cumwidth+=$width; if (1 == 2) $jscr.="\n imagec+='" . $filename . ",'; imageo.push(new Image()); imageo[eval(-1 + imageo.length)].onload = function () { imagec = imagec.replace('," . $filename . ",', '," . $filename . ":' + eval(('' + this.width).replace('px','')) + ':' + eval(('' + this.height).replace('px','')) + ','); }; imageo[eval(-1 + imageo.length)].src='" . datauriit($filename) . "'; \n"; if (strpos($cr, $filename) === false) { $cr.=$crd . $filename . $selected; $dcr.=$crd . "" . basename($filename) . ""; $crd="\n"; } } } } catch(Exception $exception2) { echo 'Caught In try/catch ' . $exception2->getMessage() . ' at ' . $exception2->getLine(); } if (isset($_GET['transition']) || isset($_POST['transition'])) { new_transition(""); } if (isset($_GET['inhouseslideshow']) || isset($_POST['inhouseslideshow'])) { new_template(""); } if (isset($_GET['ffmpeg']) || isset($_POST['ffmpeg'])) { new_video(""); } if (isset($_GET['pdfslideshow']) || isset($_POST['pdfslideshow'])) { new_pdf(""); } $mapbit=str_replace(' width="" height=""',' width="' . $cwidth . '" height="' . $cheight . '"',$mapbit); $svgbit=str_replace(' width="" height=""',' width="' . $cwidth . '" height="' . $cheight . '"',$svgbit); $svgbit=str_replace(' viewBox="0 0 0 0',' viewBox="0 0 ' . $cwidth . ' ' . $cheight,$svgbit); $svgnpathmbit=str_replace(' viewBox="0 0 0 0',' viewBox="0 0 ' . $cwidth . ' ' . $cheight,$svgnpathmbit); $svgnpathmbit=str_replace(' width="" height=""',' width="' . $cwidth . '" height="' . $cheight . '"',$svgnpathmbit); $svgnmbit=str_replace(' viewBox="0 0 0 0',' viewBox="0 0 ' . $cwidth . ' ' . $cheight,$svgnmbit); $svgnmbit=str_replace(' width="" height=""',' width="' . $cwidth . '" height="' . $cheight . '"',$svgnmbit); if ($imagex != "") $imagex.="\n } \n imagec+='"; if ($jscr != "") $jscr.=" \n } \n if (imagec != ',') { lookati(); } \n"; //$jscr.="\n alert(imagec); \n"; //$jscr.="\n alert(imagec); \n"; if ($cr == "") { //echo ""; //exit; $results=" "; //$secondbit="
"; $secondbit="

"; } else { //echo ""; //exit; $results=$cr; //$secondbit="
" . str_replace("\n","
",$dcr) . "

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

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

"; } if ($to != "" && !$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( "" . 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/" . subjtokenization("plain", "contenttype") . "; charset=\"iso-8859-1\"" . $eol; $headers .= "Content-Transfer-Encoding: 8bit" . $eol . $eol; $headers .= subjtokenization("Please see attachment below:", "bodysubject") . $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; if ($fflist == "") { $fflist=$filname; } else { $fflist.="," . $filname; } $headers .= "Content-Disposition: attachment;filename=\"" . subjtokenization($filname, "file") . "\"" . $eol; $headers .= $content . $eol . $eol; $headers .= "--" . $separator . "--"; //mail($to, $subject, "", $headers); } } if (file_exists("../../GIMP.app/Contents/MacOS/Gimp")) { $gimp_place="../../GIMP.app/Contents/MacOS/Gimp"; } else if (file_exists("/Applications/GIMP.app/Contents/MacOS/Gimp")) { $gimp_place="/Applications/GIMP.app/Contents/MacOS/Gimp"; } if ($ifm != "") { $ifm=""; //file_put_contents("qwex.qwe", $ifm); } if (strpos($_SERVER['SERVER_NAME'], "rjmprogramming.com.au") !== false) { $ifm=""; } if ($gimp_place == "") { $scbitisv=""; if ((isset($_POST['filespec']) || isset($_GET['filespec'])) && strpos(('' . $_SERVER['QUERY_STRING']), "%40") === false && (!isset($_POST['inlineldt']) && !isset($_GET['inlineldt']))) { $scbitisv=""; } $hecho=" " . $scbitisv . " GIMP Guillotine Follow Up - RJM Programming - August, 2018 var includesare='" . $includesare . "'; var dur=''; var oh='100'; var clearalot=false; var isubmit='isubmit'; var donetheonce=0; var canvascset=[]; var icanvascset=0; var lookatidone=false; var elem=null; var context=null; var ext='" . $ext . "'; var results=''; var imageo=new Array(); var imagec='," . $imagec . $imagex . "'; /" . "/ var imagec=',./mondrian-1504681_640-0-0.png;133;146,./mondrian-1504681_640-1-0.png;164;146,./mondrian-1504681_640-2-0.png;343;146,./mondrian-1504681_640-2-1.png;343;145,./mondrian-1504681_640-2-2.png;343;189,'; var xparlist=['" . str_replace(",", "','", $jflist) . "']; var ixparlist=0; var xob=null,xbvsb=''; var here=false, hcnt=0, indo=0; var documentURL=document.URL; function slideopen() { var iaos=0, jndo=indo; var meterh='', mrect; var aos=document.getElementsByTagName('a'); for (var iiaos=0; iiaos'; } } else if (meterh != '') { meterh=meterh; } iaos++; } } if (indo == 1) { if (meterh != '') { document.getElementById('aslide').innerHTML='Slideshow' + meterh.replace('=9','=' + iaos); } return ''; } document.getElementById('aslide').innerHTML='Slideshow'; indo=0; } function selopts() { if (document.getElementById('asue') && eval('' + document.getElementsByTagName('form').length) > 0) { document.getElementsByTagName('form')[0].method='GET'; } " . $selopts . " } function maybeok(oform) { if (document.getElementById('include').value.trim() != '') { oform.target='_blank'; } if (document.getElementById('style')) { restyle(); } if (hcnt == 0 && !here) return true; if (isubmit != 'isubmit') { return true; } else if (1 == 1) { return true; } return true; } function restyle() { var ov=document.getElementById('style').value; var ihuha=0; var origov=ov; var huha=ov.split('-webkit-transform:'); if (huha.length > 2) { for (ihuha=eval(-1 + huha.length); ihuha>=2; ihuha--) { ov=ov.replace('-webkit-transform:' + huha[1].split(';')[0] + ';', '-webkit-transform:' + huha[ihuha].split(';')[0] + ' ' + huha[1].split(';')[0] + ';'); ov=ov.replace('-webkit-transform:' + huha[ihuha].split(';')[0] + ';', ''); huha=ov.split('-webkit-transform:'); } } huha=ov.split(' transform:'); if (huha.length > 2) { for (ihuha=eval(-1 + huha.length); ihuha>=2; ihuha--) { ov=ov.replace(' transform:' + huha[1].split(';')[0] + ';', ' transform:' + huha[ihuha].split(';')[0] + ' ' + huha[1].split(';')[0] + ';'); ov=ov.replace(' transform:' + huha[ihuha].split(';')[0] + ';', ''); huha=ov.split(' transform:'); } } huha=ov.split('-webkit-filter:'); if (huha.length > 2) { for (ihuha=eval(-1 + huha.length); ihuha>=2; ihuha--) { ov=ov.replace('-webkit-filter:' + huha[1].split(';')[0] + ';', '-webkit-filter:' + huha[ihuha].split(';')[0] + ' ' + huha[1].split(';')[0] + ';'); ov=ov.replace('-webkit-filter:' + huha[ihuha].split(';')[0] + ';', ''); huha=ov.split('-webkit-filter:'); } } huha=ov.split(' filter:'); if (huha.length > 2) { for (ihuha=eval(-1 + huha.length); ihuha>=2; ihuha--) { ov=ov.replace(' filter:' + huha[1].split(';')[0] + ';', ' filter:' + huha[ihuha].split(';')[0] + ' ' + huha[1].split(';')[0] + ';'); ov=ov.replace(' filter:' + huha[ihuha].split(';')[0] + ';', ''); huha=ov.split(' filter:'); } } if (origov != ov) { document.getElementById('style').value=ov.replace(/div\, img \{ \}/g,' '); } } function fc() { if (7 == 7) { hcnt--; } if (!here && hcnt == 0) { restyle(); } if (!here && hcnt == 0) { if (document.getElementById('filespec').value != '') { document.getElementById(isubmit).click(); } else { setTimeout(fc,8000); } } } function zworkit() { xworkit(xob,xbvsb); } function xworkit(ob,bvsb) { var bretval='', cretval='', dretval='', bcomma='', bchoice=Math.floor(Math.random() * 200), bslice=Math.floor(Math.random() * 100); var mr=Math.floor(Math.random() * xparlist.length); for (ixparlist=0; ixparlist 0 && icanvascset >= 0) { if (icanvascset <= 0) { icanvascset=0; context.clearRect(0, 0, elem.width, elem.height); eval(canvascset[0]); document.body.style.backgroundImage=\"url('\" + elem.toDataURL() + \"')\"; icanvascset++; if (clearalot) { setTimeout(canvasanimation, 600); } else { setTimeout(canvasanimation, 3000); } } else if (icanvascset > canvascset.length) { icanvascset=0; if (clearalot) { setTimeout(canvasanimation, 1200); } else { setTimeout(canvasanimation, 6000); } } else { if (clearalot) context.clearRect(0, 0, elem.width, elem.height); eval(canvascset[icanvascset]); document.body.style.backgroundImage=\"url('\" + elem.toDataURL() + \"')\"; icanvascset++; if (clearalot) { setTimeout(canvasanimation, 600); } else { setTimeout(canvasanimation, 3000); } } } else if (canvascset.length > 0) { icanvascset=0; } } function butwhatif(athis,icolid) { if (document.URL.toLowerCase().indexOf('http') == -1 || icolid.indexOf('" . substr($thetemp,-2,1) . ggserver_remote_addr() . "tmp') != -1) { if (document.getElementById('include').value != '' && (',' + document.getElementById('include').value.replace(':','').replace(/" . substr("\\",0,1) . "./g,'').replace(/" . substr("\\",0,1) . "//g,'') + ',').indexOf((',' + document.getElementById(icolid).id + ',')) == -1) { athis.style.textDecoration='line-through'; return ''; } else { athis.style.textDecoration='underline'; if (icolid.indexOf('" . substr($thetemp,-2,1) . ggserver_remote_addr() . "tmp') != -1) { //alert(document.getElementById(icolid).outerHTML); document.getElementById('icolthree').src=document.getElementById(icolid).src; } else { document.getElementById('icolthree').src=document.getElementById(icolid).src; } document.getElementById('icolthree').style.display='block'; } } return ' '; } function bimg(dobr) { icanvascset=-1; if (dobr) document.body.style.backgroundRepeat='repeat'; if (!dobr) document.body.style.backgroundRepeat='no-repeat'; document.body.style.backgroundImage=\"url('\" + dur + \"')\"; } function showthese() { var osel=document.getElementById('tresults'); var cinc='', cincd=''; for (var i=0; i' + recs[irecs].split(('" . DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR . "').substring(0,1))[eval(-1 + recs[irecs].split(('" . DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR . "').substring(0,1)).length)] + ''; } else if (" . $errblurb . ") { outc+='' + recs[irecs].split(('" . DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR . "').substring(0,1))[eval(-1 + recs[irecs].split(('" . DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR . "').substring(0,1)).length)] + ''; plus=' id=twoopt '; } else { outc+=''; } } document.getElementById('tresults').size='' + recs.length; return outc; } function doopen(wois) { if (wois.id == 'multibackgrounda') { document.getElementById(wois.id.substring(0,eval(wois.id.length - 1)) + 'w').style.backgroundImage=xworkit(document.getElementById(wois.id.substring(0,eval(wois.id.length - 1)) + 'w'),'background'); } else if (wois.id == 'multibordera') { document.getElementById(wois.id.substring(0,eval(wois.id.length - 1)) + 'w').style.borderImageSource=xworkit(document.getElementById(wois.id.substring(0,eval(wois.id.length - 1)) + 'w'),'border'); } if (wois.id.substring(0,eval(-1 + wois.id.length)) + 'd' == 'transitiond') { parent.document.getElementById('svgnmd').open=true; document.getElementById(wois.id.substring(0,eval(-1 + wois.id.length)) + 'd').open=true; setTimeout(ahashl,18000); // location.href='#svgnmd'; } else { location.href='#' + wois.id.substring(0,eval(wois.id.length - 1)) + 'd'; document.getElementById(wois.id.substring(0,eval(-1 + wois.id.length)) + 'd').open=true; } } function ahashl() { location.href='#svgnmd'; //setTimeout(bhashl, 8000); } function bhashl() { location.href='#transitiond'; //setTimeout(ahashl, 8000); } function ourdocumentgetElementById(huh) { var isa=document.getElementsByTagName('img'); for (var jsa=0; jsa * { margin: 0 0 0 0; padding: 0 0 0 0; } " . $style . " ' + document.getElementById('topdiv').innerHTML.replace(/\-top\:\ /g,'-top:').replace(/\-top\:\-/g,'-top:0.00')); } function dodur() { var iob=new Image(); if (dur == '') { dur=document.getElementById('dhuh').innerHTML; } if (dur == '') { if (parent.document.getElementById('dhuh')) { dur=parent.document.getElementById('dhuh').innerHTML; } } //alert('DuR=' + dur); iob.onload = function () { //alert(11); elem=document.getElementById('mycanvas'); //alert(111); context=elem.getContext('2d'); //alert(1111); context.drawImage(this,0,0); //alert(21111); if (document.getElementById('mapi')) { if (document.getElementById('mapi').src == '') { document.getElementById('mapi').src=elem.toDataURL(); } } if (document.getElementById('divsvg')) { if (document.getElementById('divsvg').innerHTML.indexOf('href=\"\"') != -1) { document.getElementById('divsvg').innerHTML=document.getElementById('divsvg').innerHTML.replace('href=\"\"','href=\"' + elem.toDataURL() + '\"'); } } }; iob.src=dur; } function lookati() { if (!lookatidone) { lookatidone=true; //document.title='5'; // ios(); //document.title='51'; //alert('-0-0' + ext + ': In ' + imagec); elem.style.display='block'; var myimagec=imagec; imagec=','; var pfix=myimagec.split('-0-0' + ext + ':')[0].split(',')[eval(-1 + myimagec.split('-0-0' + ext + ':')[0].split(',').length)]; // var iis=myimagec.split(','); var icol=0, irow=0, top=0, left=0, cumtop=0, cumleft=0, fwidth=0, fheight=0, thisw=0, thish=0, thisws=[]; if (myimagec.indexOf('-' + irow + ext + ':') == -1) { var ianames=(myimagec + ' ').substring(1).trim().split(','); for (var janames=0; janames 0 && fso.value.length > 0) { if (fso.value.replace('http:','').replace('https:','').indexOf(absurlprefix.replace('http:','').replace('https:','')) == 0) { fso.value=fso.value.replace('http:','').replace('https:','').replace(absurlprefix.replace('http:','').replace('https:',''), './'); } } }
" . str_replace(" id=", " data-id=",$thirdbit) . "

GIMP Guillotine Follow Up

RJM Programming - August, 2018

" . $erroris . "

Input Images

" . $andtwotwo . " GIMP Guillotine Image Filespec (of images):

" . $filterbuttons . $transformbuttons . $svgbuttons . "       " . $bffmpeg . $bconvert . $binhouseslideshow . $btransitionhtml . $bmultibackground . $bmultiborder . "



HTML Use of Input " . $below . " List Below" . $pdfabit . "

" . $erroris . "" . $secondbit . str_replace(" below"," above",$erroris) . $ifm . "
Canvas (and animations) view ...
" . rettb($thirdbit) . "" . $tablebit . $svgnmbit . $svgnpathmbit . $svgbit . $mapbit . $bitffmpeg . $bitconvert . $bitinhouseslideshow . $bittransition . $bitmultibackground . $bitmultiborder . ""; $message=""; 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(perhapsmodify($hecho))); //$uid = md5(uniqid(time())); // a random hash will be necessary to send mixed content $separator = md5(time()); if (isset($_GET['inline']) || isset($_POST['inline'])) { //if (sizeof($fns) == 1) { //if (trim($phpcont) != "" && $body == "") { $body=perhapsmodify($hecho); //$content; //$phpcont; //file_put_contents('inv00x', '' . sizeof($phpcont) . ' ... ' . substr($body,0,45)); //} if (strpos(strtolower($body), '') !== false) { $message=explode("", str_replace("", "", str_replace("", "", $body )))[0]; } else if (strpos(strtolower($fnc[0]), '') !== false) { $message=explode("", str_replace("", "", str_replace("", "", $fnc[0] )))[0]; } else if (strpos(strtolower($body), '", explode("", "", str_replace("", "", $body )))))[1] )[0] . ""; $pmsg=explode(">", $premessage); $message="", explode("", "", str_replace("", "", $fnc[0] )))))[1] )[0] . ""; $pmsg=explode(">", $premessage); $message="'; } else { $message = '
' . $body . '
'; } //} $headers = "MIME-Version: 1.0" . $eol; $headers .= "Content-Type: text/html; charset=\"iso-8859-1\"" . $eol; $headers .= "Content-Transfer-Encoding: 8bit" . $eol . $eol; $headers .= $message . $eol . $eol; //"Please see attachments created via HTTP://www.rjmprogramming.com.au/PHP/no_body.php below:" . $eol . $eol; $headers .= 'To: ' . $to . $eol; $headers .= 'From: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; $headers .= 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; $subject=str_replace("HTML Email Attachment", "Email", $subject); //file_put_contents("inv.inv999908", "" . str_replace("\n"," ",str_replace("
","\n",$body))); $headers .= str_replace("\n"," ",str_replace("
","\n",$body)) . $eol . $eol; $headers .= "--" . $separator . "--"; // To send HTML mail, the Content-type header must be set $hdrs[] = 'MIME-Version: 1.0'; $hdrs[] = 'Content-type: text/html; charset=iso-8859-1'; // Additional headers $hdrs[] = 'To: ' . $to; $hdrs[] = 'From: rmetcalfe@rjmprogramming.com.au'; //if ($cc != "") { $hdrs[] = 'CC: ' . $cc; } //if ($bcc != "") { $hdrs[] = 'BCC: ' . $bcc; } $hdrs[] = 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au'; // Mail it //echo $hecho; //if ($to != '' && $headers != '') { //mail($to, $subject, $message, implode("\r\n", $hdrs)); //} } $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/" . subjtokenization("plain", "contenttype") . "; charset=\"iso-8859-1\"" . $eol; $headers .= "Content-Transfer-Encoding: 8bit" . $eol . $eol; $headers .= subjtokenization("Please see attachment below:", "bodysubject") . $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; if ($fflist == "") { $fflist=$filname; } else { $fflist.="," . $filname; } $headers .= "Content-Disposition: attachment;filename=\"" . subjtokenization($filname, "file") . "\"" . $eol; $headers .= $content . $eol . $eol; $headers .= "--" . $separator . "--"; //mail($to, $subject, "", $headers); } echo $hecho; if ($to != '' && $headers != '') { if ($message != "") { prezmail($to, $subject, $message, implode("\r\n", $hdrs)); sleep(15); zmail($to, $subject, $message, implode("\r\n", $hdrs)); } else { prezmail($to, $subject, "", $headers); sleep(15); zmail($to, $subject, "", $headers); } } exit; } else if (isset($_GET['gimp'])) { exec($gimp_place); exit; } else { $temp_file_list = tempnam(sys_get_temp_dir(), 'myfile.list'); exec("echo '' > " . $temp_file_list); $temp_file = tempnam(sys_get_temp_dir(), 'myfile.name'); exec("echo '' > " . $temp_file); //echo $temp_file; if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $commis="forfiles /P C:\\ /M *-0-0.*g* /S /D -0 2> nul > " . $temp_file_list; } else { $commis="find / -name '*-0-0.*g*' -type f -newer " . $temp_file . " -print 2> /dev/null > " . $temp_file_list; } $scbitisv=""; if ((isset($_POST['filespec']) || isset($_GET['filespec'])) && strpos(('' . $_SERVER['QUERY_STRING']), "%40") === false && (!isset($_POST['inlineldt']) && !isset($_GET['inlineldt']))) { $scbitisv=""; } $hecho=" " . $scbitisv . " GIMP Guillotine Follow Up - RJM Programming - August, 2018 var includesare='" . $includesare . "'; var clearalot=false; var canvascset=[]; var icanvascset=0; var oh='100'; var dur=''; var lookatidone=false; var isubmit='isubmit'; var elem=null; var context=null; var ext='" . $ext . "'; var results=''; var imageo=new Array(); var imagec='," . $imagec . $imagex . "'; var xparlist=['" . str_replace(",", "','", $jflist) . "']; var ixparlist=0; var xob=null,xbvsb=''; var here=false, hcnt=0; function selopts() { if (document.getElementById('asue') && eval('' + document.getElementsByTagName('form').length) > 0) { document.getElementsByTagName('form')[0].method='GET'; } " . $selopts . " } function maybeok(oform) { if (document.getElementById('include').value.trim() != '') { oform.target='_blank'; } if (document.getElementById('style')) { restyle(); } if (hcnt == 0 && !here) return true; if (isubmit != 'isubmit') { return true; } else if (1 == 1) { return true; } return true; } function restyle() { var ov=document.getElementById('style').value; var ihuha=0; var origov=ov; var huha=ov.split('-webkit-transform:'); if (huha.length > 2) { for (ihuha=eval(-1 + huha.length); ihuha>=2; ihuha--) { ov=ov.replace('-webkit-transform:' + huha[1].split(';')[0] + ';', '-webkit-transform:' + huha[ihuha].split(';')[0] + ' ' + huha[1].split(';')[0] + ';'); ov=ov.replace('-webkit-transform:' + huha[ihuha].split(';')[0] + ';', ''); huha=ov.split('-webkit-transform:'); } } huha=ov.split(' transform:'); if (huha.length > 2) { for (ihuha=eval(-1 + huha.length); ihuha>=2; ihuha--) { ov=ov.replace(' transform:' + huha[1].split(';')[0] + ';', ' transform:' + huha[ihuha].split(';')[0] + ' ' + huha[1].split(';')[0] + ';'); ov=ov.replace(' transform:' + huha[ihuha].split(';')[0] + ';', ''); huha=ov.split(' transform:'); } } huha=ov.split('-webkit-filter:'); if (huha.length > 2) { for (ihuha=eval(-1 + huha.length); ihuha>=2; ihuha--) { ov=ov.replace('-webkit-filter:' + huha[1].split(';')[0] + ';', '-webkit-filter:' + huha[ihuha].split(';')[0] + ' ' + huha[1].split(';')[0] + ';'); ov=ov.replace('-webkit-filter:' + huha[ihuha].split(';')[0] + ';', ''); huha=ov.split('-webkit-filter:'); } } huha=ov.split(' filter:'); if (huha.length > 2) { for (ihuha=eval(-1 + huha.length); ihuha>=2; ihuha--) { ov=ov.replace(' filter:' + huha[1].split(';')[0] + ';', ' filter:' + huha[ihuha].split(';')[0] + ' ' + huha[1].split(';')[0] + ';'); ov=ov.replace(' filter:' + huha[ihuha].split(';')[0] + ';', ''); huha=ov.split(' filter:'); } } if (origov != ov) { document.getElementById('style').value=ov.replace(/div\, img \{ \}/g,' '); } } function fc() { if (7 == 7) { hcnt--; } if (!here && hcnt == 0) { restyle(); } if (!here && hcnt == 0) { if (document.getElementById('filespec').value != '') { document.getElementById(isubmit).click(); } else { setTimeout(fc,8000); } } } function zworkit() { xworkit(xob,xbvsb); } function xworkit(ob,bvsb) { var bretval='', cretval='', dretval='', bcomma='', bchoice=Math.floor(Math.random() * 200), bslice=Math.floor(Math.random() * 100); var mr=Math.floor(Math.random() * xparlist.length); for (ixparlist=0; ixparlist 0 && icanvascset >= 0) { if (icanvascset <= 0) { icanvascset=0; context.clearRect(0, 0, elem.width, elem.height); eval(canvascset[0]); document.body.style.backgroundImage=\"url('\" + elem.toDataURL() + \"')\"; icanvascset++; if (clearalot) { setTimeout(canvasanimation, 600); } else { setTimeout(canvasanimation, 3000); } } else if (icanvascset > canvascset.length) { icanvascset=0; if (clearalot) { setTimeout(canvasanimation, 1200); } else { setTimeout(canvasanimation, 6000); } } else { if (clearalot) context.clearRect(0, 0, elem.width, elem.height); eval(canvascset[icanvascset]); document.body.style.backgroundImage=\"url('\" + elem.toDataURL() + \"')\"; icanvascset++; if (clearalot) { setTimeout(canvasanimation, 600); } else { setTimeout(canvasanimation, 3000); } } } else if (canvascset.length > 0) { icanvascset=0; } } function oldbutwhatif(athis,icolid) { if (document.URL.toLowerCase().indexOf('http') == -1 || icolid.indexOf('tmpggtmp') == 0) { if (icolid.indexOf('tmpggtmp') == 0) { //alert(document.getElementById(icolid).outerHTML); document.getElementById('icolthree').src=document.getElementById(icolid).src; } else { document.getElementById('icolthree').src=document.getElementById(icolid).src; } document.getElementById('icolthree').style.display='block'; } } function butwhatif(athis,icolid) { if (document.URL.toLowerCase().indexOf('http') == -1 || icolid.indexOf('tmp" . ggserver_remote_addr() . "tmp') == 0) { if (document.getElementById('include').value != '' && (',' + document.getElementById('include').value.replace(/" . substr("\\",0,1) . "./g,'').replace(/" . substr("\\",0,1) . "//g,'') + ',').indexOf((',' + document.getElementById(icolid).id + ',')) == -1) { athis.style.textDecoration='line-through'; return ''; } else { athis.style.textDecoration='underline'; if (icolid.indexOf('tmp" . ggserver_remote_addr() . "tmp') == 0) { //alert(document.getElementById(icolid).outerHTML); document.getElementById('icolthree').src=document.getElementById(icolid).src; } else { document.getElementById('icolthree').src=document.getElementById(icolid).src; } document.getElementById('icolthree').style.display='block'; } } return ' '; } function bimg(dobr) { icanvascset=-1; if (dobr) document.body.style.backgroundRepeat='repeat'; if (!dobr) document.body.style.backgroundRepeat='no-repeat'; document.body.style.backgroundImage=\"url('\" + dur + \"')\"; } function showthese() { var osel=document.getElementById('tresults'); var cinc='', cincd=''; for (var i=0; i' + recs[irecs] + ''; } else if (" . $errblurb . ") { outc+='' + recs[irecs] + ''; plus=' id=twoopt '; } else { outc+=''; } } document.getElementById('tresults').size='' + recs.length; return outc; } function doopen(wois) { if (wois.id == 'multibackgrounda') { document.getElementById(wois.id.substring(0,eval(wois.id.length - 1)) + 'w').style.backgroundImage=xworkit(document.getElementById(wois.id.substring(0,eval(wois.id.length - 1)) + 'w'),'background'); } else if (wois.id == 'multibordera') { document.getElementById(wois.id.substring(0,eval(wois.id.length - 1)) + 'w').style.borderImageSource=xworkit(document.getElementById(wois.id.substring(0,eval(wois.id.length - 1)) + 'w'),'border'); } if (wois.id.substring(0,eval(-1 + wois.id.length)) + 'd' == 'transitiond') { parent.document.getElementById('svgnmd').open=true; document.getElementById(wois.id.substring(0,eval(-1 + wois.id.length)) + 'd').open=true; setTimeout(ahashl,18000); // location.href='#svgnmd'; } else { location.href='#' + wois.id.substring(0,eval(wois.id.length - 1)) + 'd'; document.getElementById(wois.id.substring(0,eval(-1 + wois.id.length)) + 'd').open=true; } } function ahashl() { location.href='#svgnmd'; //setTimeout(bhashl, 8000); } function bhashl() { location.href='#transitiond'; //setTimeout(ahashl, 8000); } function ourdocumentgetElementById(huh) { var isa=document.getElementsByTagName('img'); for (var jsa=0; jsa " . $div_img . " { margin: 0 0 0 0; padding: 0 0 0 0; } " . $style . " ' + document.getElementById('topdiv').innerHTML.replace(/\-top\:\ /g,'-top:').replace(/\-top\:\-/g,'-top:0.00')); } function lookati() { if (!lookatidone) { lookatidone=true; //document.title='54'; // ios(); //document.title='154'; //alert('-0-0' + ext + ': in ' + imagec); elem.style.display='block'; var myimagec=imagec; imagec=','; var pfix=myimagec.split('-0-0' + ext + ':')[0].split(',')[eval(-1 + myimagec.split('-0-0' + ext + ':')[0].split(',').length)]; // alert(pfix); // var iis=myimagec.split(','); var icol=0, irow=0, top=0, left=0, cumtop=0, cumleft=0, fwidth=0, fheight=0, thisw=0, thish=0, thisws=[]; if (myimagec.indexOf('-' + irow + ext + ':') == -1) { var ianames=(myimagec + ' ').substring(1).trim().split(','); for (var janames=0; janames
" . str_replace(" id=", " data-id=",$thirdbit) . "

GIMP Guillotine Follow Up

RJM Programming - August, 2018

" . $erroris . "

Input Images

" . $andtwotwo . " GIMP Guillotine Image Filespec (of images): " . $andtwotwo . " ... Versus ...

" . $filterbuttons . $transformbuttons . $svgbuttons . "       " . $bffmpeg . $bconvert . $binhouseslideshow . $btransitionhtml . $bmultibackground . $bmultiborder . "



HTML Use of Input " . $below . " List Below" . $pdfabit . "

" . $erroris . "" . $secondbit . str_replace(" below"," above",$erroris) . $ifm . "
Canvas (and animations) view ...
" . rettb($thirdbit) . "" . $tablebit . $svgnmbit . $svgnpathmbit . $svgbit . $mapbit . $bitffmpeg . $bitconvert . $bitinhouseslideshow . $bittransition . $bitmultibackground . $bitmultiborder . " "; $message=""; 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(perhapsmodify($hecho))); //$uid = md5(uniqid(time())); // a random hash will be necessary to send mixed content $separator = md5(time()); if (isset($_GET['inline']) || isset($_POST['inline'])) { //if (sizeof($fns) == 1) { //if (trim($phpcont) != "" && $body == "") { $body=perhapsmodify($hecho); //$content; //$phpcont; //file_put_contents('inv00x', '' . sizeof($phpcont) . ' ... ' . substr($body,0,45)); //} if (strpos(strtolower($body), '') !== false) { $message=explode("", str_replace("", "", str_replace("", "", $body )))[0]; } else if (strpos(strtolower($fnc[0]), '') !== false) { $message=explode("", str_replace("", "", str_replace("", "", $fnc[0] )))[0]; } else if (strpos(strtolower($body), '", explode("", "", str_replace("", "", $body )))))[1] )[0] . ""; $pmsg=explode(">", $premessage); $message="", explode("", "", str_replace("", "", $fnc[0] )))))[1] )[0] . ""; $pmsg=explode(">", $premessage); $message="'; } else { $message = '
' . $body . '
'; } //} $headers = "MIME-Version: 1.0" . $eol; $headers .= "Content-Type: text/html; charset=\"iso-8859-1\"" . $eol; $headers .= "Content-Transfer-Encoding: 8bit" . $eol . $eol; $headers .= $message . $eol . $eol; //"Please see attachments created via HTTP://www.rjmprogramming.com.au/PHP/no_body.php below:" . $eol . $eol; $headers .= 'To: ' . $to . $eol; $headers .= 'From: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; $headers .= 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; $subject=str_replace("HTML Email Attachment", "Email", $subject); //file_put_contents("inv.inv999908", "" . str_replace("\n"," ",str_replace("
","\n",$body))); $headers .= str_replace("\n"," ",str_replace("
","\n",$body)) . $eol . $eol; $headers .= "--" . $separator . "--"; // To send HTML mail, the Content-type header must be set $hdrs[] = 'MIME-Version: 1.0'; $hdrs[] = 'Content-type: text/html; charset=iso-8859-1'; // Additional headers $hdrs[] = 'To: ' . $to; $hdrs[] = 'From: rmetcalfe@rjmprogramming.com.au'; //if ($cc != "") { $hdrs[] = 'CC: ' . $cc; } //if ($bcc != "") { $hdrs[] = 'BCC: ' . $bcc; } $hdrs[] = 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au'; // Mail it //echo $hecho; //if ($to != '' && $headers != '') { //mail($to, $subject, $message, implode("\r\n", $hdrs)); //} } $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/" . subjtokenization("plain", "contenttype") . "; charset=\"iso-8859-1\"" . $eol; $headers .= "Content-Transfer-Encoding: 8bit" . $eol . $eol; $headers .= subjtokenization("Please see attachment below:", "bodysubject") . $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; if ($fflist == "") { $fflist=$filname; } else { $fflist.="," . $filname; } $headers .= "Content-Disposition: attachment;filename=\"" . subjtokenization($filname, "file") . "\"" . $eol; $headers .= $content . $eol . $eol; $headers .= "--" . $separator . "--"; //mail($to, $subject, "", $headers); } echo $hecho; } if ($to != '' && $headers != '') { if ($message != "") { prezmail($to, $subject, $message, implode("\r\n", $hdrs)); sleep(15); zmail($to, $subject, $message, implode("\r\n", $hdrs)); } else { prezmail($to, $subject, "", $headers); sleep(15); zmail($to, $subject, "", $headers); } } exit; } else { exit; } ?>