"; $imgurls=""; $urlsq=str_replace('&', ',', $_SERVER['QUERY_STRING']) . ","; $pd=""; $drot=180.0; if (isset($_POST['imgurls'])) { if (strpos($_POST['imgurls'], "//") !== false) { $imgurls=str_replace(",~~","", str_replace("-,",",",($_POST['imgurls'] . ",~~"))); $urlsq=$_POST['imgurls'] . ","; } else { $imgurls=str_replace(",~~","", str_replace("-,",",",urldecode($_POST['imgurls'] . ",~~"))); $urlsq=urldecode($_POST['imgurls']) . ","; } } else if (isset($_GET['imgurls'])) { if (strpos($_GET['imgurls'], "//") !== false) { $imgurls=str_replace(",~~","", str_replace("-,",",",($_GET['imgurls'] . ",~~"))); } else { $imgurls=str_replace(",~~","", str_replace("-,",",",urldecode($_GET['imgurls'] . ",~~"))); } } $protistwo=explode("//", $imgurls); if (sizeof($protistwo) == 1) { if (isset($_POST['documentrooturl'])) { $urldomain=$_POST['documentrooturl']; } else if (isset($_GET['documentrooturl'])) { $urldomain=$_GET['documentrooturl']; } else { $urldomain="http://" . $_SERVER['SERVER_NAME'] . "/"; } if (strpos($urldomain, "/") === false && strpos($urldomain, "\\") === false && strpos($urldomain, ":") === false) { $urldomain=urldecode($urldomain); } if ($imgurls != "") $imgurls=str_replace(",", ("," . $urldomain), ($urldomain . $imgurls)); $protistwo=explode("//", $imgurls); $urlsq=str_replace("=", ("=" . $urldomain), str_replace(",", ("," . $urldomain), $urlsq)); } if (isset($_POST['documentrooturl'])) { $urldomain=$_POST['documentrooturl']; } else if (isset($_GET['documentrooturl'])) { $urldomain=$_GET['documentrooturl']; } else { $urldomain=$protistwo[0] . "//" . $_SERVER['SERVER_NAME'] . "/"; } if (strpos($urldomain, "/") === false && strpos($urldomain, "\\") === false && strpos($urldomain, ":") === false) { $urldomain=urldecode($urldomain); } $formbit="
Comma Separated Image Url(spec)s List from " . $urldomain . " (suffix of '-' to exclude an image file):

Optional Image Rotation in Degrees:

Optional Image Div Container Rotation in Degrees:


