diff --git a/.gitignore b/.gitignore index 88ca1e6..1a824bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ pile.db -vendor docs + +vendor +_lib *.woff + error_log diff --git a/www/_lib/.htaccess b/www/_lib/.htaccess new file mode 100644 index 0000000..14249c5 --- /dev/null +++ b/www/_lib/.htaccess @@ -0,0 +1 @@ +Deny from all \ No newline at end of file diff --git a/www/index.php b/www/index.php index 29fe362..01b469b 100644 --- a/www/index.php +++ b/www/index.php @@ -1,12 +1,15 @@ fetchDoc($_GET["item"]); + $doc["Description"] = $pd->text($doc["Description"]); $doc_template = new Template(); $doc_template->doc = $doc; @@ -18,9 +21,11 @@ if (isset($_GET["item"])) { } elseif ($_GET["tag"] == "_") { $docs = $db->listDocs(-1); } else { - $tag = $db->findTag($_GET["tag"]); - $docs = $db->listDocs($tag["ID"]); - $doc_list_template->tag = $db->fetchTag($tag["ID"]); + $tagObj = $db->findTag($_GET["tag"]); + $docs = $db->listDocs($tagObj["ID"]); + $tag = $db->fetchTag($tagObj["ID"]); + $tag["Description"] = $pd->text($tag["Description"]); + $doc_list_template->tag = $tag; } $doc_list_template->docs = $docs; $content = $doc_list_template->render('front_doc_listing.php');