moved interfaces ui into a seperate php file.
[CBFWR.git] / libcbfwr / comms.php
index b0c4f04..7486150 100644 (file)
@@ -37,11 +37,23 @@ class Comms {
                sem_release($this->semres);
        }
        
+       function deleteConfig($type)
+       {
+               global $MESSAGE_KEY, $LOCKING_KEY, $STORE_KEY, $CONF_STORE_SIZE;
+               $shm_space = shm_attach($STORE_KEY, $CONF_STORE_SIZE);
+               
+               shm_remove_var($shm_space, $type);
+       }
        
        // type = 0 for the fs config
        // type = 1 for the boot hardware config
        // type = 2 for running config
        // type = 3 for web config
+       
+       // type = 4 for merged running config cache
+       // type = 5 for merged web config cache
+       
+       // type = 6 for "messages" that appear on the pages
        function putConfig($config, $type=0)
        {
                global $MESSAGE_KEY, $LOCKING_KEY, $STORE_KEY, $CONF_STORE_SIZE;