X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=blobdiff_plain;f=libglcas%2Fconfig.php;h=506a0b31feb69d45aae986ddd716eee771526b36;hp=634b69a69372838f633188b9e6d7d25d6624f513;hb=b0651723ae8487b4791b01cfbdcebf2d76907bed;hpb=f3bb1ef4d1fb0297498f8a1a30c2332e2e5905e8 diff --git a/libglcas/config.php b/libglcas/config.php index 634b69a..506a0b3 100644 --- a/libglcas/config.php +++ b/libglcas/config.php @@ -18,6 +18,13 @@ class GLCASConfig { } + function getConfigVar($var) + { + if(isset($this->config["$var"])) { + return $this->config["$var"]; + } else return false; + } + function setConfigVar($var, $value) { if(is_array($this->config)) { @@ -33,6 +40,7 @@ class GLCASConfig { // otherwise, set it error_log("set config of $var to $value"); $this->config[$var] = $value; + } function delConfigVar($var)