2c2
< // slideshow_creator.php
---
> // flatten_ml.php
4c4
< // December, 2014
---
> // November, 2014
6,48c6
< // Create Slideshow via Image File List
<
< $slideshowtitle = "Slideshow Title";
< $zero = "0";
<
< if (isset($_GET['prefix'])) {
< $slideshowtitle = $_GET['prefix'];
< } else if (isset($_POST['prefix'])) {
< $slideshowtitle = $_POST['prefix'];
< //echo str_replace("$" . "1", $slideshowtitle, str_replace($prewith0, $with0, str_replace($prewith, $with, urldecode($_POST['template']))));
< //exit;
< }
<
< $prewith0 = "youllneverfindthis";
< $with0 = "youllneverfindthis";
< $prewith = "lastone=0";
< $with = "lastone=0";
< $firsttd = "
@--> |  | ";
< $lasttd = "--> |  | ";
<
<
< if (isset($_POST['url'])) {
< if (strpos(urldecode($_POST['url']), ",") !== false) {
< $purl = str_replace(",", "@!", urldecode($_POST['url']));
< $with = str_replace("lastone=0", "lastone=" . (strlen($purl) - 1 - strlen(urldecode($_POST['url']))), $with);
< $exlist = explode(",", urldecode($_POST['url']));
< $zero = sizeof($exlist) - 1;
< $prewith = "$" . "2.1";
< $with = $exlist[0];
< $prewith0 = $lasttd;
< $with0 = str_replace("$" . "2.2", $exlist[1], $lasttd);
< if (sizeof($exlist) > 2) {
< for ($iy=2; $iy // Convert HTML or XML to Text
50,132d7
< $template = str_replace("$" . "1", $slideshowtitle, str_replace($prewith0, $with0, str_replace($prewith, $with, "
<
<
< Slideshow Creator - RJM Programming - December, 2014
<
<
< $1 Slide 1 of
<
<
<
<
< | @--> |  |
< --> |  |
<
<
<
<
< ")));
<
< if (isset($_POST['prefix'])) {
< echo $template;
< exit;
< }
<
134d8
<
157d30
< var olist=",";
254,264d126
<
< lastone = eval(files.length - 1);
< if (document.body.innerHTML.indexOf("$" + "1") != -1) {
< document.body.innerHTML = document.body.innerHTML.replace("$" + "1", document.getElementById("prefix").value).replace("$" + "1", document.getElementById("prefix").value);
< }
< if (d1ih == "") {
< d1ih = decodeURIComponent(document.getElementById("lasttd").value);
< d1ih = d1ih.replace("+", " ").replace("+", " ").replace("+", " ").replace("+", " ").replace("+", " ").replace("+", " ").replace("+", " ").replace("+", " ").replace("+", " ");
< }
<
<
276,290d137
< if (i == -9) document.getElementById("myh1").innerHTML=f.name;
<
< if (i >= 2) {
< //alert(d1ih.replace("i1","i" + iy).replace("t1","t" + iy).replace("i1","i" + iy) + "");
< if (i > ilastone) {
< ilastone = i;
< document.body.innerHTML = document.body.innerHTML.replace("", "--> |  | ");
< if (i >= lastone) document.getElementById("a0").click();
< }
< } else if (i == 0) {
< document.getElementById("i0").src = f.name;
< } else if (i == 1) {
< document.getElementById("i1").src = f.name;
< }
<
294c141
< wut[wut.length] = null; //window.open("",f.name,"width=500, height=80");
---
> wut[wut.length] = window.open("",f.name,"width=500, height=80");
303,305c150
< imgmode = "y";
<
< if (imgmode == "y") {
---
> imgmode = "n"; /' . '/"y";
307,323d151
< readers[readers.length - 1].onload = (function(theFile) {
< return function(e) {
< var iyy, oiyy, found=0, fnam="";
< for (iyy=0; iyy<=lastone; iyy++) {
< oiyy = document.getElementById("i" + iyy);
< if (oiyy != null) {
< fnam=oiyy.src;
< if (found == 0 && olist.indexOf("," + iyy + ",") == -1 && (("*" + oiyy.src).indexOf("*image.") != -1 || oiyy.src.indexOf(String.fromCharCode(92) + theFile.name) != -1 || oiyy.src == theFile.name || oiyy.src.indexOf("/" + theFile.name) != -1 || oiyy.src.substring(0,1) == "$")) {
< olist=olist + iyy + ",";
< oiyy.src = e.target.result;
< found = 1;
< }
< }
< }
< if (found == 0 && fnam != "" && 1 == 2) document.getElementById("myh1").innerHTML=fnam;
< };
< })(file);
325,326d152
< readers[readers.length - 1].readAsDataURL(file);
< } else {
405c231
< }
---
>
504,564c330,335
< Slideshow Creator - RJM Programming - December, 2014
<
<