moving the configuration changes into the single config class
[CBFWR.git] / libcbfwr / web.php
index f28b21f..6977dc6 100644 (file)
@@ -60,6 +60,9 @@ class CBFWWeb {
                                case "rules":
                                        $bodyFunction = "CBFWRulesPage";
                                        break;
+                               case "changes":
+                                       CBFWChangesPage($url_s);
+                                       break;
                                case "admin":
                                        CBFWAdminPage($url_s);
                                        break;
@@ -229,6 +232,8 @@ function cbfw_getLastSeen($ip, $data)
 
 function CBFWConfigStatus()
 {
+       global $WEB_ROOT_FS, $BASE_URL;
+       
        $comms = new Comms();
        
        $conf0 = $comms->getConfig(0);
@@ -246,7 +251,7 @@ function CBFWConfigStatus()
                $client = "Current";
        } else {
                $ch = $conf2["status"];
-               $client = "$ch Changes";
+               $client = "$ch Changes <a href=\"$BASE_URL/changes/show\">Show</a>";
        }