[AVh*o* alYX.bkCU>bNw0l&\J8IYD΅@+>p:@L>!_ "؁m f\?Dlep-lhJmCCx++t—hj{IAtnQNePE8y$g(1FZG?gz9V]'1LOdm敋Ң $gđGꖆ('VYܥ8D]Pow_update_caches ) { $this->ipsclass->update_cache( array( 'name' => 'bbcode', 'array' => 1, 'deletefirst' => 1 ) ); } } //----------------------------------------- // Check badwords //----------------------------------------- if ( !isset($this->ipsclass->cache['badwords']) OR !is_array( $this->ipsclass->cache['badwords'] ) ) { $this->ipsclass->cache['badwords'] = array(); $this->ipsclass->DB->simple_construct( array( 'select' => 'type,swop,m_exact', 'from' => 'badwords' ) ); $bbcode = $this->ipsclass->DB->simple_exec(); while ( $r = $this->ipsclass->DB->fetch_row($bbcode) ) { $this->ipsclass->cache['badwords'][] = $r; } if( count($this->ipsclass->cache['badwords']) ) { @usort( $this->ipsclass->cache['badwords'] , array( &$this->bbclass, 'word_length_sort' ) ); } if ( $this->allow_update_caches ) { $this->ipsclass->update_cache( array( 'name' => 'badwords', 'array' => 1, 'deletefirst' => 1 ) ); } } } /*-------------------------------------------------------------------------*/ // Load classes /*-------------------------------------------------------------------------*/ function _load_classes() { if ( ! $this->classes_loaded ) { require_once( ROOT_PATH . 'sources/classes/bbcode/class_bbcode_core.php' ); switch( $this->pre_db_parse_method ) { case 'legacy': $class = 'class_bbcode_legacy.php'; break; default: $class = 'class_bbcode.php'; break; } require_once ( ROOT_PATH . 'sources/classes/bbcode/' . $class ); $this->bbclass = new class_bbcode(); $this->bbclass->ipsclass =& $this->ipsclass; $this->classes_loaded = 1; $this->error =& $this->bbclass->error; } } } ?>