"; if (isset($_POST['documentroot'])) { $changeto=$_POST['documentroot']; } else if (isset($_GET['documentroot'])) { $changeto=$_GET['documentroot']; } else { $changeto=$_SERVER['DOCUMENT_ROOT']; } if (strpos($changeto, "/") === false && strpos($changeto, "\\") === false && strpos($changeto, ":") === false) { $changeto=urldecode($changeto); } if (strpos($changeto, "/") !== false) $changeto = str_replace("//","/",($changeto . "/")); if (strpos($changeto, "\\") !== false) $changeto = str_replace("\\\\","\\",($changeto . "\\")); $htmlis=" Vertical (or Angled) Slideshow via PHP glob " . $javascript . " "; if ($imgurls != "") { $csvs = explode(",", $imgurls); $finishat=sizeof($csvs) - 1; $pd=""; if (isset($_POST['imgrotate'])) { if (strpos($_POST['imgrotate'], "%") !== false) { $htmlis=str_replace(" var whuh=", " rotateall('img', " . urldecode($_POST['imgrotate']) . "); var whuh=", $htmlis); } else { $htmlis=str_replace(" var whuh=", " rotateall('img', " . $_POST['imgrotate'] . "); var whuh=", $htmlis); } } else if (isset($_GET['imgrotate'])) { if (strpos($_GET['imgrotate'], "%") !== false) { $htmlis=str_replace(" var whuh=", " rotateall('img', " . urldecode($_GET['imgrotate']) . "); var whuh=", $htmlis); } else { $htmlis=str_replace(" var whuh=", " rotateall('img', " . $_GET['imgrotate'] . "); var whuh=", $htmlis); } } if (isset($_POST['divrotate'])) { $drot=0.0; if (strpos($_POST['divrotate'], "%") !== false) { $drot=urldecode($_POST['divrotate']); $pd=urldecode($_POST['divrotate']); //$htmlis=str_replace(" var whuh=", " rotateall('div', " . urldecode($_POST['divrotate']) . "); var whuh=", $htmlis); } else { $drot=($_POST['divrotate']); $pd=$_POST['divrotate']; //$htmlis=str_replace(" var whuh=", " rotateall('div', " . $_POST['divrotate'] . "); var whuh=", $htmlis); } } else if (isset($_GET['divrotate'])) { $drot=0.0; if (strpos($_GET['divrotate'], "%") !== false) { $drot=urldecode($_GET['divrotate']); $pd=urldecode($_GET['divrotate']); //$htmlis=str_replace(" var whuh=", " rotateall('div', " . urldecode($_GET['divrotate']) . "); var whuh=", $htmlis); } else { $drot=($_GET['divrotate']); $pd=$_GET['divrotate']; //$htmlis=str_replace(" var whuh=", " rotateall('div', " . $_GET['divrotate'] . "); var whuh=", $htmlis); } } if ($pd != "") { if ($drot != 180.0) { if ($drot == 90.0) { $tdprefix=""; $tdsuffix=""; $htmlis=str_replace(">", ">
", $htmlis); } else if ($drot == 270.0) { $tdprefix=""; $tdsuffix=""; $htmlis=str_replace(">", ">
", $htmlis); $startat=$finishat; $finishat=0; $stepby=-1; } else if ($drot == 0.0 || $drot == 360.0) { $tdprefix=""; $tdsuffix="
"; $startat=$finishat; $finishat=0; $stepby=-1; } else if ($drot >= 315.0 || $drot <= 45.0) { $tdprefix=""; $tdsuffix=""; $htmlis=str_replace($mbs, " style='overflow:scroll;-webkit-overflow-scrolling:touch;'", $htmlis); $mbs=" style='overflow:scroll;-webkit-overflow-scrolling:touch;'"; $htmlis=str_replace(">", ">
", $htmlis); $htmlis=str_replace(" var whuh=", " rotateall('div', " . $pd . "); var whuh=", $htmlis); } else if ($drot > 45.0 && $drot <= 135.0) { $startat=$finishat; $finishat=0; $stepby=-1; $tdprefix=""; $tdsuffix=""; $htmlis=str_replace($mbs, " style='overflow:scroll;-webkit-overflow-scrolling:touch;'", $htmlis); $mbs=" style='overflow:scroll;-webkit-overflow-scrolling:touch;'"; $htmlis=str_replace(">", ">
", $htmlis); $htmlis=str_replace(" var whuh=", " rotateall('div', " . $pd . "); var whuh=", $htmlis); } else if ($drot > 135.0 && $drot <= 225.0) { $tdprefix=""; $tdsuffix=""; $htmlis=str_replace($mbs, " style='overflow:scroll;-webkit-overflow-scrolling:touch;'", $htmlis); $mbs=" style='overflow:scroll;-webkit-overflow-scrolling:touch;'"; $htmlis=str_replace(">", ">
", $htmlis); $htmlis=str_replace(" var whuh=", " rotateall('div', " . $pd . "); var whuh=", $htmlis); } else { $startat=$finishat; $finishat=0; $stepby=-1; $tdprefix=""; $tdsuffix=""; $htmlis=str_replace($mbs, " style='overflow:scroll;-webkit-overflow-scrolling:touch;'", $htmlis); $mbs=" style='overflow:scroll;-webkit-overflow-scrolling:touch;'"; $htmlis=str_replace(">", ">
", $htmlis); $htmlis=str_replace(" var whuh=", " rotateall('div', " . $pd . "); var whuh=", $htmlis); } } } if ($stepby == 1) { for ($i=$startat; $i<=$finishat; $i+=($stepby)) { if (strpos($csvs[$i], $urldomain) !== false) { foreach (glob(str_replace($urldomain, $changeto ,$csvs[$i])) as $filename) { if (strpos($urlsq, str_replace($changeto, $urldomain, $filename) . "-,") === false) { $htmlis=str_replace("", $tdprefix . "" . $tdsuffix . "", $htmlis); } } } } } else { for ($i=$startat; $i>=$finishat; $i+=($stepby)) { if (strpos($csvs[$i], $urldomain) !== false) { foreach (glob(str_replace($urldomain, $changeto ,$csvs[$i])) as $filename) { if (strpos($urlsq, str_replace($changeto, $urldomain, $filename) . "-,") === false) { $htmlis=str_replace("", $tdprefix . "" . $tdsuffix . "", $htmlis); } } } } } } else { $htmlis=str_replace(">", ">

Vertical or Angled Slideshow - RJM Programming - October, 2016



" . $formbit . "", $htmlis); } echo $htmlis; ?>