7,11c7,8
< if (isset($_GET['wordingurl'])) $wordingurl=urldecode($_GET['wordingurl']);
< if (isset($_POST['wordingurl'])) $wordingurl=urldecode($_POST['wordingurl']);
< if (strlen($wordingurl) > 0 && strpos($wordingurl, "rjmprogramming.com.au/") === false) {
< $wordingurl = "http://www.rjmprogramming.com.au/ITblog/" . $wordingurl;
< }
---
> if (isset($_GET['wordingurl'])) $wordingurl=$_GET['wordingurl'];
> if (isset($_POST['wordingurl'])) $wordingurl=$_POST['wordingurl'];
15,17c12,13
< if (isset($_GET['place'])) $place=urldecode($_GET['place']);
< if (isset($_POST['place'])) $place=urldecode($_POST['place']);
< if (strlen($place) > 0 && strpos("*" . $place . " ", "*/") === false) $place = "/" . $place;
---
> if (isset($_GET['place'])) $place=$_GET['place'];
> if (isset($_POST['place'])) $place=$_POST['place'];
37,40c33,35
< global $wordingurl, $wordcontent, $place;
< if (strlen($place) > 0) {
< $cells=explode("
", $wordcontent);
< if (sizeof($cells) > 1) {
---
> global $wordingurl, $wordcontent;
> $cells=explode(" ", $wordcontent);
> if (sizeof($cells) > 1) {
48,67d42
< }
< } else {
< //
< //
< //
< //
< //
Xcode Learning Programming Primer Tutorial
< //
< $dstuff=explode("wp-caption", $wordcontent);
< if (sizeof($dstuff) >= 2) {
< $dih=explode("", $dstuff[1]);
< if (sizeof($dih) >= 2) {
< $dihtwo=explode("title=", $dih[1]);
< if (sizeof($dihtwo) >= 2) {
< $delimis=substr($dihtwo[1],0,1);
< $dht=explode($delimis, substr($dihtwo[1],1));
< return $dht[0];
< }
< }
< }
73,74c48,49
< $scris= " var iask=1;\n var iok=1;\n var iw='" . $wd . "';\n var ih='" . $ht . "';\n var lastslide=1;\n var lastix=" . $ix . ";\n var lastfx=" . $fx . ";\n var ix=" . $ix . ";\n var fx=" . $fx . ";\n var numimages=" . $numimages . "\n var way=1.0;\n var ncurid=0;\n var curopacity=1.0;\n function incr() { ncurid=eval((ncurid + 1) % numimages);\n if (lastix != ix) { document.getElementById('nslideperiod').value=ix; document.getElementById('slidesecs').title=ix; document.getElementById('slidesecs').value=ix; document.title=document.title.replace('Slide Period: ' + lastix, 'Slide Period: ' + ix); lastix=ix; } \n if (lastfx != fx) { document.getElementById('nfadercycle').value=fx; document.getElementById('fadercycle').title=fx; document.getElementById('fadercycle').value=fx; document.title=document.title.replace('Fader Cycle: ' + lastfx, 'Fader Cycle: ' + fx); lastfx=fx; } \n document.title=document.title.replace('Slideshow Slide ' + lastslide, 'Slideshow Slide ' + ncurid);\n lastslide=ncurid; var was=document.getElementById('sos').innerHTML.replace('Start of slideshow ...',''); if (ncurid == 1) { document.getElementById('sos').innerHTML = 'Start of slideshow ...' + was; } else if (was != document.getElementById('sos').innerHTML) { document.getElementById('sos').innerHTML=was; } \n for (var ii=0; ii= 1.0) { way = -way; } document.getElementById('i' + ncurid).style.opacity=curopacity; setTimeout(fader, fx); } ";
< $scris.=" \n function mclick(evt) { var mois=null; var minis=0; var maxis=0; if (evt.target.id) { mois=document.getElementById(evt.target.id); minis=mois.min; maxis=mois.max; } else if (evt.id) { mois=document.getElementById(evt.target.id); minis=mois.min; maxis=mois.max; } if (mois != null) { if (evt.clientY) { if (mois.id == 'slidesecs') { ix=verify(eval(Math.floor(((evt.clientY - 20) / 200.0) * (maxis - minis)) + minis)); document.getElementById('nslideperiod').value=ix; this.value=ix; } else { fx=verify(eval(Math.floor(((evt.clientY - 20) / 200.0) * (maxis - minis)) + minis)); document.getElementById('nfadercycle').value=fx; this.value=fx; } } else if (evt.pageY) { if (mois.id == 'slidesecs') { ix=eval(Math.floor(((evt.pageY - 20) / 200.0) * (maxis - minis)) + minis); document.getElementById('nslideperiod').value=ix; this.value=ix; } else { fx=eval(Math.floor(((evt.pageY - 20) / 200.0) * (maxis - minis)) + minis); document.getElementById('nfadercycle').value=fx; this.value=fx; } } } } ";
---
> $scris= " var iask=1;\n var iok=1;\n var iw='" . $wd . "';\n var ih='" . $ht . "';\n var lastslide=1;\n var lastix=" . $ix . ";\n var lastfx=" . $fx . ";\n var ix=" . $ix . ";\n var fx=" . $fx . ";\n var numimages=" . $numimages . "\n var way=1.0;\n var ncurid=0;\n var curopacity=1.0;\n function incr() { ncurid=eval((ncurid + 1) % numimages);\n if (lastix != ix) { document.getElementById('slidesecs').title=ix; document.getElementById('slidesecs').value=ix; document.title=document.title.replace('Slide Period: ' + lastix, 'Slide Period: ' + ix); lastix=ix; } \n if (lastfx != fx) { document.getElementById('fadercycle').title=fx; document.getElementById('fadercycle').value=fx; document.title=document.title.replace('Fader Cycle: ' + lastfx, 'Fader Cycle: ' + fx); lastfx=fx; } \n document.title=document.title.replace('Slideshow Slide ' + lastslide, 'Slideshow Slide ' + ncurid);\n lastslide=ncurid; var was=document.getElementById('twording').innerHTML.replace('Start of slideshow ...',''); if (ncurid == 1) { document.getElementById('twording').innerHTML = 'Start of slideshow ...' + was; } else if (was != document.getElementById('twording').innerHTML) { document.getElementById('twording').innerHTML=was; } \n for (var ii=0; ii= 1.0) { way = -way; } document.getElementById('i' + ncurid).style.opacity=curopacity; setTimeout(fader, fx); } ";
> $scris.=" \n function mclick(evt) { var mois=null; var minis=0; var maxis=0; if (evt.target.id) { mois=document.getElementById(evt.target.id); minis=mois.min; maxis=mois.max; } else if (evt.id) { mois=document.getElementById(evt.target.id); minis=mois.min; maxis=mois.max; } if (mois != null) { if (evt.clientY) { if (mois.id == 'slidesecs') { ix=verify(eval(Math.floor(((evt.clientY - 20) / 200.0) * (maxis - minis)) + minis)); this.value=ix; } else { fx=verify(eval(Math.floor(((evt.clientY - 20) / 200.0) * (maxis - minis)) + minis)); this.value=fx; } } else if (evt.pageY) { if (mois.id == 'slidesecs') { ix=eval(Math.floor(((evt.pageY - 20) / 200.0) * (maxis - minis)) + minis); this.value=ix; } else { fx=eval(Math.floor(((evt.pageY - 20) / 200.0) * (maxis - minis)) + minis); this.value=fx; } } } } ";
76,77d50
< $scris.=" \n function fixifld(sval) { if (sval.indexOf('rjmprogramming.com.au') != -1) { document.getElementById('wordingurl').value=isd(sval.replace('http://www.rjmprogramming.com.au/ITblog/','').replace('http://www.rjmprogramming.com.au/wordpress','../wordpress')); } } ";
< $scris.=" \n function isd(xval) { if (xval != 'developing-black-and-white-photos-primer-tutorial/' && document.getElementById('nplace').value == 'Photography') { document.getElementById('nplace').value=''; } return xval; } ";
81,103d53
< function formstuff($wu, $plc, $ix, $fx, $wd, $ht) {
< if (strlen($plc) > 0 && strpos("*" . $plc . " ", "*/") !== false) $plc = substr($plc, 1);
< $wu=str_replace("http://www.rjmprogramming.com.au/ITblog/", "", str_replace("http://www.rjmprogramming.com.au/wordpress", "../wordpress", $wu));
< $mytuts=file_get_contents("http://www.rjmprogramming.com.au/Welcome.html");
< $myts=explode("mytuts", $mytuts);
< $optbits="";
< if (sizeof($myts) == 2) {
< $mytwo=explode("", $myts[1]);
< $myts=explode(">", $mytwo[0]);
< $optbits=str_replace('selected="selected"', '', str_replace("selected='selected'", "", str_replace($myts[0] . ">", "", $mytwo[0])));
< }
< $fidea="
<
< ";
< return $fidea;
< }
<
106d55
<
109,115c58,59
< $meterstr = "Slide Time in milliseconds Slide Time in milliseconds (short) 1000 to 60000 (long)Fader Cycle Period in milliseconds Fader Cycle Period in milliseconds (lots) 50 to 3600000 (little)
";
<
< if(preg_match('/(?i)msie /',$_SERVER['HTTP_USER_AGENT'])) {
< $meterstr = " Slide Time in milliseconds (short) 1000 to 60000 (long) Fader Cycle Period in milliseconds (lots) 50 to 3600000 (little)
";
< } else if (preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"])) {
< $meterstr = " Slide Time in milliseconds (short) 1000 to 60000 (long) Fader Cycle Period in milliseconds (lots) 50 to 3600000 (little)
";
< }
---
> $myarray = glob($diris . "*.jpg"); // Thanks to http://stackoverflow.com/questions/124958/glob-sort-by-date
> usort($myarray, create_function('$a,$b', 'return filemtime($b) - filemtime($a);'));
117,121c61,62
< if (strlen($place) > 0) {
< $myarray = glob($diris . "*.jpg"); // Thanks to http://stackoverflow.com/questions/124958/glob-sort-by-date
< usort($myarray, create_function('$a,$b', 'return filemtime($b) - filemtime($a);'));
< echo "" . str_replace("/", " ", $place) . " Slideshow Slide 1 Slide Period: " . $incrx . " Fader Cycle: " . $faderx . " ";
< for ($i=0; $i echo "" . str_replace("/", " ", $place) . " Slideshow Slide 1 Slide Period: " . $incrx . " Fader Cycle: " . $faderx . " ";
> for ($i=0; $i" . str_replace("/", " ", $place) . " Slideshow Slide 1 Slide Period: " . $incrx . " Fader Cycle: " . $faderx . " ";
---
> echo " Slide Time in milliseconds Slide Time in milliseconds (short) 1000 to 60000 (long)Fader Cycle Period in milliseconds Fader Cycle Period in milliseconds (lots) 50 to 3600000 (little)
Start of slideshow ...
";