I updated a centos machine from this code... you ripper, it works!
[glcas.git] / libglcas / config.php
index 634b69a..506a0b3 100644 (file)
@@ -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)