Jump to content

Little help with this code...


Padgoi

Recommended Posts

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);

Link to comment
https://forums.phpfreaks.com/topic/112950-little-help-with-this-code/
Share on other sites

<?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'] );





}



}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.