<", $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 CourseEmail Friends");
}
$obits = file_get_contents(dirname(__FILE__) . "/../PHP/" . $pra . "_courses.html");
$obitstr = explode(" |
");
}
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 CourseEmail Friends");
$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 . "" . "";
} 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
" . "";
} 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 . "" . "";
}
?>