");
}
if (file_exists("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html")) {
file_put_contents("../PHP/" . $_SERVER['REMOTE_ADDR'] . "_courses.html", 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 . "Course Designer
" . "";
} 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 {
echo "Ask About Course" . $bodyi . "Course Designer
" . "";
}
?>