function loadFilters()
{
    global $FILTERS, $CM;
    if (!empty($CM) && $CM->GetData(115, $FILTERS)) {
        return;
    }
    $FILTERS = new FilterList();
    if (is("DB_CONNECTION")) {
        $FILTERS->Populate();
    }
    if (!empty($CM)) {
        $CM->SetData(115, $FILTERS, true);
    }
}
Exemplo n.º 2
0
 /**
  * Create a new GlobalFilterList instance.
  *
  * @access public
  * @since  1.0
  */
 function GlobalFilterList()
 {
     parent::FilterList();
     $this->filters['AutoLoginFilter'] =& new AutoLoginFilter();
     $this->filters["MessageFilter"] =& new MessageFilter();
 }