? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/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/rms/application/controllers/hr.php

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Hr extends MY_Controller {

    public function  __construct()
    {
         parent::__construct();
         $this->load->model('mastermodel');
         $this->load->model('hrmodel');
    }

    
   function viewinhrsearch($modelfunction='',$page,$pagenum)
   {
        $output=$this->hrmodel->$modelfunction($pagenum);
        $data['viewinfo']=$output['results'];
        $this->load->view('hr/'.$page.'',$data);
    }
    
    function addformdisplay($page,$directory,$return_page='')
    {
        $data=array();
        $data['return_page']=$return_page;
        $perm=$this->hrmodel->check_user_permission($_SESSION['current_mode'], $_SESSION['user_id'],1);
        if(!$perm)
        {
             $data['msg']="Permission Denied";
             $this->load->view('message',$data);
        }
        else
        {
            $this->load->view(''.$directory.'/'.$page.'',$data);
        }
    }


    function addinhr($modelfunction,$page)
    {
        $postdata=$_POST;
        $data=$this->hrmodel->$modelfunction($postdata);
        $data['msg']=$data['msg'];
        if($data['res']==1)
        {            
            $this->viewinhrsearch($data['resfunction'],$page,$_SESSION['pagenum']);
            $this->load->view('message',$data);

        }
        else
        {               
            $this->viewinhrsearch($data['resfunction'],$page,$_SESSION['pagenum']);
            $this->load->view('message',$data);
        }

    }


    function deletedata($table,$id,$field)
    {
        $data=array();
        $perm=$this->mastermodel->check_user_permission($_SESSION['current_mode'], $_SESSION['user_id'],2);
        if(!$perm)
            $data['msg']="Permission Denied";
        else
            $data=$this->mastermodel->deletedata($table,$id,$field);
        $arr = array('msg' =>$data['msg'],'res'=>$data['res']);
        echo json_encode($arr);
    }

    function edit_page($id,$table,$field,$page)
    {
        if($_SESSION['current_mode']!="")
        {
            $perm=$this->mastermodel->check_user_permission($_SESSION['current_mode'], $_SESSION['user_id'],1);
        }
        else
        {
            $perm=1;
        }
      
        if(!$perm)
        {
             $data['msg']="Permission Denied";
             $this->load->view('message',$data);
        }
        else
        {
            $data['viewinfo']=$this->mastermodel->get_data_srow($table,$id,$field);
            $data['id']=$id;
            $this->load->view('hr/'.$page,$data);
        }
    }
    function edit_salary_setting($id,$table,$field,$page)
    {
        if($_SESSION['current_mode']!="")
        {
            $perm=$this->mastermodel->check_user_permission($_SESSION['current_mode'], $_SESSION['user_id'],1);
        }
        else
        {
            $perm=1;
        }
      
        if(!$perm)
        {
             $data['msg']="Permission Denied";
             $this->load->view('message',$data);
        }
        else
        {
            $data['viewinfo']=$this->mastermodel->get_data_srow($table,$id,$field);
            $data['allowdeduc']=$this->mastermodel->get_data('employee_salary_allowdeduc',$id,'employee_salary_id');
            $data['medical']=$this->mastermodel->get_data('employee_salary_medical',$id,'employee_salary_id');
            $data['id']=$id;
            $this->load->view('hr/'.$page,$data);
        }
    }
    function single_page($id,$table,$field,$page)
    {
        if($_SESSION['current_mode']!="")
        {
            $perm=$this->mastermodel->check_user_permission($_SESSION['current_mode'], $_SESSION['user_id'],0);
        }
        else
        {
            $perm=1;
        }
      
        if(!$perm)
        {
             $data['msg']="Permission Denied";
             $this->load->view('message',$data);
        }
        else
        {
            $data['viewinfo']=$this->mastermodel->get_data_srow($table,$id,$field);
            $data['id']=$id;
            $this->load->view('hr/'.$page,$data);
        }
    }

    function single_salary_setting($id,$table,$field,$page)
    {
        if($_SESSION['current_mode']!="")
        {
            $perm=$this->mastermodel->check_user_permission($_SESSION['current_mode'], $_SESSION['user_id'],0);
        }
        else
        {
            $perm=1;
        }
      
        if(!$perm)
        {
             $data['msg']="Permission Denied";
             $this->load->view('message',$data);
        }
        else
        {
//            $data['viewinfo']=$this->mastermodel->get_data_srow($table,$id,$field);
            $data['viewinfo']=$this->mastermodel->get_data_srow_joined($table,'employee','employee_id','employee_id',$id,$field);
            $data['allowdeduc']=$this->mastermodel->get_data('employee_salary_allowdeduc',$id,'employee_salary_id');
            $data['medical']=$this->mastermodel->get_data('employee_salary_medical',$id,'employee_salary_id');
            $data['id']=$id;
            $this->load->view('hr/'.$page,$data);
        }
    }

    function load_items($page,$employee_id)
    {
         
        $data['employee_id'] = $employee_id;
        $this->load->view('hr/'.$page,$data);
    }
    
    function load_employee_details($id)
    {
        $employee_id=$this->mastermodel->get_single_field_value('employee','employee_id','employee_id',$id);
        $data['emp']=$this->mastermodel->get_data_srow('employee',$employee_id,'employee_id');
        $data['designation']=$this->mastermodel->get_single_field_value('designation','designation_name','designation_id',$data['emp']->employee_designation_id);
        $data['department']=$this->mastermodel->get_single_field_value('department','department_name','department_id',$data['emp']->employee_department_id);        
        $this->load->view('hr/employee_details',$data);
    }

    function load_all_employee_salary_payment($date)

    {
         $data['viewinfo']=$this->hrmodel->getemployeelist();
         $data['date']=$date;
         $this->load->view('hr/add_multiple_employee_salary_payment',$data);
    }
    function checksalarymonth()
    {
        $data=array();
        $data['info']=$_POST;
        $salary_count = $this->hrmodel->count_data_salary('employee_salary',$data['info']['id'],$data['info']['date']) ;
        if($salary_count == 0)
        {
            echo "salary_not_set";
        }
        else
        {
            $salary_exist= $this->hrmodel->check_salary_month($data['info']['id'],$data['info']['date']);
            if($salary_exist>0)
            echo "salary_exists";
        }
    }
    function load_employees_salary($id,$date)
    {
        $employee_salary_id=$this->hrmodel->get_employee_salary_id($id,$date);
        if($employee_salary_id!="")
        {
            $data['viewinfo']=$this->mastermodel->get_data_srow('employee_salary',$employee_salary_id,'employee_salary_id');
            $data['salary_date']=$date;
            $this->load->view('hr/add_single_employee_salary_payment',$data);
        }
        else
        {
            echo '<script type="text/javascript">alert(\'Employee Salary Not set\');</script>';
        }
    }
    
    function loadsalary($page,$post,$date)
    {
        $data['viewinfo'] = $this->hrmodel->loademployeesalary($post,$date);
        $this->load->view('hr/'.$page.'',$data);
    }
    function loadunpostedsalary($page,$salid)
    { 

        $data['salpay']=   $this->hrmodel->loadunpostedsalary($salid);
        $this->load->view('hr/'.$page.'',$data);
    }
    
    function loadpostedsalary($page,$salid)
    {
        $data['salpay']=   $this->hrmodel->loadpostedsalary($salid);
        $this->load->view('hr/'.$page.'',$data);
    }
    function leave_approval($id,$status)
    {
      echo $this->hrmodel->leave_approval($id,$status);  
    }
}

/* End of file master.php */
/* Location: ./application/controllers/master.php */

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