'; }
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'])));
$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 '