MOON
Server: Apache
System: Linux 101-53-147-124.cprapid.com 4.18.0-553.121.1.el8_10.x86_64 #1 SMP Thu Apr 30 09:06:34 EDT 2026 x86_64
User: clientsoftwares (1005)
PHP: 8.2.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/clientsoftwares/public_html/multirest.clientsoftwares.com/application/controllers/content.php
<?php
/*
  ###########################################################
  # PRODUCT NAME: 	iRestora PLUS - Next Gen Restaurant POS
  ###########################################################
  # AUTHER:		Doorsoft
  ###########################################################
  # EMAIL:		info@doorsoft.co
  ###########################################################
  # COPYRIGHTS:		RESERVED BY Door Soft
  ###########################################################
  # WEBSITE:		http://www.doorsoft.co
  ###########################################################
  # This is DeliveryPartner Controller
  ###########################################################
 */

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

class Content extends Cl_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('Common_model');
        $this->load->library('form_validation');
        $this->Common_model->setDefaultTimezone();

        if (!$this->session->has_userdata('user_id')) {
            redirect('Authentication/index');
        }
        //start check access function
        $controller = "270";
        $function = "";
        //end check access function

        $login_session['active_menu_tmp'] = '';
        $this->session->set_userdata($login_session);
    }

     /**
     * food Menu Categories
     * @access public
     * @return void
     * @param no
     */
    public function allcontent() {
        $data = array();
        echo "Hello";
        die();
        $data['contents'] = $this->Common_model->getAllByTable("tbl_contents");
        $data['main_content'] = $this->load->view('master/content/listcontent', $data, TRUE);
        $this->load->view('userHome', $data);
    }

    /**
     * validate check and upload image
     * @access public
     * @return boolean
     */
    public function validate_logo() {
        if ($_FILES['logo']['name'] != "") {
            $config['upload_path'] = './images/';
            $config['allowed_types'] = 'jpg|jpeg|png';
            $config['max_size'] = '6048';
            $config['encrypt_name'] = TRUE;
            $config['detect_mime'] = TRUE;

            $this->load->library('upload', $config);
            if ($this->upload->do_upload("logo")) {
                $upload_info = $this->upload->data();
                $logo = $upload_info['file_name'];
                $config['image_library'] = 'gd2';
                $config['source_image'] = './images/' . $logo;
                $this->load->library('image_lib', $config);
                $this->image_lib->resize();
                $this->session->set_userdata('logo', $logo);
            } else {
                $this->form_validation->set_message('validate_logo', $this->upload->display_errors());
                return FALSE;
            }
        }
    }
}