Exemplo n.º 1
0
 function unregister_url($url)
 {
     $sm =& vivvo_lite_site::get_instance();
     if ($sm->is_registered_url($url)) {
         require_once VIVVO_FS_FRAMEWORK . 'vivvo_post.php';
         require_once VIVVO_FS_FRAMEWORK . 'vivvo_preference.php';
         $pm = new vivvo_post_master();
         $config_list = new preferences_list();
         if ($config_list->get_preference_by_all_variable($url, '', '', 'url_modules', 1)) {
             $config_list->sql_delete_list($pm);
             unset($sm->url_modules[$url]);
             return true;
         }
     }
     return false;
 }
Exemplo n.º 2
0
 /**
  * Remove module configuration
  *
  * @param string $name Module name
  *
  * @return boolean True on success, false on fail
  */
 function remove_module($name)
 {
     require_once VIVVO_FS_FRAMEWORK . 'vivvo_preference.php';
     if (!$this->_post_master) {
         $this->set__post_master();
     }
     $config_list = new preferences_list();
     if ($config_list->get_preference_by_all_variable('', '', '', $name, 1)) {
         vivvo_cache::get_instance()->delete('configuration');
         return $config_list->sql_delete_list($this->_post_master);
     }
 }