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/sipapbd_2019_sekolah/application/modules/setting/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /wamp/www/sipapbd_2019_sekolah/application/modules/setting/models/kuappas_model.php
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Kuappas_model extends Base_Model {

  var $mode;
  var $level;
  var $tab;

  function __construct()
  {
    // Call the Model constructor
    parent::__construct();
  }

  function fill_data()
  {
    $this->mode = $this->input->post('mode') ? $this->input->post('mode') : 0;
    $this->level = $this->input->post('level') ? $this->input->post('level') : 0;
  }

  function get_setting()
  {
    /* pengaturan kua ppas ada di tabel konfigurasi */
    $this->db->select('first 1 *')
          ->from($this->app_config_table);
    $result = $this->db->get()->row_array();

    return $result;
  }

  function save_setting()
  {
    $this->db->trans_begin();
    try {
      $data = array(
        'KUA_PPA' => $this->mode,
        'KUA_PPA_221' => $this->level,
      );
      $this->db->set($data)->update($this->app_config_table);
    }
    catch(Exception $e){
      //TODO : log error to file
    }

    if ($this->db->trans_status() === FALSE)
    {
      $this->id = NULL;
      $this->last_error_id = $this->db->_error_number();
      $this->last_error_message = $this->db->_error_message();
      $this->db->trans_rollback();
      return FALSE;
    }

    return TRUE;
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit