commit e2d7ebf6ae2013d5a27220634af21a71e0151d9e Author: notfire Date: Mon Dec 9 11:32:56 2024 -0500 mrooeww diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4e9b47a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +config.php \ No newline at end of file diff --git a/admin.php b/admin.php new file mode 100644 index 0000000..e69de29 diff --git a/config.example.php b/config.example.php new file mode 100644 index 0000000..d8f3999 --- /dev/null +++ b/config.example.php @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/fetch.php b/fetch.php new file mode 100644 index 0000000..0969032 --- /dev/null +++ b/fetch.php @@ -0,0 +1,37 @@ +"); + +if (pg_num_rows($qresp) === 0 || $arr["ispublic"] === "f" || $arr["isrespondedto"] === "f") { + echo("

no such question exists

"); +} else { + echo("

individual question

"); + + echo("(go back?)"); + echo("
"); + if ($arr["iscwed"] === "t") { + echo("
cw: " . $arr["cw"] . ""); + } + echo($arr["text"]); + echo("
" . $arr["time"] . "
"); + echo("
" . $arr["responsetext"] . ""); + echo("
" . $arr["responsetime"] . "
"); +} + +?> \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..983e03d --- /dev/null +++ b/index.php @@ -0,0 +1,22 @@ + \ No newline at end of file diff --git a/indiv.css b/indiv.css new file mode 100644 index 0000000..659c87e --- /dev/null +++ b/indiv.css @@ -0,0 +1,37 @@ +body { + background-color: black; + color: white; + font-family: Arial, Helvetica, sans-serif; +} + +.goback { + color: #ff0000; +} + +.title { + margin-bottom: .1em; +} + +.question { + margin-top: .7em; + background-color: #2c2c2c; + border-radius: 5px; + max-width: fit-content; + padding: .5em; +} + +.response { + background-color: #505050; + border-radius: 5px; + margin-top: .3em; + padding: .4em; +} + +.time { + font-size: .8em; +} + +.cwfiller { + height: 1.3em; + display: inline-block; +} \ No newline at end of file diff --git a/respond.php b/respond.php new file mode 100644 index 0000000..3c0d806 --- /dev/null +++ b/respond.php @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/send.php b/send.php new file mode 100644 index 0000000..a617f93 --- /dev/null +++ b/send.php @@ -0,0 +1,30 @@ + $_GET["text"], + "cw" => $_GET["cw"], + "iscwed" => $iscw, + "time" => $curTime, + "ispublic" => $_GET["public"], + "isrespondedto" => False +); + +pg_insert($db, "data", $dataArray); + +header("Location: index.php?sent=1"); + +?> \ No newline at end of file diff --git a/setup.php b/setup.php new file mode 100644 index 0000000..ea8258e --- /dev/null +++ b/setup.php @@ -0,0 +1,23 @@ + \ No newline at end of file