DISPLAY CLASS | > Module written by Matt Mecham | > Date started: 26th January 2004 | | > Module Version Number: 1.0.0 | > DBA Checked: Wed 19 May 2004 +-------------------------------------------------------------------------- */ class display { var $to_print = ""; var $output = ""; var $macros = ""; //----------------------------------------- // CONSTRUCTOR //----------------------------------------- function display() { global $ibforums, $std; } //----------------------------------------- // Appends the parsed HTML to our class var //----------------------------------------- function add_output($to_add) { $this->to_print .= $to_add; //return 'true' on success return true; } /*-------------------------------------------------------------------------*/ // // Parses all the information and prints it. // /*-------------------------------------------------------------------------*/ function do_output($output_array) { global $DB, $Debug, $ibforums, $std; //----------------------------------------- // Are we IPSing? //----------------------------------------- $this->_check_ips_report(); //----------------------------------------- // UNPACK MACROS //----------------------------------------- $this->_unpack_macros(); //----------------------------------------- // END TIMER //----------------------------------------- $this->ex_time = sprintf( "%.4f",$Debug->endTimer() ); //----------------------------------------- // SQL DEBUG? //----------------------------------------- $this->_check_debug(); $stats = $this->_show_debug(); //----------------------------------------- // NAVIGATION //----------------------------------------- $nav = $ibforums->skin_global->start_nav(); $nav .= "{$ibforums->vars['board_name']}"; if ( empty($output_array['OVERRIDE']) ) { if (is_array( $output_array['NAV'] ) ) { foreach ($output_array['NAV'] as $n) { if ($n) { $nav .= "<{F_NAV_SEP}>" . $n; } } } } $nav .= $ibforums->skin_global->end_nav(); //----------------------------------------- // CSS //----------------------------------------- $css = $this->_get_css(); //----------------------------------------- // Copy it right //----------------------------------------- $extra = ""; $ur = '(Trial)'; $pwd = 'Powered by '; if ( $ibforums->vars['ipb_reg_number'] ) { $ur = ''; $pwd = ''; if ( $ibforums->vars['ipb_reg_show'] and $ibforums->vars['ipb_reg_name'] ) { $extra = "