MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/allyindian_com/sbltt/application/controllers/Home.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once("Secure_Controller.php");

class Home extends Secure_Controller {
	public function __construct(){
		parent::__construct();
		$this->load->model("Homemodel");
	}

	public function index(){
		if(!$this->Appconfig->isAppvalid()){
			redirect('config');
		}
		$data="";
		$this->load->view('home',$data);
	}
	/*
	public function mis_life_chart(){
		$result = $this->Homemodel->mis_life_chart();	
		$rows['type'] = 'pie';
		$rows['name'] = 'Company';		
		foreach ($result as $key => $value) {
			$rows['data'][] = array($value['vendorcompanyname'], $value['tot_count']);
		}
		$rslt = array();
		array_push($rslt,$rows);
		print json_encode($rslt, JSON_NUMERIC_CHECK);
	}
	
	public function mis_hl_chart(){
		$result = $this->Homemodel->mis_hl_chart();	
		$rows['type'] = 'pie';
		$rows['name'] = 'Company';		
		foreach ($result as $key => $value) {
			$rows['data'][] = array($value['vendorcompanyname'], $value['tot_count']);
		}
		$rslt = array();
		array_push($rslt,$rows);
		print json_encode($rslt, JSON_NUMERIC_CHECK);
	}
	public function crm_chart(){
		$result = $this->Homemodel->crm_chart();
		$drill_list = array();
		//$rows['colorByPoint'] = false;
		foreach ($result as $key => $value) {
			
			$lead_status = $value['lead_status'];
			$statusname  = $value['statusname'];
			$lead_count  = $value['lead_count'];
			$rows['data'][] = array("name"=>$statusname,"y"=>$lead_count,"drilldown"=>$statusname);
			
			$drill_result = $this->Homemodel->crm_chart_drill($lead_status);
			$drill = array();
			$drill['name'] = $statusname;
			$drill['id']   = $statusname;
			foreach ($drill_result as $key => $value) {				
				$prospect_name = $value['prospect_name'];
				$lead_count    = $value['lead_count'];				
				$drill['data'][] = array($prospect_name,$lead_count);
				array_push($drill_list,$drill);
			}
		}		
		$rslt = array();		
		array_push($rslt,$rows);	
		echo json_encode(array('series' => $rslt, 'drill_list' => $drill_list),JSON_NUMERIC_CHECK);
	}
	*/
	public function logout(){
		$this->Employee->logout();
	}
}
?>