more initial code
[glcas.git] / lib / lib.php
index 0b5c221..2a5ace8 100644 (file)
@@ -23,11 +23,14 @@ if(is_dir("$basedir/plugins")) {
 function urlInterpretter()
 {
        global $BASE_URLS;
+       global $URL_COMPONENTS;
        
        if(isset($_REQUEST["q"])) $qry = $_REQUEST["q"];
        else $qry = "";
        
        $urlcomps = preg_split("/[,\/]/", $qry);
+       $URL_COMPONENTS = $urlcomps;
+       
        foreach($BASE_URLS as $bases_cd => $bases) {
                //echo "<br>checking $bases_cd for ".$bases["base"]." against \"".$urlcomps[0]."\"<br>";
                if(strtolower($urlcomps[0]) == strtolower($bases["base"])) {