X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=3f64a27ddede8d88af26808b788ebc95b0b9b0c6;hb=0a144953e57bf457df61e58a3f94b0178c1f9707;hp=f15b9999abebbea79042c08f43d9a6969f6c8737;hpb=1cf5e32bfd56c0704ca9857e5574ddd0f5edd42c;p=dylansserver.git diff --git a/index.php b/index.php index f15b999..3f64a27 100644 --- a/index.php +++ b/index.php @@ -34,7 +34,10 @@ abstract class cms { return 'index'; } else if (isset($_GET['project'])) { return 'project'; + } else if (isset($_GET['challenge'])) { + return 'captcha'; } + } public function query() { @@ -55,7 +58,7 @@ abstract class cms { call_user_func_array("mysqli_stmt_bind_result", $fields); $i = 0; while ($statement->fetch()) { - foreach ($row as $key1=>$value1) $return[$i][$key1] = $value1; + foreach ($row as $key=>$value) $return[$i][$key] = $value; $i++; } $statement->free_result(); @@ -66,8 +69,14 @@ abstract class cms { $home_link = "/") { $scripts = ""; $stylesheets = ""; - if (cms::determine_type() == "index") { $scripts = ""; $home_link = "http://validator.w3.org/unicorn/check?ucn_uri=dylanstestserver.com&ucn_task=conformance#"; + } else if ($this->determine_type() == 'note') { + $scripts = ""; + $scripts .= ""; + $scripts .= ""; + $scripts .= ""; } echo <<