7,9d6 < $extras=""; < $ismulti=[]; < $ismultidatauri=[]; 57c54 < fwrite(\$fp, '

Data URI version below


... via web browser (Windows right click, Mac OS X two finger gesture) ...


'); --- > fwrite(\$fp, '

Data URI version below


... via web browser (Windows right click, Mac OS X two finger gesture ...


'); 62,155d58 < function inhouseslideshow($uarray,$uarraydatauri) { < global $agtext; < if (sizeof($uarray) == 0) return ""; < $sofar=" \n"; < $sofar.=" \n"; < $sofar.="" . $agtext . " - via RJM Programming Slideshow Presentation \n"; < $sofar.=" \n "; < $sofar.="" . $agtext . " \n "; < $sofar.=" \n "; < $sofar.=" \n "; < $sofar.="

Slideshow version below


... optionally get content via web browser (Windows right click, Mac OS X two finger gesture) ...


\n "; < $sofar.=" \n "; < $sofar.=" \n "; < $sofar.=" \n "; < < //for ($iqw=1; $iqw--> \n "; < //} < < return $sofar . "
@-->
\n\n"; < } < 240,259c143,144 < if (sizeof($ismulti) == 0) { < if (strpos($url,".") !== false) { < $ismulti[sizeof($ismulti)]=$url; < $ismultidatauri[sizeof($ismultidatauri)]='data:image/' . str_replace('jpg','jpeg',strtolower(explode('.',$url)[-1 + sizeof(explode('.',$url))])) . ';base64,' . base64_encode(file_get_contents($url)); < } < } < if (isset($_GET['slideshow' . $icnt])) { < $url=($_GET['slideshow' . $icnt]); < if (strpos($url,".") !== false) { < $ismulti[sizeof($ismulti)]=$url; < $ismultidatauri[sizeof($ismultidatauri)]='data:image/' . str_replace('jpg','jpeg',strtolower(explode('.',$url)[-1 + sizeof(explode('.',$url))])) . ';base64,' . base64_encode(file_get_contents($url)); < } < } < if (isset($_POST['slideshow' . $icnt])) { < $url=($_POST['slideshow' . $icnt]); < if (strpos($url,".") !== false) { < $ismulti[sizeof($ismulti)]=$url; < $ismultidatauri[sizeof($ismultidatauri)]='data:image/' . str_replace('jpg','jpeg',strtolower(explode('.',$url)[-1 + sizeof(explode('.',$url))])) . ';base64,' . base64_encode(file_get_contents($url)); < } < } --- > if (isset($_GET['slideshow' . $icnt])) $url=($_GET['slideshow' . $icnt]); > if (isset($_POST['slideshow' . $icnt])) $url=($_POST['slideshow' . $icnt]); 263,270d147 < if (sizeof($ismulti) > 0) { < $ofp = fopen('slideshow.html', 'w'); < fwrite($ofp, inhouseslideshow($ismulti,$ismultidatauri)); < fclose($ofp); < $extras=" Animated GIF Data URI version Slideshow versions"; < } else { < $extras=" Animated GIF Data URI version"; < } 272,274d148 < < < 278d151 < $wasprefix=$prefix; 285,289d157 < //echo "aphoto[0]=" . $aphoto[0] . " and wasprefix=" . $wasprefix . " and prefix=" . $prefix; < //exit; < if (strpos($aphoto[0], "/") === false && strpos($aphoto[0], substr("\\",0,1)) === false && str_replace("../","",$prefix) == "" && $wasprefix != "") { < $prefix.=$wasprefix; < } 293,315c161,163 < //echo "aphoto[0]=" . $aphoto[0] . " and wasprefix=" . $wasprefix . " and prefix=" . $prefix; < //exit; < if (strpos($aphoto[0], "/") === false && strpos($aphoto[0], substr("\\",0,1)) === false && str_replace("../","",$prefix) == "" && $wasprefix != "") { < $huhp=$prefix; < $prefix.=$wasprefix; < if (strpos($prefix, "../../") !== false && !file_exists($prefix . $aphoto[0]) && file_exists(str_replace("../../","../",$prefix) . $aphoto[0])) { < $prefix=str_replace("../../","../",$prefix); < } else if (!file_exists($prefix . $aphoto[0])) { < $prefix=$huhp; < } < } < } else if (strpos($aphoto[0], "/") === false && strpos($aphoto[0], substr("\\",0,1)) === false && strpos($url, "rjmprogramming.com.au") !== false) { < if (strpos($aphoto[0], "/") === false && strpos($aphoto[0], substr("\\",0,1)) === false && str_replace("../","",$prefix) == "" && $wasprefix != "") { < $huhp=$prefix; < $prefix.=$wasprefix; < if (strpos($prefix, "../../") !== false && !file_exists($prefix . $aphoto[0]) && file_exists(str_replace("../../","../",$prefix) . $aphoto[0])) { < $prefix=str_replace("../../","../",$prefix); < } else if (!file_exists($prefix . $aphoto[0])) { < $prefix=$huhp; < } < } < //echo "Aphoto[0]=" . $aphoto[0] . " and wasprefix=" . $wasprefix . " and prefix=" . $prefix; < //exit; --- > } else if (strpos($aphoto[0], "localhost:8888/") !== false) { > $bts=explode("localhost:8888/", $aphoto[0]); > $aphoto[0]=$bts[1]; 317,320c165 < $dbits=explode("/", $aphoto[0]); < < < --- > $dbits=explode("/", $aphoto[0]); 326d170 < if (strpos(strtolower($aphoto[0]), "//") !== false) $prefix=""; 332,334d175 < if (strpos($prefix, "../../") !== false && !file_exists($prefix . $aphoto[0]) && file_exists(str_replace("../../","../",$prefix) . $aphoto[0])) { < $prefix=str_replace("../../","../",$prefix); < } 337,339d177 < if (strpos($prefix, "../../") !== false && !file_exists($prefix . $aphoto[0]) && file_exists(str_replace("../../","../",$prefix) . $aphoto[0])) { < $prefix=str_replace("../../","../",$prefix); < } 342,344d179 < if (strpos($prefix, "../../") !== false && !file_exists($prefix . $aphoto[0]) && file_exists(str_replace("../../","../",$prefix) . $aphoto[0])) { < $prefix=str_replace("../../","../",$prefix); < } 347,349d181 < if (strpos($prefix, "../../") !== false && !file_exists($prefix . $aphoto[0]) && file_exists(str_replace("../../","../",$prefix) . $aphoto[0])) { < $prefix=str_replace("../../","../",$prefix); < } 363c195 < $imagegif="

Preview Below ... Animated GIF (Later) (Way) Below


"; --- > $imagegif="

Preview Below ... Animated GIF (Later) (Way) Below


"; 365,369c197 < if (sizeof($ismulti) > 0) { < $imagegifandthen.="document.getElementById('idiv').innerHTML+=\"

Preview Above ... Animated GIF Below




 Data URI version Top Animated GIF Slideshow Data URI

Slideshow
" . "\";"; < } else { < $imagegifandthen.="document.getElementById('idiv').innerHTML+=\"

Preview Above ... Animated GIF Below



 Top Animated GIF
" . "\";"; < } --- > $imagegifandthen.="document.getElementById('idiv').innerHTML+=\"

Preview Above ... Animated GIF Below



" . "\";"; 405,407d232 < 415,416c240,241 < Tutorial Slideshow HTML or Image

<
" . $extras . " --- > Tutorial Slideshow HTML or Image

>