first commit

This commit is contained in:
pakerpale
2020-06-10 06:19:03 +09:00
commit cd6b5b7832
6081 changed files with 624389 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
<?
defined('BASEPATH') OR exit('No direct script access allowed');
class m_admin_member extends CI_Model{
// 생성자, 해당 모델이 생성될때 항상 실행되는 초기화작업
function __construct(){
parent::__construct();
$this->load->database();
$this->load->library('session');
}
#---------------------------------------------------------------------------
# PURPOSE : 회원 수정
# CREATE : 2018-02-19
#---------------------------------------------------------------------------
function member_edit_proc($req_data){
# request
$org_user_pwd = $req_data['org_user_pwd'];
$user_id = $this->session->userdata('Adm_Id');
$sql1 = "select * from admin where is_del = 'N' and user_id ='".$user_id."' and user_pwd = MD5('".$org_user_pwd."')";
$res1 = $this->db->query($sql1);
$row1 = $res1->row();
$array = json_decode(json_encode($row1), true);
return $array;
}
#---------------------------------------------------------------------------
# PURPOSE : 비밀번호 수정
# CREATE : 2018-02-19
#---------------------------------------------------------------------------
function member_passwd_update($req_data){
# request
$new_user_pwd = $req_data['new_user_pwd'];
$user_id = $this->session->userdata('Adm_Id');
$sql1 = "update admin
set user_pwd = MD5('".$new_user_pwd."')
where is_del = 'N' and user_id ='".$user_id."'";
$this->db->query($sql1);
}
#---------------------------------------------------------------------------
# PURPOSE : admin where user_id count
# CREATE : 2018-03-14
#---------------------------------------------------------------------------
function admin_where_partner_id_count($req_data){
# request
$user_id = $req_data;
$this->db->where('user_id', $user_id);
$this->db->from('admin');
$row = $this->db->count_all_results();
return $row;
}
}
?>