'; }
if (isset($_POST['tvalsn'])) { $tvalsn=(str_replace("+"," ",urldecode($_POST['tvalsn']))); $ttitled=''; }
if (isset($_GET['tvalsa'])) { $detsum="Show ...
"; $sumdet=" "; $tvalsa=(str_replace("+"," ",urldecode($_GET['tvalsa']))); $atitled=''; }
if (isset($_POST['tvalsa'])) { $detsum="Show ...
"; $sumdet=" "; $tvalsa=(str_replace("+"," ",urldecode($_POST['tvalsa']))); $atitled=''; }
if (isset($_GET['title'])) $agtext=(str_replace("+"," ",urldecode($_GET['title'])));
if (isset($_POST['title'])) $agtext=(str_replace("+"," ",urldecode($_POST['title'])));
if (isset($_GET['stitle'])) $agtext=(str_replace("+"," ",urldecode($_GET['stitle'])));
if (isset($_POST['stitle'])) $agtext=(str_replace("+"," ",urldecode($_POST['stitle'])));
if (isset($_GET['quizdelim'])) { if ($agtext == '') { $agtext='What is it?'; } if (!isset($_GET['watermarkmode'])) { $_GET['watermarkmode']='++'; } if (!isset($_GET['delimquiz'])) { $delimquiz='quizdelim'; $_GET['delimquiz']=$_GET['quizdelim']; } $titled=""; $fivebit=" \$five = (\$old_height - 25); \$twentyone = (\$old_height - 21 + 16); "; $fiveishbit=" \$five = (\$oldish_height - 25); \$twentyone = (\$oldish_height - 21 + 16); "; $wcd='double click puts watermark near top of image rather than bottom of image'; }
if (isset($_POST['quizdelim'])) { if ($agtext == '') { $agtext='What is it?'; } if (!isset($_POST['watermarkmode'])) { $_POST['watermarkmode']='++'; } if (!isset($_POST['delimquiz'])) { $delimquiz='quizdelim'; $_POST['delimquiz']=$_POST['quizdelim']; } $titled=""; $fivebit=" \$five = (\$old_height - 25); \$twentyone = (\$old_height - 21 + 16); "; $fiveishbit=" \$five = (\$oldish_height - 25); \$twentyone = (\$oldish_height - 21 + 16); "; $wcd='double click puts watermark near top of image rather than bottom of image'; }
if (isset($_GET['dtitle'])) { if (trim($agtext) == '') { $agtext=(str_replace("+"," ",urldecode($_GET['dtitle']))); } $titled=""; $fivebit=" \$five = (\$old_height - 25); \$twentyone = (\$old_height - 21 + 16); "; $fiveishbit=" \$five = (\$oldish_height - 25); \$twentyone = (\$oldish_height - 21 + 16); "; $wcd='double click puts watermark near top of image rather than bottom of image'; }
if (isset($_POST['dtitle'])) { if (trim($agtext) == '') { $agtext=(str_replace("+"," ",urldecode($_POST['dtitle']))); } $titled=""; $fivebit=" \$five = (\$old_height - 25); \$twentyone = (\$old_height - 21 + 16); "; $fiveishbit=" \$five = (\$oldish_height - 25); \$twentyone = (\$oldish_height - 21 + 16); "; $wcd='double click puts watermark near top of image rather than bottom of image'; }
if (isset($_GET['downtitle'])) { if (trim($agtext) == '') { $agtext=(str_replace("+"," ",urldecode($_GET['downtitle']))); } $titled=""; $fivebit=" \$five = (\$old_height - 25); \$twentyone = (\$old_height - 21 + 16); "; $fiveishbit=" \$five = (\$oldish_height - 25); \$twentyone = (\$oldish_height - 21 + 16); "; $wcd='double click puts watermark near top of image rather than bottom of image'; }
if (isset($_POST['downtitle'])) { if (trim($agtext) == '') { $agtext=(str_replace("+"," ",urldecode($_POST['downtitle']))); } $titled=""; $fivebit=" \$five = (\$old_height - 25); \$twentyone = (\$old_height - 21 + 16); "; $fiveishbit=" \$five = (\$oldish_height - 25); \$twentyone = (\$oldish_height - 21 + 16); "; $wcd='double click puts watermark near top of image rather than bottom of image'; }
if (isset($_GET['titled'])) { if (trim($agtext) == '') { $agtext=(str_replace("+"," ",urldecode($_GET['titled']))); } $titled=""; $fivebit=" \$five = (\$old_height - 25); \$twentyone = (\$old_height - 21 + 16); "; $fiveishbit=" \$five = (\$oldish_height - 25); \$twentyone = (\$oldish_height - 21 + 16); "; $wcd='double click puts watermark near top of image rather than bottom of image'; }
if (isset($_POST['titled'])) { if (trim($agtext) == '') { $agtext=(str_replace("+"," ",urldecode($_POST['titled']))); } $titled=""; $fivebit=" \$five = (\$old_height - 25); \$twentyone = (\$old_height - 21 + 16); "; $fiveishbit=" \$five = (\$oldish_height - 25); \$twentyone = (\$oldish_height - 21 + 16); "; $wcd='double click puts watermark near top of image rather than bottom of image'; }
if (isset($_GET['titledown'])) { if (trim($agtext) == '') { $agtext=(str_replace("+"," ",urldecode($_GET['titledown']))); } $titled=""; $fivebit=" \$five = (\$old_height - 25); \$twentyone = (\$old_height - 21 + 16); "; $fiveishbit=" \$five = (\$oldish_height - 25); \$twentyone = (\$oldish_height - 21 + 16); "; $wcd='double click puts watermark near top of image rather than bottom of image'; }
if (isset($_POST['titledown'])) { if (trim($agtext) == '') { $agtext=(str_replace("+"," ",urldecode($_POST['titledown']))); } $titled=""; $fivebit=" \$five = (\$old_height - 25); \$twentyone = (\$old_height - 21 + 16); "; $fiveishbit=" \$five = (\$oldish_height - 25); \$twentyone = (\$oldish_height - 21 + 16); "; $wcd='double click puts watermark near top of image rather than bottom of image'; }
$tofacoo=""; // Title on First and Count on Others
$twacoa=""; // Title With a Count on All
$nw=""; // No watermark
$stm="";
$wtsuffix="";
$setwm="";
$setwh="";
$wmcall="";
if (isset($_GET['titlemode'])) $stm=(str_replace("+"," ",urldecode($_GET['titlemode'])));
if (isset($_POST['titlemode'])) $stm=(str_replace("+"," ",urldecode($_POST['titlemode'])));
if (isset($_GET['stitlemode'])) $stm=(str_replace("+"," ",urldecode($_GET['stitlemode'])));
if (isset($_POST['stitlemode'])) $stm=(str_replace("+"," ",urldecode($_POST['stitlemode'])));
if (str_replace("Title on First and Count on Others"," ",$stm) == " ") {
$tofacoo=" selected";
$wmcall=" \n document.getElementById('watermarkmode').value=' '; watermarkchange(document.getElementById('watermarkmode')); \n ";
} else if (str_replace("Title With a Count on All"," ",$stm) == " ") {
$twacoa=" selected";
$wmcall=" \n document.getElementById('watermarkmode').value=' '; watermarkchange(document.getElementById('watermarkmode')); \n ";
} else if (str_replace("No Watermark","\n",$stm) == "\n") {
$nw=" selected";
$wmcall=" \n watermarkchange(document.getElementById('watermarkmode')); \n ";
} else if (strpos($stm,"No") !== false) {
$nw=" selected";
$wmcall=" \n watermarkchange(document.getElementById('watermarkmode')); \n ";
} else if (strpos($stm,"All") !== false) {
$twacoa=" selected";
$wmcall=" \n document.getElementById('watermarkmode').value=' '; watermarkchange(document.getElementById('watermarkmode')); \n ";
} else if (strpos($stm,"First") !== false) {
$tofacoo=" selected";
$wmcall=" \n document.getElementById('watermarkmode').value=' '; watermarkchange(document.getElementById('watermarkmode')); \n ";
}
$tc="";
if (isset($_GET['titlecolour'])) $tc=str_replace("#","",str_replace("+"," ",urldecode($_GET['titlecolour'])));
if (isset($_POST['titlecolour'])) $tc=str_replace("#","",str_replace("+"," ",urldecode($_POST['titlecolour'])));
if (isset($_GET['stitlecolour'])) $tc=str_replace("#","",str_replace("+"," ",urldecode($_GET['stitlecolour'])));
if (isset($_POST['stitlecolour'])) $tc=str_replace("#","",str_replace("+"," ",urldecode($_POST['stitlecolour'])));
if (isset($_GET['titlecolor'])) $tc=str_replace("#","",str_replace("+"," ",urldecode($_GET['titlecolor'])));
if (isset($_POST['titlecolor'])) $tc=str_replace("#","",str_replace("+"," ",urldecode($_POST['titlecolor'])));
if (isset($_GET['stitlecolor'])) $tc=str_replace("#","",str_replace("+"," ",urldecode($_GET['stitlecolor'])));
if (isset($_POST['stitlecolor'])) $tc=str_replace("#","",str_replace("+"," ",urldecode($_POST['stitlecolor'])));
$parentdot="";
$wopenerdot="";
$headerfuncscript="";
$headerfunchtml="";
if ($oncdt != '' && (isset($_GET['slideshow']) || isset($_POST['slideshow']))) {
$myow="-1";
$myoh="-1";
if (isset($_GET['ow']) && isset($_GET['oh'])) {
$myow="" . $_GET['ow'];
$myoh="" . $_GET['oh'];
} else if (isset($_POST['ow']) && isset($_POST['oh'])) {
$myow="" . $_POST['ow'];
$myoh="" . $_POST['oh'];
}
$parentdot="parent.";
$wopenerdot=""; //"window.opener.";
$headerfunchtml="
";
$headerfuncscript=str_replace("\r\n"," ",str_replace("\n"," ",str_replace("\r"," "," var ourdurforwop=0, ourresubmitis=0, prenewduis='', wtext=''; function rotateitchild(rotdegis, myimgois, mycanvrotone, mycanvrottwo, slidenumber,resubmitis,durforwop,butois,inw,inh) {
butois.style.backgroundColor='yellow';
var startw=eval('' + myimgois.width);
var starth=eval('' + myimgois.height);
var minusone=false;
if (('' + inw) == '-1' && ('' + inh) == '-1') {
minusone=true;
inw='' + window.opener.document.getElementById('mybigag').getAttribute('data-w');
inh='' + window.opener.document.getElementById('mybigag').getAttribute('data-h');
}
var endh=startw;
var endw=starth;
wtext='';
if (myimgois.src.indexOf('#') != -1) {
wtext=myimgois.src.replace(myimgois.src.split('#')[0], '');
}
ourresubmitis=resubmitis;
ourdurforwop=durforwop;
if (eval(rotdegis % 360) != 0) {
durforwop=0;
resubmitis=0;
mycanvrotone.width=startw;
mycanvrotone.height=starth;
mycanvrotone.getContext('2d').drawImage(myimgois,0,0);
if (Math.abs(rotdegis) != 90 && Math.abs(rotdegis) != 270) {
if (Math.abs(rotdegis) == 180) {
endw=startw;
endh=starth;
} else {
endw=Math.max(startw, starth);
endh=Math.max(startw, starth);
}
}
var img= new Image();
img.onload = function() {
var rotationCanvas = document.createElement('canvas');
rotationCanvas.width = endw;
rotationCanvas.height = endh;
var kcontext = rotationCanvas.getContext('2d');
kcontext.clearRect(0,0,rotationCanvas.width,rotationCanvas.height);
kcontext.save();
kcontext.translate(rotationCanvas.width/2,rotationCanvas.height/2);
kcontext.rotate(rotdegis*Math.PI/180);
kcontext.drawImage(img,-img.width/2,-img.height/2);
kcontext.restore();
prenewduis=rotationCanvas.toDataURL('image/png');
myimgois.src=prenewduis + wtext;
mycanvrottwo.width=endw;
mycanvrottwo.height=endh;
mycanvrottwo.getContext('2d').drawImage(myimgois,0,0);
prenewduis=mycanvrottwo.toDataURL('image/jpeg', 0.1);
window.opener.parent.document.getElementById('mycanvas').setAttribute('data-wtext', '' + wtext);
if (1 == 2) {
window.opener.parent.document.getElementById('mycanvas').width=endw;
window.opener.parent.document.getElementById('mycanvas').height=endh;
window.opener.parent.document.getElementById('mycanvas').getContext('2d').drawImage(myimgois,0,0);
window.opener.parent.document.getElementById('mycanvas').setAttribute('data-slide', '' + slidenumber);
if (1 == 1) {
window.opener.parent.document.getElementById('mycanvas').style.display='block';
setTimeout(function(){ window.opener.parent.document.getElementById('mycanvas').style.display='none'; }, 6000);
}
} else {
if (eval('' + inw) > 0 && eval('' + inh) > 0 && 1 == 7) {
if (eval('' + endw) > eval('' + inw) || eval('' + endh) > eval('' + inh)) {
if (minusone) {
while (eval('' + endw) > eval('' + inw) || eval('' + endh) > eval('' + inh)) {
inw*=1.01;
inh*=1.01;
}
window.opener.parent.document.getElementById('mycanvas').setAttribute('data-sugw', '' + inw);
window.opener.parent.document.getElementById('mycanvas').setAttribute('data-sugh', '' + inh);
} else if (1 == 1) {
while (eval('' + endw) > eval('' + inw) || eval('' + endh) > eval('' + inh)) {
inw*=1.01;
inh*=1.01;
}
window.opener.parent.document.getElementById('mycanvas').setAttribute('data-sugw', '' + inw);
window.opener.parent.document.getElementById('mycanvas').setAttribute('data-sugh', '' + inh);
} else {
window.opener.parent.document.getElementById('mycanvas').setAttribute('data-sugw', '' + Math.max(eval('' + endw), eval('' + inw)));
window.opener.parent.document.getElementById('mycanvas').setAttribute('data-sugh', '' + Math.max(eval('' + endh), eval('' + inh)));
}
}
}
window.opener.parent.document.getElementById('mycanvas').setAttribute('data-slide', '' + slidenumber + '.' + rotdegis);
}
window.opener.parent.document.getElementById('nolongerselfi').style.height='1px';
if (1 == 2) { window.opener.parent.document.getElementById(('slideshow' + slidenumber).replace(/^slideshow1$/g,'slideshow')).value=prenewduis + wtext; }
if (eval('' + inw) > 0 && eval('' + inh) > 0) {
if (eval('' + endw) > eval('' + inw) || eval('' + endh) > eval('' + inh)) {
if (minusone) {
while (eval('' + endw) > eval('' + inw) || eval('' + endh) > eval('' + inh)) {
inw*=1.01;
inh*=1.01;
}
window.opener.parent.document.getElementById('ow').value='' + Math.floor(eval('' + inw));
window.opener.parent.document.getElementById('oh').value='' + Math.floor(eval('' + inh));
} else if (1 == 1) {
while (eval('' + endw) > eval('' + inw) || eval('' + endh) > eval('' + inh)) {
inw*=1.01;
inh*=1.01;
}
window.opener.parent.document.getElementById('ow').value='' + Math.floor(eval('' + inw));
window.opener.parent.document.getElementById('oh').value='' + Math.floor(eval('' + inh));
} else {
window.opener.parent.document.getElementById('ow').value='' + Math.max(eval('' + endw), eval('' + inw));
window.opener.parent.document.getElementById('oh').value='' + Math.max(eval('' + endh), eval('' + inh));
}
}
}
if (('' + ourresubmitis) != '0') {
window.opener.parent.document.getElementById('nolongerselfi').style.zIndex='-1234';
setTimeout(function(){ window.opener.parent.document.getElementById('mysubmit').click(); }, 6000);
} else if (eval('' + ourdurforwop) <= 0) {
setTimeout(function(){ window.opener.parent.document.getElementById('nolongerselfi').style.height='300%'; }, 30000);
}
if (eval('' + ourdurforwop) > 0) {
window.opener.parent.document.getElementById('nolongerselfi').style.height='1px';
setTimeout(function(){ window.opener.parent.document.getElementById('nolongerselfi').style.zIndex='1234'; }, eval(1000 * eval('' + ourdurforwop)));
}
};
img.src=mycanvrotone.toDataURL();
}
if (('' + resubmitis) != '0') {
window.opener.parent.document.getElementById('nolongerselfi').style.height='1px';
setTimeout(function(){ window.opener.parent.document.getElementById('mysubmit').click(); }, 6000);
}
if (eval('' + durforwop) > 0) {
setTimeout(function(){ window.opener.parent.document.getElementById('nolongerselfi').style.zIndex='1234'; }, eval(1000 * eval('' + durforwop)));
}
}
")));
}
$ris=0;
$gis=0;
$bis=0;
$r200="200"; // textred textgreen textblue
$g200="200";
$b200="200";
$c8r="c8";
$c8g="c8";
$c8b="c8";
$zzz=",0,0,0,";
if (trim($tc) != '') {
$exrgb=explode(',',trim($tc));
if (sizeof($exrgb) == 3) {
if (strlen(('' . dechex($exrgb[0]))) == 1) {
$c8r='0' . dechex($exrgb[0]);
} else {
$c8r='' . dechex($exrgb[0]);
}
if (strlen(('' . dechex($exrgb[1]))) == 1) {
$c8g='0' . dechex($exrgb[1]);
} else {
$c8g='' . dechex($exrgb[1]);
}
if (strlen(('' . dechex($exrgb[2]))) == 1) {
$c8b='0' . dechex($exrgb[2]);
} else {
$c8b='' . dechex($exrgb[2]);
}
$r200=hexdec($c8r);
$g200=hexdec($c8g);
$b200=hexdec($c8b);
} else if ((substr($tc,0,1) >= '0' && substr($tc,0,1) <= '9') || (substr($tc,0,1) >= 'A' && substr($tc,0,1) <= 'F') || (substr($tc,0,1) >= 'a' && substr($tc,0,1) <= 'f')) {
if (strlen(trim($tc)) == 6) {
$r200=substr(trim($tc), 0, 2);
if (strlen(('' . dechex($r200))) == 1) {
$c8r='0' . dechex($r200);
} else {
$c8r='' . dechex($r200);
}
$r200=hexdec($c8r);
$g200=substr(trim($tc), 2, 4);
if (strlen(('' . dechex($g200))) == 1) {
$c8g='0' . dechex($g200);
} else {
$c8g='' . dechex($g200);
}
$g200=hexdec($c8g);
$b200=substr(trim($tc), 4, 6);
if (strlen(('' . dechex($b200))) == 1) {
$c8b='0' . dechex($b200);
} else {
$c8b='' . dechex($b200);
}
$b200=hexdec($c8b);
} else if (strlen(trim(str_replace(' ','',str_replace(',','',$tc)))) == 6) {
$r200=substr(trim(str_replace(' ','',str_replace(',','',$tc))), 0, 2);
if (strlen(('' . dechex($r200))) == 1) {
$c8r='0' . dechex($r200);
} else {
$c8r='' . dechex($r200);
}
$r200=hexdec($c8r);
$g200=substr(trim(str_replace(' ','',str_replace(',','',$tc))), 2, 4);
if (strlen(('' . dechex($g200))) == 1) {
$c8g='0' . dechex($g200);
} else {
$c8g='' . dechex($g200);
}
$g200=hexdec($c8g);
$b200=substr(trim(str_replace(' ','',str_replace(',','',$tc))), 4, 6);
if (strlen(('' . dechex($b200))) == 1) {
$c8b='0' . dechex($b200);
} else {
$c8b='' . dechex($b200);
}
$b200=hexdec($c8b);
} else {
$rcval=color_name_to_hex(str_replace(' ','',str_replace('-','',str_replace('_','',strtolower($tc)))));
if ($rcval == str_replace(' ','',str_replace('-','',str_replace('_','',strtolower($tc))))) {
$r200="200"; // textred textgreen textblue
$g200="200";
$b200="200";
$c8r="c8";
$c8g="c8";
$c8b="c8";
} else {
$r200='' . $ris;
$g200='' . $gis;
$b200='' . $bis;
if (strlen(('' . dechex($r200))) == 1) {
$c8r='0' . dechex($r200);
} else {
$c8r='' . dechex($r200);
}
if (strlen(('' . dechex($g200))) == 1) {
$c8g='0' . dechex($g200);
} else {
$c8g='' . dechex($g200);
}
if (strlen(('' . dechex($b200))) == 1) {
$c8b='0' . dechex($b200);
} else {
$c8b='' . dechex($b200);
} }
}
} else {
$rcval=color_name_to_hex(str_replace(' ','',str_replace('-','',str_replace('_','',strtolower($tc)))));
if ($rcval == str_replace(' ','',str_replace('-','',str_replace('_','',strtolower($tc))))) {
$r200="200"; // textred textgreen textblue
$g200="200";
$b200="200";
$c8r="c8";
$c8g="c8";
$c8b="c8";
} else {
$r200='' . $ris;
$g200='' . $gis;
$b200='' . $bis;
if (strlen(('' . dechex($r200))) == 1) {
$c8r='0' . dechex($r200);
} else {
$c8r='' . dechex($r200);
}
if (strlen(('' . dechex($g200))) == 1) {
$c8g='0' . dechex($g200);
} else {
$c8g='' . dechex($g200);
}
if (strlen(('' . dechex($b200))) == 1) {
$c8b='0' . dechex($b200);
} else {
$c8b='' . dechex($b200);
}
}
}
}
$delay=40; // 1000 / 40
if (isset($_GET['delay'])) { $delay=str_replace(" ","+",urldecode($_GET['delay'])); }
if (isset($_POST['delay'])) { $delay=str_replace(" ","+",urldecode($_POST['delay'])); }
$defselwords="Size of First Slide (or as below)";
$defselwhs="";
if (isset($_GET['dimensions'])) { $defselwhs=trim(str_replace("x",",",str_replace(" ","+",strtolower(urldecode($_GET['dimensions']))))); }
if (isset($_POST['dimensions'])) { $defselwhs=trim(str_replace("x",",",str_replace(" ","+",strtolower(urldecode($_POST['dimensions']))))); }
if (strpos($defselwhs, ",") !== false) {
$defselwords="Specified Dimensions [" . $defselwhs . "]
Index of
',$huhmamp), '') !== false) {
$mampelse=" else { document.getElementById('imsel').innerHTML+=''; } \n";
} else {
$huhmamp=@file_get_contents("http://localhost" . $lportbit . "/");
if (strpos(str_replace('Index of ','',$huhmamp), '') !== false) {
$mampelse=" else { document.getElementById('imsel').innerHTML+=''; } \n";
} else {
$mampelse=" else { document.getElementById('imsel').innerHTML+=''; } \n";
}
}
}
}
if (strpos($thetemp, '/') !== false) {
$videopath="";
if (file_exists('/usr/local/bin/ffmpeg')) {
$videopath="/usr/local/bin/";
}
}
if (isset($_GET['justcheckamhere'])) {
if (file_exists('amhere.htm')) { if (strpos($_SERVER['SERVER_NAME'], 'localhost') !== false) { unlink('amhere.htm'); } }
if (file_exists('amhere.jpg')) { if (strpos($_SERVER['SERVER_NAME'], 'localhost') !== false) { unlink('amhere.jpg'); } }
echo '