')); //file_put_contents('xww.xww', $restis); if (strpos((',' . $restis . ','), ',circle') !== false) { if (strpos((',' . $restis . ','), ',circle,') === false) { $crcolour=explode(',', explode(',circle', $restis)[1])[0]; $restis=str_replace('circle' . $crcolour . ',','',str_replace(',circle' . $crcolour . ',','',$restis)); } $restis=str_replace('circle,','',str_replace(',circle,','',$restis)); $lc.="\n" . ''; //file_put_contents('xw.xw', $lastcontent); //exit; } if (strpos((',' . $restis . ','), ',rect') !== false) { if (strpos((',' . $restis . ','), ',rect,') === false) { $crcolour=explode(',', explode(',rect', $restis)[1])[0]; $restis=str_replace('rect' . $crcolour . ',','',str_replace(',rect' . $crcolour . ',','',$restis)); } $restis=str_replace('rect,','',str_replace(',rect,','',$restis)); $lc.="\n" . ''; } } else { //$restis=str_replace('noimage,','',str_replace(',noimage,','',$restis)); if (strpos((',' . $restis . ','), ',circle') !== false) { if (strpos((',' . $restis . ','), ',circle,') === false) { $crcolour=explode(',', explode(',circle', $restis)[1])[0]; $restis=str_replace('circle' . $crcolour . ',','',str_replace(',circle' . $crcolour . ',','',$restis)); } $restis=str_replace('circle,','',str_replace(',circle,','',$restis)); $lc.="\n" . ''; } if (strpos((',' . $restis . ','), ',rect') !== false) { if (strpos((',' . $restis . ','), ',rect,') === false) { $crcolour=explode(',', explode(',rect', $restis)[1])[0]; $restis=str_replace('rect' . $crcolour . ',','',str_replace(',rect' . $crcolour . ',','',$restis)); } $restis=str_replace('rect,','',str_replace(',rect,','',$restis)); $lc.="\n" . ''; } } } else { if (strpos((',' . $restis . ','), ',noimage,') === false) { $lastcontent='')); if (strpos((',' . $restis . ','), ',circle') !== false) { if (strpos((',' . $restis . ','), ',circle,') === false) { $crcolour=explode(',', explode(',circle', $restis)[1])[0]; $restis=str_replace('circle' . $crcolour . ',','',str_replace(',circle' . $crcolour . ',','',$restis)); } $restis=str_replace('circle,','',str_replace(',circle,','',$restis)); $lc.="\n" . ''; } if (strpos((',' . $restis . ','), ',rect') !== false) { if (strpos((',' . $restis . ','), ',rect,') === false) { $crcolour=explode(',', explode(',rect', $restis)[1])[0]; $restis=str_replace('rect' . $crcolour . ',','',str_replace(',rect' . $crcolour . ',','',$restis)); } $restis=str_replace('rect,','',str_replace(',rect,','',$restis)); $lc.="\n" . ''; } } else { //$restis=str_replace('noimage,','',str_replace(',noimage,','',$restis)); if (strpos((',' . $restis . ','), ',circle') !== false) { if (strpos((',' . $restis . ','), ',circle,') === false) { $crcolour=explode(',', explode(',circle', $restis)[1])[0]; $restis=str_replace('circle' . $crcolour . ',','',str_replace(',circle' . $crcolour . ',','',$restis)); } $restis=str_replace('circle,','',str_replace(',circle,','',$restis)); $lc.="\n" . ''; } if (strpos((',' . $restis . ','), ',rect') !== false) { if (strpos((',' . $restis . ','), ',rect,') === false) { $crcolour=explode(',', explode(',rect', $restis)[1])[0]; $restis=str_replace('rect' . $crcolour . ',','',str_replace(',rect' . $crcolour . ',','',$restis)); } $restis=str_replace('rect,','',str_replace(',rect,','',$restis)); $lc.="\n" . ''; } } } if ($h == 0) { $h=$height; $ph=(40 + $h); } if ($w == 0) { $w=$width; $pw=(40 + $w); } if (isset($_GET['insvg'])) { if (strpos((',' . $restis . ','), ',noimage,') === false) { $lastcontent='')) . $lc; } else { $lastcontent.=$lc; } $w+=40; //$w=(($w + 20) / 20) * 20; $h+=40; //$h=(($h + 20) / 20) * 20; if ($vbox != '') { $vbox=' viewBox="0 0 ' . $w . ' ' . $h . '" '; $pw=(40 + $w); $ph=(40 + $h); } } } else if (isset($_POST['image']) && $imgis != '') { list($width, $height) = getimagesize($imgis); if (isset($_POST['insvg'])) { if (strpos((',' . $restis . ','), ',noimage,') === false) { $lastcontent='')); if (strpos((',' . $restis . ','), ',circle,') !== false) { $restis=str_replace('circle,','',str_replace(',circle,','',$restis)); $lc.=''; } if (strpos((',' . $restis . ','), ',rect,') !== false) { $restis=str_replace('rect,','',str_replace(',rect,','',$restis)); $lc.=''; } } else { //$restis=str_replace('noimage,','',str_replace(',noimage,','',$restis)); if (strpos((',' . $restis . ','), ',circle,') !== false) { $restis=str_replace('circle,','',str_replace(',circle,','',$restis)); $lc.=''; } if (strpos((',' . $restis . ','), ',rect,') !== false) { $restis=str_replace('rect,','',str_replace(',rect,','',$restis)); $lc.=''; } } } else { if (strpos((',' . $restis . ','), ',noimage,') === false) { $lastcontent='')); if (strpos((',' . $restis . ','), ',circle,') !== false) { $restis=str_replace('circle,','',str_replace(',circle,','',$restis)); $lc.=''; } if (strpos((',' . $restis . ','), ',rect,') !== false) { $restis=str_replace('rect,','',str_replace(',rect,','',$restis)); $lc.=''; } } else { //$restis=str_replace('noimage,','',str_replace(',noimage,','',$restis)); if (strpos((',' . $restis . ','), ',circle,') !== false) { $restis=str_replace('circle,','',str_replace(',circle,','',$restis)); $lc.=''; } if (strpos((',' . $restis . ','), ',rect,') !== false) { $restis=str_replace('rect,','',str_replace(',rect,','',$restis)); $lc.=''; } } } if ($h == 0) { $h=$height; $ph=(40 + $h); } if ($w == 0) { $w=$width; $pw=(40 + $w); } if (isset($_POST['insvg'])) { if (strpos((',' . $restis . ','), ',noimage,') === false) { $lastcontent='')) . $lc; } else { $lastcontent.=$lc; } $w+=40; //$w=(($w + 20) / 20) * 20; $h+=40; //$h=(($h + 20) / 20) * 20; if ($vbox != '') { $vbox=' viewBox="0 0 ' . $w . ' ' . $h . '" '; $pw=(40 + $w); $ph=(40 + $h); } } } if ($pw == '' && $h != 0) { $pw=(40 + $w); } if ($ph == '' && $h != 0) { $ph=(40 + $h); } foreach ($_GET as $name=>$val) { if (strpos(strtolower('' . $name . '~'), 'css~') !== false) { if ($svgmiddle == '') { $svgmiddle=" "; } else { $svgmiddle=str_replace("",str_replace(' ',' ',str_replace('+', ' ', urldecode($_GET[$tn])))); if ($gminus30 >= 0) { $minus30=$gminus30; } else { $minus30=($w / $wtwo) - strlen(explode('
', $txt)[0]) * $threedotone; } if ($gtop30 >= 0) { $top30=$h - 10 - (sizeof(explode('
', $txt)) * 15); $gtop30=-1; } else { $top30=($h / $htwo) + $twentyfive - (sizeof(explode('
', $txt)) * $eight); } $lines=explode('
', $txt); for ($il=0; $il' . $lines[$il] . ''; $top30+=15; } } $gminus30=-1; $gtop30=-1; $eight=8; $twentyfive=25; $threedotone=3.1; $textjust=""; $wtwo=2.0; $htwo=2.0; $tn=''; } } foreach ($_POST as $name=>$val) { if (strpos(strtolower('' . $name . '~'), 'css~') !== false) { if ($svgmiddle == '') { $svgmiddle=" "; } else { $svgmiddle=str_replace("",str_replace(' ',' ',str_replace('+', ' ', urldecode($_POST[$tn])))); if ($gminus30 >= 0) { $minus30=$gminus30; } else { $minus30=($w / $wtwo) - strlen(explode('
', $txt)[0]) * $threedotone; } if ($gtop30 >= 0) { $top30=$h - 10 - (sizeof(explode('
', $txt)) * 15); $gtop30=-1; } else { $top30=($h / $htwo) + $twentyfive - (sizeof(explode('
', $txt)) * $eight); } $lines=explode('
', $txt); for ($il=0; $il' . $lines[$il] . ''; $top30+=15; } } $gminus30=-1; $gtop30=-1; $eight=8; $twentyfive=25; $threedotone=3.1; $textjust=""; $wtwo=2.0; $htwo=2.0; $tn=''; } } if ($tn != '') { if (isset($_GET[$tn])) { $txt=str_replace("\n","
",str_replace(' ',' ',str_replace('+', ' ', urldecode($_GET[$tn])))); if ($gminus30 >= 0) { $minus30=$gminus30; } else { $minus30=($w / $wtwo) - strlen(explode('
', $txt)[0]) * $threedotone; } if ($gtop30 >= 0) { $top30=$h - (sizeof(explode('
', $txt)) * 15); $gtop30=-1; } else { $top30=($h / $htwo) + $twentyfive - (sizeof(explode('
', $txt)) * $eight); } $lines=explode('
', $txt); for ($il=0; $il' . $lines[$il] . ''; $top30+=15; } } else if (isset($_POST[$tn])) { $txt=str_replace("\n","
",str_replace(' ',' ',str_replace('+', ' ', urldecode($_POST[$tn])))); if ($gminus30 >= 0) { $minus30=$gminus30; } else { $minus30=($w / $wtwo) - strlen(explode('
', $txt)[0]) * $threedotone; } if ($gtop30 >= 0) { $top30=$h - (sizeof(explode('
', $txt)) * 15); $gtop30=-1; } else { $top30=($h / $htwo) + $twentyfive - (sizeof(explode('
', $txt)) * $eight); } $lines=explode('
', $txt); for ($il=0; $il' . $lines[$il] . ''; $top30+=15; } } } if (isset($_GET['insvg'])) { $innards=str_replace('+','',urldecode($_GET['insvg'])); if (trim(str_replace(',','',str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',$innards)))))))))))) != '') { ingp($innards); } if ($preinnards == '') { $preinnards='&#' . str_replace(',',';&#',$innards) . ';'; } $svgprefix=''; $svgsuffix=''; if (strpos($innards, ''; } else { $svgprefix=''; } $svgsuffix=''; if (trim(str_replace(',','',str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',$innards)))))))))))) == '') { for ($x=0; $x<=$w; $x+=20) { for ($y=0; $y<=(0 + $h); $y+=20) { if ($x == 0 && $y == 0) { $innards='' . $preinnards . ''; if ($h > 0) { $innardslast.='' . $preinnards . ''; } } else if (isset($_GET['background']) || isset($_GET[$whati]) || $x == 0 || $y == 0 || ($x + 20) > $w || ($y + 20) > (0 + $h)) { if ($x == $w) { $innardslast.='' . $preinnards . ''; } else if ($y >= $h) { $innardslast.='' . $preinnards . ''; } else { $innards.='' . $preinnards . ''; } if ($x == 0) { $innardslast.='' . $preinnards . ''; } else if ($y == 0) { $innardslast.='' . $preinnards . ''; } else { $innards.='' . $preinnards . ''; } } } } } } ourecho ('' . html_entity_decode('' . $svgprefix . $svgmiddle . $innards . $innardslast . $lastcontent . $textcontent . $svgsuffix, ENT_QUOTES, "utf-8")); } else if (isset($_POST['insvg'])) { $innards=str_replace('+','',urldecode($_POST['insvg'])); if (trim(str_replace(',','',str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',$innards)))))))))))) != '') { ingp($innards); } if ($preinnards == '') { $preinnards='&#' . str_replace(',',';&#',$innards) . ';'; } $svgprefix=''; $svgsuffix=''; if (strpos($innards, ''; } else { $svgprefix=''; } $svgsuffix=''; if (trim(str_replace(',','',str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',$innards)))))))))))) == '') { for ($x=0; $x<=$w; $x+=20) { for ($y=0; $y<=(0 + $h); $y+=20) { if ($x == 0 && $y == 0) { $innards='' . $preinnards . ''; if ($h > 0) { $innardslast.='' . $preinnards . ''; } } else if (isset($_GET['background']) || isset($_GET[$whati]) || $x == 0 || $y == 0 || ($x + 20) > $w || ($y + 20) > (0 + $h)) { if ($x == $w) { $innardslast.='' . $preinnards . ''; } else if ($y >= $h) { $innardslast.='' . $preinnards . ''; } else { $innards.='' . $preinnards . ''; } if ($x == 0) { $innardslast.='' . $preinnards . ''; } else if ($y == 0) { $innardslast.='' . $preinnards . ''; } else { $innards.='' . $preinnards . ''; } } } } } } ourecho ('' . html_entity_decode('' . $svgprefix . $svgmiddle . $innards . $innardslast . $lastcontent . $textcontent . $svgsuffix, ENT_QUOTES, "utf-8")); } else if (isset($_POST['image']) || isset($_GET['image'])) { ourecho ('' . html_entity_decode('' . $svgmiddle . $lastcontent . $textcontent . '', ENT_QUOTES, "utf-8")); } else { ourecho ('' . html_entity_decode('' . $svgmiddle . '', ENT_QUOTES, "utf-8")); } function ourecho($inh) { global $asbkg, $lastcontent, $restis, $h, $w, $pw, $ph, $crcolor, $crfillop, $zero, $lc, $textcontent; $lcextra=''; if ($restis != '') { if (strpos((',' . $restis . ','), ',circle') !== false) { if (strpos((',' . $restis . ','), ',circle,') === false) { $crcolour=explode(',', explode(',circle', $restis)[1])[0]; $restis=str_replace('circle' . $crcolour . ',','',str_replace(',circle' . $crcolour . ',','',$restis)); } $restis=str_replace('circle,','',str_replace(',circle,','',$restis)); $lcextra.=''; } if (strpos((',' . $restis . ','), ',rect') !== false) { if (strpos((',' . $restis . ','), ',rect,') === false) { $crcolour=explode(',', explode(',rect', $restis)[1])[0]; $restis=str_replace('rect' . $crcolour . ',','',str_replace(',rect' . $crcolour . ',','',$restis)); } $restis=str_replace('rect,','',str_replace(',rect,','',$restis)); $lcextra.=''; } if ($lcextra == '' && $lc != '') { $lcextra=$lc; // . $textcontent; if ($textcontent != '') { $lcextra.=$textcontent; } } if ($textcontent != '') { if (strpos($inh, $textcontent) === false) { $lcextra.=$textcontent; } } if ($lcextra != '') { if (strpos($inh, '') !== false) { $inh=str_replace('', $lcextra . '', $inh); } else { $inh.=$lcextra; } } } if ($asbkg && (isset($_GET['midbit']) || isset($_POST['midbit']))) { echo '', $inh)[0])[1] . ''; } else if ($asbkg) { if (isset($_GET['nobase64']) || isset($_POST['nobase64'])) { echo "data:image/svg+xml;utf8," . ('', $inh)[0])[1] . ''); } else { echo "data:image/svg+xml;base64," . base64_encode('', $inh)[0])[1] . ''); } } else { echo $inh; } } ?>