From 7b274b2017108a6f2e28c346017eb0d590d076f6 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sat, 9 Jun 2007 14:27:11 +0000 Subject: [PATCH] Further update documentation, remove obsolete smoketest file. git-svn-id: http://htmlpurifier.org/svnroot@1133 48356398-32a2-884e-a903-53898d9a118a --- config.default.php | 4 +++- config.filters.php | 2 +- htaccess.php | 1 + purgatory.php | 2 +- smoketest.txt | 11 ----------- 5 files changed, 6 insertions(+), 14 deletions(-) delete mode 100644 smoketest.txt diff --git a/config.default.php b/config.default.php index 4c37fd6..23d18d2 100644 --- a/config.default.php +++ b/config.default.php @@ -63,6 +63,8 @@ $svn_headurl_munge = array(); // by XHTML Compiler (i.e. mod_rewrite will act upon it) and will apply // to all directories, not just the ones XHTML Compiler manages. However, // pages that XHTML Compiler manages will always be 404 handled by -// XHTML Compiler and NOT Apache +// XHTML Compiler and NOT Apache. What this means is that a default +// error page will often be defined, in which case Apache hands the ball +// to XHTML Compiler, who displays a much less informative error message. ?> \ No newline at end of file diff --git a/config.filters.php b/config.filters.php index 4c0fb9d..cdb2679 100644 --- a/config.filters.php +++ b/config.filters.php @@ -1,6 +1,6 @@ addDOMFilter('Subversion'); $filters->addDOMFilter('GenerateTableOfContents'); diff --git a/htaccess.php b/htaccess.php index 80ee3f8..2e7fce8 100644 --- a/htaccess.php +++ b/htaccess.php @@ -5,6 +5,7 @@ * @note If a .htaccess.in prototype file is present in the directory, * it will be used as the "base" htaccess to determine the new * one, and local changes to .htaccess will ALWAYS be overwritten + * @todo Create an HTAccess object to edit */ require 'common.php'; diff --git a/purgatory.php b/purgatory.php index af1ef5b..4558704 100644 --- a/purgatory.php +++ b/purgatory.php @@ -3,6 +3,7 @@ $cookie = 'purgatory'; $mode = isset($_COOKIE[$cookie]) ? (bool) $_COOKIE[$cookie] : false; +// purgatory mode lasts half a year if (isset($_POST['purgatory'])) { $mode = !$mode; setcookie($cookie, $mode ? '1' : '0', @@ -10,7 +11,6 @@ if (isset($_POST['purgatory'])) { ); } - ?> diff --git a/smoketest.txt b/smoketest.txt deleted file mode 100644 index 5256a9a..0000000 --- a/smoketest.txt +++ /dev/null @@ -1,11 +0,0 @@ -Smoketest Procedures - -1. Delete index.html, load page in browser. Expect: Fully formed page -2. Run `php update.php clean`. Expect: All html pages gone -3. Run `php update.php normal`. Expect: No updates -4. Run `php update.php all`. Expect: All html pages generated -5. Touch index.xhtml source file, run `php update.php normal`. Expect: - index.html updated - -Todo: -* Smoketests for htaccess functionality \ No newline at end of file -- 2.11.4.GIT