daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Aug 7th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version         :   4.0.5.1
  8. * @ Author          :   DeZender
  9. * @ Release on      :   28.07.2018
  10. * @ Official site   :   http://DeZender.Net
  11. *
  12. */
  13.  
  14. echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
  15. defined('BASEPATH') || exit('No direct script access allowed');
  16.  
  17. class Mdl_cbtadmin extends CI_Model
  18. {
  19.     public function __construct()
  20.     {
  21.         parent::__construct();
  22.         $this->db_mdl = $this->load->database('db_mood', true);
  23.     }
  24.  
  25.     public function server_register()
  26.     {
  27.         $idserver = $this->input->post('idserver');
  28.         $idsekolah = $this->input->post('idsekolah');
  29.         if (!$idserver || !$idsekolah) {
  30.             $this->session->set_flashdata('l_msg', 'ID / Nama Sekolah tidak<br/> boleh kosong');
  31.             redirect('register', 'location');
  32.         }
  33.  
  34.         $info = ['npsn' => $idserver, 'no_server' => '1', 'id_kota' => '1', 'srv_pst' => '0', 'ua' => 'admin', 'pa' => md5('aiocbt')];
  35.         $this->db->insert('mdl_zserver_info', $info);
  36.         $reff = ['npsn' => $idserver, 'sekolah' => $idsekolah];
  37.         $this->db->insert('mdl_zref_sekolah', $reff);
  38.         $stat = ['categoryid' => '1000', 'subcatid' => '0', 'kegiatan' => '', 'tokens' => '1', 'tokent' => '900', 'token' => 'AIOCBT', 'tokenstamp' => '1451606400'];
  39.         $this->db->insert('mdl_zstatus_ujian', $stat);
  40.         $this->session->set_flashdata('l_msg', 'Registrasi berhasil<br/><br/>ID + Ruang (xxxxxxxx-01)<br/>dapat digunakan sebagai<br/>login proktor ruangan');
  41.     }
  42.  
  43.     public function server_info()
  44.     {
  45.         $this->db->select('*');
  46.         $this->db->from('mdl_zserver_info');
  47.         return $this->db->get();
  48.     }
  49.  
  50.     public function status_info()
  51.     {
  52.         $this->db->select('*');
  53.         $this->db->from('mdl_zstatus_ujian');
  54.         return $this->db->get();
  55.     }
  56.  
  57.     public function server_id()
  58.     {
  59.         $this->db->select('*');
  60.         $this->db->from('mdl_zref_sekolah');
  61.         $this->db->join('mdl_zserver_info', 'mdl_zserver_info.npsn = mdl_zref_sekolah.npsn');
  62.         return $this->db->get();
  63.     }
  64.  
  65.     public function cek_login()
  66.     {
  67.         $proses = false;
  68.         $id = $this->input->post('idserver');
  69. ...........................................................................
  70. ........................................
  71. ................
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top