%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Staticpages extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model(array('Common_model')); } public function index($page = null) { $this->goOut($page); $data = array(); $head = array(); $page = $this->Public_model->getOnePage($page); $this->goOut($page); $data['title'] = $page['name']; $data['content'] = $page['content']; $arrSeo = $this->Public_model->getSeo($page); $head['title'] = @$arrSeo['title']; $head['description'] = @$arrSeo['description']; $head['keywords'] = @$arrSeo['keywords']; // Set Custom SET Tags $customSEO = getCustomSeo(); $head['title'] = $customSEO->title; $head['keywords'] = $customSEO->keywords; $head['description'] = $customSEO->description; $this->render('staticpage', $head, $data); } public function activepages($page = null) { $pageSlug = $this->uri->segment(1); $this->goOut($pageSlug); $data = array(); $head = array(); $page = $this->Public_model->getOnePage($pageSlug); $this->goOut($page); $data['title'] = $page['name']; $data['content'] = $page['content']; // Set Custom SET Tags $customSEO = getCustomSeo(); $head['title'] = $customSEO->title; $head['keywords'] = $customSEO->keywords; $head['description'] = $customSEO->description; $this->render('activepages', $head, $data); } public function disclaimer($page = null) { $page = 'disclaimer'; $this->goOut($page); $data = array(); $head = array(); $page = $this->Public_model->getOnePage($page); $this->goOut($page); $data['title'] = $page['name']; $data['content'] = $page['content']; // Set Custom SET Tags $customSEO = getCustomSeo(); $head['title'] = $customSEO->title; $head['keywords'] = $customSEO->keywords; $head['description'] = $customSEO->description; $this->render('staticpage', $head, $data); } public function privacypolicy($page = null) { $page = 'privacypolicy'; $this->goOut($page); $data = array(); $head = array(); $page = $this->Public_model->getOnePage($page); $this->goOut($page); $data['title'] = $page['name']; $data['content'] = $page['content']; // Set Custom SET Tags $customSEO = getCustomSeo(); $head['title'] = $customSEO->title; $head['keywords'] = $customSEO->keywords; $head['description'] = $customSEO->description; $this->render('staticpage', $head, $data); } public function termsofuse($page = null) { $page = 'terms-of-use'; $this->goOut($page); $data = array(); $head = array(); $page = $this->Public_model->getOnePage($page); $this->goOut($page); $data['title'] = $page['name']; $data['content'] = $page['content']; // Set Custom SET Tags $customSEO = getCustomSeo(); $head['title'] = $customSEO->title; $head['keywords'] = $customSEO->keywords; $head['description'] = $customSEO->description; $this->render('staticpage', $head, $data); } public function accounthelpdesk($page = null) { $page = 'accounthelpdesk'; $this->goOut($page); $data = array(); $head = array(); $page = $this->Public_model->getOnePage($page); $this->goOut($page); $data['title'] = $page['name']; $data['content'] = $page['content']; $arrSeo = $this->Public_model->getSeo('accounthelpdesk'); // Set Custom SET Tags $customSEO = getCustomSeo(); $head['title'] = $customSEO->title; $head['keywords'] = $customSEO->keywords; $head['description'] = $customSEO->description; $this->render('staticpage', $head, $data); } private function goOut($page) { if ($page == null) { redirect(); } } /* * function : subscribedNow */ public function subscribedNow(){ if($_POST){ if (!filter_var($_POST['email_id'], FILTER_VALIDATE_EMAIL)) { $response = 'invalid_email'; } else { $data = array('email' => $_POST['email_id'], 'browser' => $this->ExactBrowserName(), 'ip' => $_SERVER['SERVER_ADDR'], 'time' => time()); $response = $this->Common_model->saveinfo('subscribed',$data); } } echo $response; exit(); } /* * Function: ExactBrowserName * return : browser name */ function ExactBrowserName() { $ExactBrowserNameUA = $_SERVER['HTTP_USER_AGENT']; if (strpos(strtolower($ExactBrowserNameUA), "safari/") and strpos(strtolower($ExactBrowserNameUA), "opr/")) { // OPERA $ExactBrowserNameBR = "Opera"; } elseif (strpos(strtolower($ExactBrowserNameUA), "safari/") and strpos(strtolower($ExactBrowserNameUA), "chrome/")) { // CHROME $ExactBrowserNameBR = "Chrome"; } elseif (strpos(strtolower($ExactBrowserNameUA), "msie")) { // INTERNET EXPLORER $ExactBrowserNameBR = "Internet Explorer"; } elseif (strpos(strtolower($ExactBrowserNameUA), "firefox/")) { // FIREFOX $ExactBrowserNameBR = "Firefox"; } elseif (strpos(strtolower($ExactBrowserNameUA), "safari/") and strpos(strtolower($ExactBrowserNameUA), "opr/") == false and strpos(strtolower($ExactBrowserNameUA), "chrome/") == false) { // SAFARI $ExactBrowserNameBR = "Safari"; } else { // OUT OF DATA $ExactBrowserNameBR = "OUT OF DATA"; }; return $ExactBrowserNameBR; } public function companybackground($page = null) { $page = 'company-background'; $this->goOut($page); $data = array(); $head = array(); $data['page_url'] = $page; $page = $this->Public_model->getOnePage($page); $this->goOut($page); $data['title'] = $page['name']; $data['content'] = $page['content']; // Set Custom SET Tags $customSEO = getCustomSeo(); $head['title'] = $customSEO->title; $head['keywords'] = $customSEO->keywords; $head['description'] = $customSEO->description; $this->render('companypage', $head, $data); } public function projectbackground($page = null) { $page = 'project-background'; $this->goOut($page); $data = array(); $head = array(); $data['page_url'] = $page; $page = $this->Public_model->getOnePage($page); $this->goOut($page); $data['title'] = $page['name']; $data['content'] = $page['content']; // Set Custom SET Tags $customSEO = getCustomSeo(); $head['title'] = $customSEO->title; $head['keywords'] = $customSEO->keywords; $head['description'] = $customSEO->description; $this->render('companypage', $head, $data); } public function scenarioindia($page = null) { $page = 'scenario-india'; $this->goOut($page); $data = array(); $head = array(); $data['page_url'] = $page; $page = $this->Public_model->getOnePage($page); $this->goOut($page); $data['title'] = $page['name']; $data['content'] = $page['content']; // Set Custom SET Tags $customSEO = getCustomSeo(); $head['title'] = $customSEO->title; $head['keywords'] = $customSEO->keywords; $head['description'] = $customSEO->description; $this->render('companypage', $head, $data); } public function projecthighlights($page = null) { $page = 'project-highlights'; $this->goOut($page); $data = array(); $head = array(); $data['page_url'] = $page; $page = $this->Public_model->getOnePage($page); $this->goOut($page); $data['title'] = $page['name']; $data['content'] = $page['content']; // Set Custom SET Tags $customSEO = getCustomSeo(); $head['title'] = $customSEO->title; $head['keywords'] = $customSEO->keywords; $head['description'] = $customSEO->description; $this->render('companypage', $head, $data); } }