'; } } } } else if (multi == 1 && document.getElementById('sofar1')) { for (var i=0; i'; } } } } } function ChangeTutNow(x) { var chuh, ahuh; if (multi == 1) { if (document.getElementById('coursesq').value == '' || isonclick == 0) { for (var i = 0; i < x.options.length; i++) { if(x.options[i].selected == true){ chuh = x.options[i].value; if (chuh != '') { ahuh = chuh.split('='); if (ahuh[ahuh.length - 1] != '') { var bhuh=ahuh[1].split('&'); document.getElementById('coursesq').value = document.getElementById('coursesq').value + comma + bhuh[0]; document.getElementById('courselsq').value = document.getElementById('courselsq').value + comma + ahuh[ahuh.length - 1].replace(/_/g, ' '); if (parent.document.getElementById('dblcdiv')) { parent.document.getElementById('dblcdiv').innerHTML=''; } document.getElementById('sofar1').innerHTML = document.getElementById('sofar1').innerHTML.replace(document.getElementById('sofar1').innerHTML.split('')[0].split('','') + '<' + 'br' + '>' + ahuh[ahuh.length - 1].replace(/_/g, ' '); document.getElementById('topic').innerHTML = document.getElementById('topic').innerHTML.replace(ahuh[ahuh.length - 1],'').replace(ahuh[ahuh.length - 1],''); comma=','; } } } } } } return true; } "; function via($infind) { global $thetopic; $huh = file_get_contents(dirname(__FILE__) . "/../index.html"); $sels = explode("", $sels[2]); $xsel = explode(">", $selin[0]); $ih = str_replace(($xsel[0] . ">"), "", $selin[0]); return ""; } else { $selin = explode("", $sels[2]); $xsel = explode(">", $selin[0]); $ih = str_replace(($xsel[0] . ">"), "", $selin[0]); $newih = ""; $lotsnewih = explode("", $ih); for ($i=0; $i", $lotsnewih[$i])[-1 + sizeof(explode(">", $lotsnewih[$i]))] . " "; if (strpos(strtolower($lotsnewihless), " " . strtolower($infind) . " ") !== false) $newih = str_replace("", "" . str_replace("MyNew-", $infind . "MyNew-", $lotsnewih[$i]) . "", $newih); } else { if (strpos($lotsnewih[$i], ">" . $infind . " ") !== false) $newih = str_replace("", "" . str_replace("MyNew-", $infind . "MyNew-", $lotsnewih[$i]) . "", $newih); } } return ""; } } return ""; } function fixforsix($infil) { $six = 5; // 6 $outfil = str_replace("../PHP/", dirname(__FILE__) . "/../PHP/", $infil); if (file_exists($outfil)) { $contis = file_get_contents($outfil); $newcontis = ""; $strips = explode("", $contis); for ($i=0; $i<=sizeof($strips); $i++) { $newcontis .= $strips[$i]; } $delim = ""; $newstrips = explode("<", "><", $delim) . $newstrips[$j]; } else { $newercontis .= $delim . $newstrips[$j]; } $delim = ""; } if (isset($_GET['iplink'])) { if (file_exists("../PHP/ip_" . $_GET['iplink'] . ".php")) { $pra = str_replace("\n", "", file_get_contents("../PHP/ip_" . $_GET['iplink'] . ".php")); if ($pra == $_SERVER['REMOTE_ADDR']) { foreach (glob("../PHP/*_" . $pra . ".npg") as $filename) { file_put_contents(str_replace($pra, "proofofconcept", $filename), file_get_contents($filename)); } } else { if (file_exists("../PHP/" . $pra . "_courses.html")) { if (!file_exists("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html")) { file_put_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html", "Ask About Course
"); } $obits = file_get_contents(dirname(__FILE__) . "/../PHP/" . $pra . "_courses.html"); $obitstr = explode("", $obits); $obitsetr = explode("", $obitstr[1]); file_put_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html", str_replace("", $obitsetr[0] . "", str_replace($obitsetr[0], "", file_get_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html")))); //$bodyi .= ""; foreach (glob("../PHP/*_" . $pra . ".npg") as $filename) { if (!file_exists(str_replace($pra, $_SERVER['REMOTE_ADDR'], $filename))) { file_put_contents(str_replace($pra, $_SERVER['REMOTE_ADDR'], $filename), file_get_contents($filename)); } } $bodyi = $doit . ""; } } } if (isset($_GET['p']) && isset($_GET['pp']) && isset($_GET['pn']) && isset($_GET['title']) && isset($_GET['backto'])) { header("Location: " . str_replace("?" . $_SERVER['QUERY_STRING'], "", str_replace("PHP/design_a_course.php", "wordpress/", $_SERVER['REQUEST_URI'])) . "?p=" . $_GET['p'] . "&pp=" . $_GET['pp'] . "&pn=" . $_GET['pn'] . "&title=" . $_GET['title'] . "&backto=" . urlencode($_GET['backto']) . "#content"); exit; } else if (isset($_GET['p']) && isset($_GET['pp']) && isset($_GET['pn']) && isset($_GET['title'])) { header("Location: " . str_replace("?" . $_SERVER['QUERY_STRING'], "", str_replace("PHP/design_a_course.php", "wordpress/", $_SERVER['REQUEST_URI'])) . "?p=" . $_GET['p'] . "&pp=" . $_GET['pp'] . "&pn=" . $_GET['pn'] . "&title=" . $_GET['title'] . "#content"); exit; } } } if (isset($_GET['iptime'])) { $hans = ""; if (isset($_GET['email'])) { //echo " <" . "script type='text/javascript'> document.getElementById('bodyi').contentDocument.getElementById('emailfriends').click(); "; $bodyi = str_replace("_courses.html", "_courses.html?email=y&ans=" . $_GET['ans'], $bodyi); } $ipstuff = explode("_", $_GET['iptime']); $ipis = $ipstuff[0]; $timeis = $ipstuff[1]; $cname = str_replace("~", " ", str_replace(" ", "++", str_replace("%20%20", "++", $ipstuff[2]))); $lwis = " linking word for Course is " . $timeis; if (isset($_GET['ans'])) { if (substr($_GET['ans'],0,1) == "x" || substr($_GET['ans'],0,1) == "X") { $hans = "&ask=y"; $lwis = ""; } } file_put_contents("../PHP/ip_" . $timeis . ".php", $ipis); $ddstuff = ""; file_put_contents("../PHP/allip_courses.php", str_replace("none;", "block;", str_replace("", $ddstuff . "", str_replace(">" . $cname . $lwis . "<", "><", file_get_contents("../PHP/allip_courses.php"))))); } if (isset($_POST['coursename'])) { $tuts = explode(",", $_POST['coursesq']); $ltuts = explode(",", $_POST['courselsq']); $prev = ""; $next = ""; $conload = ""; $subject = str_replace(" ", "%20", $_POST['coursename'] . " at Robert Metcalfe Blog ( http://www.rjmprogramming.com.au/wordpress ) ... date/time that links from dropdown is ... *@*"); $body = "http://www.rjmprogramming.com.au/wordpress/?page_id=10014&show=y&iplink=*@*"; $first = "http://www.rjmprogramming.com.au/wordpress/?p=" . $tuts[0]; for ($i=0; $i "); } if (file_exists("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html")) { file_put_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html", str_replace("", "" . $_POST['coursename'] . "", str_replace("" . $_POST['coursename'] . "", "", file_get_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html")))); $thetime = str_replace("-", "", str_replace(":", "", date("Y-m-d-H:i:s", filemtime("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html")))); $thinge = explode("iplink=", str_replace("'", "", str_replace('"', '', file_get_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html")))); $thingo = explode(">", $thinge[1]); file_put_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html", str_replace($thingo[0], $thetime, file_get_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html"))); $conload = " onload=' var andemail=\"\"; var preans=\"" . $thetime . "\"; var ans=prompt(\"If you are willing to share your Course (and to email Share information to friends add any character to start ... x means they need to enter date/time correctly ... and) click OK now else clear time and click OK\", \"" . $thetime . "\"); if (ans != \"\" && ans != null) { if (preans != ans) { andemail=\"&email=y&ans=\" + ans; } location.href = document.URL.replace(\"?show=y\", \"\") + \"?iptime=" . $_SERVER['REMOTE_ADDR'] . "_" . $thetime . "_" . str_replace("%20", "~", str_replace("_", "~", str_replace(" ", "~", $_POST['coursename']))) . "&show=y\" + andemail; } ' "; } else { file_put_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html", "Ask About Course
" . $_POST['coursename'] . "
"); $thetime = str_replace("-", "", str_replace(":", "", date("Y-m-d-H:i:s", filemtime("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html")))); file_put_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html", str_replace("*@*", $thetime, file_get_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html"))); $conload = " onload=' var andemail=\"\"; var preans=\"" . $thetime . "\"; var ans=prompt(\"If you are willing to share your Course (and to email Share information to friends add any character to start ... x means they need to enter date/time correctly ... and) click OK now else clear time and click OK\", \"" . $thetime . "\"); if (ans != \"\" && ans != null) { if (preans != ans) { andemail=\"&email=y&ans=\" + ans; } location.href = document.URL.replace(\"?show=y\", \"\") + \"?iptime=" . $_SERVER['REMOTE_ADDR'] . "_" . $thetime . "_" . str_replace("%20", "~", str_replace("_", "~", str_replace(" ", "~", $_POST['coursename']))) . "&show=y\" + andemail; } ' "; } echo "Ask About Course" . $bodyi . "

Course Designer

Thanks for your " . $_POST['coursename'] . " Course Design

" . str_replace("ChangeTutNow(this);", " var ahuh=this.value.split(\"=\"); location.href = \"./design_a_course.php?topic=\" + ahuh[ahuh.length - 1].replace(\"#\", \"%23\"); ", via("")) . "


" . ""; } else if (isset($_GET['topic'])) { $pretopics = explode("title=", $_GET['topic']); $topics = explode(" ", str_replace("_", " ", str_replace(" ", "++", $pretopics[sizeof($pretopics) - 1]))); $thetopic = $topics[0]; echo "Ask About Course" . $bodyi . "

" . $thetopic . " Course Designer


Course Name:
" . str_replace("ChangeTutNow(this);", " if (multi == 0) { var ahuh=this.value.split(\"=\"); if (ahuh[ahuh.length - 1] != \"\") { var bhuh=ahuh[1].split(\"&\"); document.getElementById(\"coursesq\").value = document.getElementById(\"coursesq\").value + comma + bhuh[0]; document.getElementById(\"courselsq\").value = document.getElementById(\"courselsq\").value + comma + ahuh[ahuh.length - 1].replace(/_/g, \" \"); document.getElementById(\"sofar\").innerHTML = document.getElementById(\"sofar\").innerHTML + \"<\" + \"br\" + \">\" + ahuh[ahuh.length - 1].replace(/_/g, \" \"); document.getElementById(\"topic\").innerHTML = document.getElementById(\"topic\").innerHTML.replace(ahuh[ahuh.length - 1],\"\").replace(ahuh[ahuh.length - 1],\"\"); comma=\",\"; } } ", via($topics[0])) . "


" . "

"; } else if (isset($_GET['ipselect'])) { if (file_exists("../PHP/" . $_GET['ipselect'] . "_courses.html")) { $hcont = str_replace("wordpress/", "PHP/design_a_course.php", str_replace("href=", "value=", str_replace("", "", str_replace("target=_blank", "", str_replace("", "", str_replace("", "", str_replace("", "", str_replace("", "", str_replace("'>", "&show=y&iplink=20141008094619&backto=http%3a%2f%2fwww.rjmprogramming.com.au%2fLearning%2fProgramming%3fisMobile%3dn'>", str_replace(" class='coursea'", "", str_replace("", "", file_get_contents("../PHP/" . $_GET['ipselect'] . "_courses.html"))))))))))))); $tbits = explode("", $hcont); echo ""; } else if (file_exists("../../PHP/" . $_GET['ipselect'] . "_courses.html")) { $hcont = str_replace("wordpress/", "PHP/design_a_course.php", str_replace("href=", "value=", str_replace("", "", str_replace("target=_blank", "", str_replace("", "", str_replace("", "", str_replace("", "", str_replace("", "", str_replace("'>", "&show=y&iplink=20141008094619&backto=http%3a%2f%2fwww.rjmprogramming.com.au%2fLearning%2fProgramming%3fisMobile%3dn'>", str_replace(" class='coursea'", "", str_replace("", "", file_get_contents("../../PHP/" . $_GET['ipselect'] . "_courses.html"))))))))))))); $tbits = explode("", $hcont); echo ""; } } else { $bodyi .= "

"; echo "Ask About Course" . $bodyi . "

Course Designer

" . str_replace("ChangeTutNow(this);", " var ahuh=this.value.split(\"=\"); location.href = \"./design_a_course.php?topic=\" + ahuh[ahuh.length - 1].replace(\"#\", \"%23\"); ", via("")) . "


" . ""; } ?>