7,9d6 < $isgif = false; < $psubject = ''; < $gmtblurb = ''; 25,46d21 < if (isset($_POST['isgif']) || isset($_GET['isgif'])) { < if (isset($_GET['isgif'])) { < if (strlen($_GET['isgif']) > 0) { $isgif = true; } //$pngext = 'gif'; < } else if (isset($_POST['isgif'])) { < if (strlen($_POST['isgif']) > 0) { $isgif = true; } //$pngext = 'gif'; < } < } < < if (isset($_POST['tdsubj']) || isset($_GET['tdsubj'])) { < if (isset($_GET['tdsubj'])) { < $psubject = explode("~", str_replace("+"," ",urldecode($_GET['tdsubj'])))[0]; < if (strpos(str_replace("+"," ",urldecode($_GET['tdsubj'])),"~") !== false) { < $gmtblurb = explode("~", str_replace("+"," ",urldecode($_GET['tdsubj'])))[1]; < } < } else { < $psubject = explode("~", str_replace("+"," ",urldecode($_POST['tdsubj'])))[0]; < if (strpos(str_replace("+"," ",urldecode($_POST['tdsubj'])),"~") !== false) { < $gmtblurb = explode("~", str_replace("+"," ",urldecode($_POST['tdsubj'])))[1]; < } < } < } < 219,220c194 < global $idata, $bigbits, $atendis, $pngext, $postfname, $postfname, $altmydurl, $isgif, $psubject, $gmtblurb; < if ($psubject != "") { $mysubject=$psubject; } --- > global $idata, $bigbits, $atendis, $pngext, $postfname, $postfname, $altmydurl; 342,344d315 < if ($isgif || strpos($filename, ".png") !== false && strpos($contents, "data:image/gif;base64,") !== false) { < $filename=str_replace(".png",".gif",$filename); < } 364,365d334 < } else if ($gmtblurb != "") { < $headers .= "Please see attached " . $gmtblurb . " image below:" . $eol . $eol;