summaryrefslogtreecommitdiff
path: root/utils/modules/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'utils/modules/config.php')
-rw-r--r--utils/modules/config.php23
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;
}