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





}



}

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.