GetAnimation(); ?> "; $lastbitfrom="echo \$gif->GetAnimation();"; $lastbitto="\$fp = fopen('animegif.gif', 'w'); fwrite(\$fp, \$gif->GetAnimation()); fclose(\$fp);"; $agtext=""; $url=""; function server_remote_addr() { $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; return str_replace(":", "_", $rma); } function analyze($url) { //$aprefix="../"; $aprefix=""; if (strpos($url, "//") === false && strpos($_SERVER['SERVER_NAME'], "rjmprogramming.com.au") !== false) return $aprefix; $aub=$_SERVER['REQUEST_URI']; $xubf=explode("?", $aub); $xubf[0]=str_replace("tutorial_to_animated_gif.php", "", str_replace("@!@","", str_replace("@!@/","", "@!@" . $xubf[0]))); $xubff=explode("/", $xubf[0]); for ($ih=1; $ih 2) { $xub=str_replace("/" . $xubff[sizeof($xubff) - 1], "/", $xubf[0]); } else { $xub=str_replace("@$@", "", str_replace("/@$@", "/", ($xubf[0] . "@$@"))); } $ubf=explode("?", $url); $ubff=explode("/", $ubf[0]); if (strpos($ubff[sizeof($ubff) - 1], ".") !== false && (sizeof($ubff) - 1) > 2) { $ub=str_replace("/" . $ubff[sizeof($ubff) - 1], "/", $ubf[0]); } else { $ub=str_replace("@$@", "", str_replace("/@$@", "/", ($ubf[0] . "@$@"))); } $preubff=explode("rjmprogramming.com.au:80/", $ub); if (sizeof($preubff) > 1) { $aprefix.=$preubff[1]; } else { $preubff=explode("rjmprogramming.com.au/", $ub); if (sizeof($preubff) > 1) { $aprefix.=$preubff[1]; } } return $aprefix; } if (isset($_GET['slideshow']) || isset($_POST['slideshow'])) { if (isset($_GET['slideshow'])) $url=($_GET['slideshow']); if (isset($_POST['slideshow'])) $url=($_POST['slideshow']); if (isset($_GET['slideshow'])) $shtml=@file_get_contents($_GET['slideshow']); if (isset($_POST['slideshow'])) $shtml=@file_get_contents($_POST['slideshow']); $prefix=analyze($url); if (isset($_GET['delay'])) $delay=($_GET['delay']); if (isset($_POST['delay'])) $delay=($_POST['delay']); $eachone=str_replace("[]=40;", "[]=" . $delay . ";", $eachone); $gifphp=$agifphp; if (isset($_GET['stitle'])) $agtext=($_GET['stitle']); if (isset($_POST['stitle'])) $agtext=($_POST['stitle']); if (strpos($shtml, ' src="') === false) { $shtml=' src="' . $url . '" '; $icnt++; while (isset($_GET['slideshow' . $icnt]) || isset($_POST['slideshow' . $icnt])) { if (isset($_GET['slideshow' . $icnt])) $url=($_GET['slideshow' . $icnt]); if (isset($_POST['slideshow' . $icnt])) $url=($_POST['slideshow' . $icnt]); $shtml.=' src="' . $url . '" '; $icnt++; } } $photos=explode(' src="', $shtml); if (sizeof($photos) > 1) { $atext=$agtext; for ($io=1; $io"; $imagegif.="

"; $imagegifandthen.="document.getElementById('idiv').innerHTML+=\"

Preview Above ... Animated GIF Below


" . "\";"; } } //else { echo " Tutorial Slideshow to Animated GIF

Tutorial Slideshow to Animated GIF

Tutorial Slideshow Title

Tutorial Slideshow Delay

Tutorial Slideshow HTML or Image

" . $imagegif . "
"; //} ?>