Padgoi Posted July 2, 2008 Share Posted July 2, 2008 This code is just returning a blank page. Any help would be greatly appreciated. $greg = $this->ipsclass->DB->simple_exec_query(array('select' => 'COUNT(*) as total', 'from' => 'members', 'where' => 'karma'>1 ) ); $gege = $this->ipsclass->build_pagelinks( array( 'TOTAL_POSS' => $greg['total'], 'PER_PAGE' => 25, 'CUR_ST_VAL' => $this->start_val, 'L_SINGLE' => "", 'L_MULTI' => "Pages: ", 'BASE_URL' => $this->ipsclass->base_url."autocom=karma", ) ); $this->ipsclass->DB->simple_exec(); $this->output .= $this->ipsclass->compiled_templates['skin_ban']->main_page($gege); Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted July 2, 2008 Share Posted July 2, 2008 try adding error_reporting(E_ALL); to the top of the page Quote Link to comment Share on other sites More sharing options...
Padgoi Posted July 2, 2008 Author Share Posted July 2, 2008 That didn't change anything, it's still returning nothing. Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted July 2, 2008 Share Posted July 2, 2008 can you show all the code, or is that it? Quote Link to comment Share on other sites More sharing options...
Padgoi Posted July 2, 2008 Author Share Posted July 2, 2008 <?php if ( ! defined( 'IN_IPB' ) ) { print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'."; exit(); } class component_public { var $ipsclass = ''; var $output = ""; var $page_title = ""; var $nav = array(); var $parser = ""; var $bans = array(); var $version = "1.0.0"; function run_component() { //----------------------------------------- // Require the HTML and language modules //----------------------------------------- $this->ipsclass->load_template('skin_ban'); $this->start_val = intval($this->ipsclass->input['st']) >=0 ? intval($this->ipsclass->input['st']) : 0; $this->base_url = $this->ipsclass->base_url; //----------------------------------------- // What to do? //----------------------------------------- switch($this->ipsclass->input['CODE']) { default: $this->show_main(); break; } $this->output .= $this->ipsclass->compiled_templates['skin_ban']->finish(); //----------------------------------------- // If we have any HTML to print, do so... //----------------------------------------- $this->ipsclass->print->add_output("$this->output"); $this->ipsclass->print->do_output( array( 'TITLE' => $this->page_title, 'JS' => 0, NAV => $this->nav ) ); } function show_main() { //-------------------------------------- // Get the list for this rating //-------------------------------------- $greg = $this->ipsclass->DB->simple_exec_query(array('select' => 'COUNT(*) as total', 'from' => 'members', 'where' => 'karma'>1 ) ); $gege = $this->ipsclass->build_pagelinks( array( 'TOTAL_POSS' => $greg['total'], 'PER_PAGE' => 25, 'CUR_ST_VAL' => $this->start_val, 'L_SINGLE' => "", 'L_MULTI' => "Pages: ", 'BASE_URL' => $this->ipsclass->base_url."autocom=karma", ) ); $this->ipsclass->DB->simple_exec(); $this->output .= $this->ipsclass->compiled_templates['skin_ban']->main_page($gege); $this->page_title = $this->ipsclass->lang['title']; $this->nav = array( $this->ipsclass->lang['title'] ); } } ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.