⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
mydry
/
application
/
models
/
admin
/
Edit File: Model_login.php
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Model_login extends CI_Model { public function get_setting_data() { $query = $this->db->query("SELECT * from tbl_settings WHERE id=1"); return $query->first_row('array'); } function check_email($email) { $where = array( 'email' => $email ); $this->db->select('*'); $this->db->from('tbl_user'); $this->db->where($where); $query = $this->db->get(); return $query->first_row('array'); } function check_password($email,$password) { $where = array( 'email' => $email, 'password' => md5($password) ); $this->db->select('*'); $this->db->from('tbl_user'); $this->db->where($where); $query = $this->db->get(); return $query->first_row('array'); } }
Simpan