HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/awaldron/public_html/archive/ras/application/libraries/RasGallery.php
<?php defined('BASEPATH') OR exit('No direct script access allowed');

class RasGallery
{
	function __construct()
	{
		$this->ci =& get_instance();		
		$this->ci->load->database();
	}
	
	function get_gallery_data( $gal_ids = false ) {
	
		$this->ci->db->select();
		$this->ci->db->from("ras_gallery as A, ras_gallery_phogal as B, ras_gallery_photo as C");
		$this->ci->db->where_in("A.gal_id", $gal_ids);
		$this->ci->db->where("B.gal_id = A.gal_id");
		$this->ci->db->where("B.order = 1");
		$this->ci->db->where("B.photo_id = C.photo_id");
		$this->ci->db->order_by("A.gal_id", "ASC");
		
		$q =  $this->ci->db->get();		
		$gdata = rset($q);
		
		return $gdata;
	
	}

}