Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.5.1
- * @ Author : DeZender
- * @ Release on : 28.07.2018
- * @ Official site : http://DeZender.Net
- *
- */
- 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";
- defined('BASEPATH') || exit('No direct script access allowed');
- class Mdl_cbtadmin extends CI_Model
- {
- public function __construct()
- {
- parent::__construct();
- $this->db_mdl = $this->load->database('db_mood', true);
- }
- public function server_register()
- {
- $idserver = $this->input->post('idserver');
- $idsekolah = $this->input->post('idsekolah');
- if (!$idserver || !$idsekolah) {
- $this->session->set_flashdata('l_msg', 'ID / Nama Sekolah tidak<br/> boleh kosong');
- redirect('register', 'location');
- }
- $info = ['npsn' => $idserver, 'no_server' => '1', 'id_kota' => '1', 'srv_pst' => '0', 'ua' => 'admin', 'pa' => md5('aiocbt')];
- $this->db->insert('mdl_zserver_info', $info);
- $reff = ['npsn' => $idserver, 'sekolah' => $idsekolah];
- $this->db->insert('mdl_zref_sekolah', $reff);
- $stat = ['categoryid' => '1000', 'subcatid' => '0', 'kegiatan' => '', 'tokens' => '1', 'tokent' => '900', 'token' => 'AIOCBT', 'tokenstamp' => '1451606400'];
- $this->db->insert('mdl_zstatus_ujian', $stat);
- $this->session->set_flashdata('l_msg', 'Registrasi berhasil<br/><br/>ID + Ruang (xxxxxxxx-01)<br/>dapat digunakan sebagai<br/>login proktor ruangan');
- }
- public function server_info()
- {
- $this->db->select('*');
- $this->db->from('mdl_zserver_info');
- return $this->db->get();
- }
- public function status_info()
- {
- $this->db->select('*');
- $this->db->from('mdl_zstatus_ujian');
- return $this->db->get();
- }
- public function server_id()
- {
- $this->db->select('*');
- $this->db->from('mdl_zref_sekolah');
- $this->db->join('mdl_zserver_info', 'mdl_zserver_info.npsn = mdl_zref_sekolah.npsn');
- return $this->db->get();
- }
- public function cek_login()
- {
- $proses = false;
- $id = $this->input->post('idserver');
- ...........................................................................
- ........................................
- ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement