diff options
author | deva <deva> | 2011-11-01 09:32:21 +0000 |
---|---|---|
committer | deva <deva> | 2011-11-01 09:32:21 +0000 |
commit | 42c62cb041a2b2b95c9cda0c20fcf70334fd244c (patch) | |
tree | 38371eb37ff7348585ee84438b326c25055e2cbe /utils/modules/config.php | |
parent | 208e3b642149a9ac701a43397d31990f9b27ca79 (diff) |
Rewl og krat... needs cleaning up - after port to GIT.origin
Diffstat (limited to 'utils/modules/config.php')
-rw-r--r-- | utils/modules/config.php | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/utils/modules/config.php b/utils/modules/config.php index 13cdda1..dcdedda 100644 --- a/utils/modules/config.php +++ b/utils/modules/config.php @@ -43,12 +43,32 @@ class Config { echo "The stylesheet has now been changed to \"". $this->value("css") . "\""; $this->write(); break; - + /* + case "css_test_start": + setCookie("testcss", $vars["css"]); + break; + + case "css_test_stop": + deleteCookie("testcss"); + break; + */ default: $form = new Form("update"); $form->addWidget(new LineEdit("CSS file:", "css", $this->value("css", "CSS not yet set"))); $form->addWidget(new Button("Update")); $form->render(); + /* + if(!$testcss) { + $form = new Form("css_test_start"); + $form->addWidget(new LineEdit("Test CSS file:", "css", "")); + $form->addWidget(new Button("Start CSS test")); + $form->render(); + } else { + $form = new Form("css_test_stop"); + $form->addWidget(new Button("Stop CSS test")); + $form->render(); + } + */ break; } } @@ -173,6 +193,7 @@ class Config { public function value($name, $default = "") { + if($GLOBALS["test"] == "1" && $name == "css") return "design/rotr/style.css"; if(isset($this->configs[$name])) return $this->configs[$name]; return $default; } |