Commit dcd12eeb by Phạm Văn Đoan

đổi tên class model theo chuẩn ci3x

parent 957cf04a
......@@ -40,7 +40,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| path to your installation.
|
*/
$config['base_url'] = 'http://localhost/vmusicchart-cms/';
if ($_SERVER['SERVER_NAME'] == 'localhost') {
$config['base_url'] = 'http://localhost/vmusicchart-cms/';
} else {
$config['base_url'] = 'http://cms.vmusicchart.vn/';
}
/*
|--------------------------------------------------------------------------
......
......@@ -14,8 +14,8 @@ class Account extends CI_Controller
parent::__construct();
date_default_timezone_set("Asia/Ho_Chi_Minh");
//
$this->load->model('madmin');
$this->load->model('muserlog');
$this->load->model('admin_model');
$this->load->model('userlog_model');
}
public function index()
......@@ -44,7 +44,7 @@ class Account extends CI_Controller
} else {
$username = trim($this->input->post('txtUsername'));
$password = MyHelper::genKeyCode(trim($this->input->post('txtPassword')));
$checkUserAdmin = $this->madmin->getUserAdminLogin($username, $password);
$checkUserAdmin = $this->admin_model->getUserAdminLogin($username, $password);
//MyHelper::echoPreDie($checkUserAdmin);
if ($checkUserAdmin) {
// Thiết lập session
......@@ -59,7 +59,7 @@ class Account extends CI_Controller
);
// Ghi log
$user_log_id = $this->muserlog->add('LOGIN/LOGOUT', $this->input->post('txtUsername'), 'SUCCESS');
$user_log_id = $this->userlog_model->add('LOGIN/LOGOUT', $this->input->post('txtUsername'), 'SUCCESS');
$sessionData['user_log_id'] = $user_log_id;
$sessionData['time_login'] = date('Y-m-d H:i:s');
$this->session->set_userdata($sessionData);
......@@ -68,7 +68,7 @@ class Account extends CI_Controller
redirect(base_url('backend/home/index'));
} else {
// Ghi log
$this->muserlog->add('LOGIN', $this->input->post('txtUsername'), 'FAILED');
$this->userlog_model->add('LOGIN', $this->input->post('txtUsername'), 'FAILED');
// Chuyển trang
$this->session->set_flashdata('loginErrorMsg', 'Đăng nhập không thành công!');
......@@ -93,7 +93,7 @@ class Account extends CI_Controller
// Xóa session
if ($this->session->userdata('username')) {
// Ghi log
$this->muserlog->update($this->session->userdata('user_log_id'), $this->session->userdata('time_login'));
$this->userlog_model->update($this->session->userdata('user_log_id'), $this->session->userdata('time_login'));
// Xóa session
$this->session->sess_destroy();
}
......
......@@ -13,20 +13,20 @@ class AdminSetting extends CI_Controller
//
date_default_timezone_set("Asia/Ho_Chi_Minh");
//
$this->load->model('madmin');
$this->load->model('mactionlog');
$this->load->model('admin_model');
$this->load->model('actionlog_model');
//
}
//==================================================================================================================
public function changePassword($id){
$this->_data['adminById'] = $this->madmin->getById($id);
$this->_data['adminById'] = $this->admin_model->getById($id);
$userAdmin = $this->_data['adminById'];
// Kiểm tra quyền sửa: nếu là dcv_super_admin thì chỉ người đó mới có quyền sửa
if($this->session->userdata('id') != $id){
// Ghi log
$this->mactionlog->add('RESET_PASSWORD', 'Cố ý cập nhật mật khẩu người khác có ID='.$id, 'madmin', 'admin', $id);
$this->actionlog_model->add('RESET_PASSWORD', 'Cố ý cập nhật mật khẩu người khác có ID='.$id, 'AdminModel', 'admin', $id);
//
$this->session->set_flashdata('error', 'Bạn không có quyền cập nhật mật khẩu của user khác.');
redirect(base_url().'usersetting/changePassword/'.$this->session->userdata('id'));
......@@ -77,10 +77,10 @@ class AdminSetting extends CI_Controller
$dataUpdate = array();
if(trim($this->input->post('password')) != ''){
$dataUpdate['password'] = MyHelper::genKeyCode(trim($this->input->post('password')));
$this->madmin->update($id, $dataUpdate);
$this->admin_model->update($id, $dataUpdate);
$this->session->set_flashdata('success', 'Cập nhật thành công mật khẩu.');
// Ghi log
$this->mactionlog->add('RESET_PASSWORD', 'Cập nhật mật khẩu người dùng', 'madmin', 'admin', $id);
$this->actionlog_model->add('RESET_PASSWORD', 'Cập nhật mật khẩu người dùng', 'AdminModel', 'admin', $id);
//
}
redirect(base_url('adminSetting/changePassword/'.$userAdmin[0]['id']));
......@@ -101,14 +101,14 @@ class AdminSetting extends CI_Controller
// Kiểm tra quyền xem: chỉ xem thông tin của mình
if($this->session->userdata('id') != $id){
// Ghi log
$this->mactionlog->add('SHOW_USER_INFO', 'Cố ý xem thông tin cá nhân người khác có ID='.$id, 'madmin', 'admin', $id);
$this->actionlog_model->add('SHOW_USER_INFO', 'Cố ý xem thông tin cá nhân người khác có ID='.$id, 'AdminModel', 'admin', $id);
//
$this->session->set_flashdata('error', 'Bạn không có quyền xem thông tin cá nhân người khác.');
redirect(base_url('adminSetting/userInfo/'.$this->session->userdata('id')));
}
//
$this->_data['adminById'] = $this->madmin->getById($id);
$this->_data['adminById'] = $this->admin_model->getById($id);
//
$this->_data['functionName'] = 'Người dùng hệ thống';
$this->_data['action'] = 'userInfo';
......
......@@ -14,8 +14,8 @@ class CmsArtist extends CI_Controller
parent::__construct();
date_default_timezone_set("Asia/Ho_Chi_Minh");
//
$this->load->model('muser');
$this->load->model('mactionlog');
$this->load->model('user_model');
$this->load->model('actionlog_model');
}
public function listArtist()
......@@ -38,9 +38,9 @@ class CmsArtist extends CI_Controller
$limit = 25;
$offset = ($pageId - 1) * $limit;
$data['offset'] = ($pageId - 1) * $limit;
$totalRecord = $this->muser->cmsCountAll($fByName);
$totalRecord = $this->user_model->cmsCountAll($fByName);
$data['pagination'] = MyHelper::genPaginationLink($totalRecord, $limit, $pageId);
$data['listData'] = $this->muser->cmsGetPagination($limit, $offset, $fByName);
$data['listData'] = $this->user_model->cmsGetPagination($limit, $offset, $fByName);
//
$this->load->view('backend/ajax/cms_artist/list_artist_view', $data);
}
......@@ -111,7 +111,7 @@ class CmsArtist extends CI_Controller
public function showUser($user_id)
{
$this->_data['user'] = $this->muser->getById($user_id);
$this->_data['user'] = $this->user_model->getById($user_id);
//
$this->_data['functionName'] = 'Thông tin Người chơi';
$this->_data['action'] = 'showUser';
......
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 25/12/2015
* Time: 2:22 CH
*/
if (!defined('BASEPATH')) exit('No direct script access allowed');
class CmsRanking extends CI_Controller
{
public function __construct()
{
parent::__construct();
date_default_timezone_set("Asia/Ho_Chi_Minh");
//
$this->load->model('track_model');
$this->load->model('user_model');
$this->load->model('actionlog_model');
}
public function listTrack()
{
$this->_data['functionName'] = 'Track';
$this->_data['action'] = 'listTrack';
$this->_data['titlePage'] = 'Track';
$this->_data['loadPage'] = 'backend/cms_track/list_track_view';
$this->load->view('backend/admin_template_view', $this->_data);
}
public function listTrackAjax()
{
$data = array();
$fByName = $this->input->post('fByName');
$pageId = $this->input->post('pageId');
//
$pageId = ($pageId == 0) ? 1 : $pageId;
//
$limit = 25;
$offset = ($pageId - 1) * $limit;
$data['offset'] = ($pageId - 1) * $limit;
$totalRecord = $this->mtrack->cmsCountAll($fByName);
$data['pagination'] = MyHelper::genPaginationLink($totalRecord, $limit, $pageId);
$data['listData'] = $this->mtrack->cmsGetPagination($limit, $offset, $fByName);
//
$this->load->view('backend/ajax/cms_track/list_track_view', $data);
}
public function editContest($contest_id)
{
$this->_data['contest'] = $contest = $this->mtrack->getById($contest_id);
// Kiểm tra trùng giá trị nếu thay đổi ở form
// Thiết lập validate
$this->form_validation->set_rules(
'id',
'ID',
'trim'
);
$this->form_validation->set_rules(
'date_limit',
'Số ngày diễn ra cuộc thi',
'trim|required|xss_clean'
);
$this->form_validation->set_rules(
'date_from',
'Ngày bắt đầu diễn ra cuộc thi',
'trim|required|xss_clean'
);
$this->form_validation->set_message('required', '<li>Bắt buộc nhập, chọn.</li>');
$this->form_validation->set_message('is_unique', '<li>Đã tồn tại.</li>');
// Xử lý form đăng nhập
if($this->form_validation->run($this) == false) {
$this->_data['date_limit'] = $this->input->post('name');
$this->_data['date_from'] = $this->input->post('description');
//
$this->_data['functionName'] = 'QL Cuộc đua';
$this->_data['action'] = 'editContest';
$this->_data['titlePage'] = 'QL Cuộc đua';
$this->_data['loadPage'] = 'backend/cms_track/edit_track_view';
$this->load->view('backend/admin_template_view', $this->_data);
}else{
$date_limit = intval(trim($this->input->post('date_limit')));
$date_from = trim($this->input->post('date_from'));
if(($date_limit >= 7) && ($date_limit <= 50) && (strtotime($date_from) >= strtotime(date('Y-m-d', time())))){
$dataUpdate = array(
'date_limit' => $date_limit,
'date_from' => $date_from,
'updated_at'=> date("Y-m-d H:i:s")
);
$this->mtrack->update($contest_id, $dataUpdate);
// Cap nhat mang thoi gian ngay tham gia tu so ngay
for($i=1; $i <= $date_limit; $i++){
$data_update_contest_details = array(
'date_play' => date('Y-m-d', strtotime($date_from) + ($i-1)*86400)
);
$this->mcontest_details->update($i, $data_update_contest_details);
}
// Ghi log
$this->mactionlog->add('UPDATED', 'Cập nhật Cuộc đua thành công!', 'Mactionlog', 'action_log', $contest_id);
//
$this->session->set_flashdata('success', 'Cập nhật Cuộc đua thành công');
}else{
$this->session->set_flashdata('error', 'Cập nhật Cuộc đua không thành công');
}
redirect(base_url().'backend/cmsContest/listContest');
}
}
public function showUser($user_id)
{
$this->_data['user'] = $this->muser->getById($user_id);
//
$this->_data['functionName'] = 'Thông tin Người chơi';
$this->_data['action'] = 'showUser';
$this->_data['titlePage'] = 'Thông tin Người chơi';
$this->_data['loadPage'] = 'backend/cms_user/show_user_view';
$this->load->view('backend/admin_template_view', $this->_data);
}
}
\ No newline at end of file
......@@ -13,14 +13,14 @@ class CmsSetting extends CI_Controller
parent::__construct();
date_default_timezone_set("Asia/Ho_Chi_Minh");
//
$this->load->model('mgroup');
$this->load->model('maccesscontroller');
$this->load->model('maccessaction');
$this->load->model('madmin');
$this->load->model('mgroupaccesscontroller');
$this->load->model('madminaccessaction');
$this->load->model('mactionlog');
$this->load->model('muserlog');
$this->load->model('group_model');
$this->load->model('accesscontroller_model');
$this->load->model('accessaction_model');
$this->load->model('admin_model');
$this->load->model('groupaccesscontroller_model');
$this->load->model('adminaccessaction_model');
$this->load->model('actionlog_model');
$this->load->model('userlog_model');
//
}
......@@ -55,7 +55,7 @@ class CmsSetting extends CI_Controller
public function listAccessControllerAjax()
{
$this->load->model('maccesscontroller');
$this->load->model('accesscontroller_model');
//
$data = array();
$filterByName = $this->input->post('filterByName');
......@@ -66,9 +66,9 @@ class CmsSetting extends CI_Controller
$limit = 20;
$offset = ($pageId - 1)*$limit;
$data['offset'] = ($pageId - 1)*$limit;
$totalRecord = $this->maccesscontroller->countAll($filterByName);
$totalRecord = $this->accesscontroller_model->countAll($filterByName);
$data['pagination'] = MyHelper::genPaginationLink($totalRecord, $limit, $pageId);
$data['listData'] = $this->maccesscontroller->getPagination($limit, $offset, $filterByName);
$data['listData'] = $this->accesscontroller_model->getPagination($limit, $offset, $filterByName);
//
$this->load->view('backend/ajax/cms_setting/access_controller_view', $data);
}
......@@ -112,10 +112,10 @@ class CmsSetting extends CI_Controller
'created_at'=> date("Y-m-d H:i:s"),
'updated_at'=> date("Y-m-d H:i:s")
);
$insert_id = $this->maccesscontroller->add($dataInsert);
$insert_id = $this->accesscontroller_model->add($dataInsert);
$this->session->set_flashdata('success', 'Thêm mới thành công controller: '.$this->input->post('name').'.');
// Ghi log
$this->mactionlog->add('ADDED', 'Thêm mới access controller', 'maccesscontroller', 'access_controller', ($insert_id)?$insert_id:'');
$this->actionlog_model->add('ADDED', 'Thêm mới access controller', 'accesscontroller_model', 'access_controller', ($insert_id)?$insert_id:'');
//
redirect(base_url().'backend/cmsSetting/listAccessController');
}
......@@ -123,7 +123,7 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function editAccessController($id){
$this->_data['accessControllerById'] = $this->maccesscontroller->getById($id);
$this->_data['accessControllerById'] = $this->accesscontroller_model->getById($id);
// Kiểm tra trùng giá trị nếu thay đổi ở form
$original_name = $this->_data['accessControllerById'][0]['name'];
......@@ -175,10 +175,10 @@ class CmsSetting extends CI_Controller
'is_active' => ($this->input->post('is_active') == 'on') ? 1 : 0,
'updated_at'=> date("Y-m-d H:i:s")
);
$this->maccesscontroller->update($id, $dataUpdate);
$this->accesscontroller_model->update($id, $dataUpdate);
$this->session->set_flashdata('success', 'Cập nhật thành công controller: '.$this->input->post('name').'.');
// Ghi log
$this->mactionlog->add('UPDATED', 'Cập nhật access controller', 'maccesscontroller', 'access_controller', $id);
$this->actionlog_model->add('UPDATED', 'Cập nhật access controller', 'accesscontroller_model', 'access_controller', $id);
//
redirect(base_url().'backend/cmsSetting/listAccessController');
}
......@@ -186,7 +186,7 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function deleteAccessController($id){
/*if($this->maccesscontroller->delete($id)){
/*if($this->accesscontroller_model->delete($id)){
$this->session->set_flashdata('success', 'Xóa thành công controller: .');
}else{
$this->session->set_flashdata('error', 'Xóa không thành công controller: .');
......@@ -220,7 +220,7 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function listAccessAction(){
/*$this->_data['controllerList'] = $this->maccesscontroller->getListFoxSelectBox('-- Chọn tất cả controller --');
/*$this->_data['controllerList'] = $this->accesscontroller_model->getListFoxSelectBox('-- Chọn tất cả controller --');
$controller_id = $this->input->post('controller_id');
if(!$this->session->userdata('controller_id')){
if($controller_id > 0){
......@@ -264,7 +264,7 @@ class CmsSetting extends CI_Controller
}
public function listAccessActionAjax(){
$this->load->model('maccessaction');
$this->load->model('accessaction_model');
//
$data = array();
$filterByName = $this->input->post('filterByName');
......@@ -316,7 +316,7 @@ class CmsSetting extends CI_Controller
$this->_data['description'] = $this->input->post('description');
$this->_data['is_active'] = $this->input->post('is_active');
//
$this->_data['controllerList'] = $this->maccesscontroller->getListFoxSelectBox('-- Chọn --');
$this->_data['controllerList'] = $this->accesscontroller_model->getListFoxSelectBox('-- Chọn --');
$this->_data['functionName'] = 'Thêm mới xử lý';
$this->_data['action'] = 'addAccessAction';
$this->_data['titlePage'] = 'Thêm mới xử lý';
......@@ -334,7 +334,7 @@ class CmsSetting extends CI_Controller
$insert_id = $this->maccessaction->add($dataInsert);
$this->session->set_flashdata('success', 'Thêm mới thành công action: '.$this->input->post('name').'.');
// Ghi log
$this->mactionlog->add('ADDED', 'Thêm mới access action', 'maccessaction', 'access_action', ($insert_id)?$insert_id:'');
$this->actionlog_model->add('ADDED', 'Thêm mới access action', 'maccessaction', 'access_action', ($insert_id)?$insert_id:'');
//
redirect(base_url().'backend/cmsSetting/listAccessAction');
}
......@@ -343,7 +343,7 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function editAccessAction($id){
$this->_data['accessActionById'] = $this->maccessaction->getById($id);
$this->_data['controllerList'] = $this->maccesscontroller->getListFoxSelectBox('-- Chọn --');
$this->_data['controllerList'] = $this->accesscontroller_model->getListFoxSelectBox('-- Chọn --');
// Kiểm tra trùng giá trị nếu thay đổi ở form
$original_name = $this->_data['accessActionById'][0]['name'];
......@@ -406,7 +406,7 @@ class CmsSetting extends CI_Controller
$this->maccessaction->update($id, $dataUpdate);
$this->session->set_flashdata('success', 'Cập nhật thành công action: '.$this->input->post('name').'.');
// Ghi log
$this->mactionlog->add('UPDATED', 'Cập nhật access action', 'maccessaction', 'access_action', $id);
$this->actionlog_model->add('UPDATED', 'Cập nhật access action', 'maccessaction', 'access_action', $id);
//
redirect(base_url().'backend/cmsSetting/listAccessAction');
}
......@@ -426,7 +426,7 @@ class CmsSetting extends CI_Controller
// Callback kiểm tra chọn kế thừa quyền truy cập
public function check_access_action_controller_id($id){
if($id > 0){
$listController = $this->maccesscontroller->getListFoxSelectBox();
$listController = $this->accesscontroller_model->getListFoxSelectBox();
if(!array_key_exists($id, $listController)){
$this->form_validation->set_message('check_access_action_controller_id', '<li>Chọn lại danh sách.</li>');
return FALSE;
......@@ -475,7 +475,7 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function listGroup(){
// Cấu hình cho phân trang
/*$config['total_rows'] = $this->mgroup->countAll();
/*$config['total_rows'] = $this->group_model->countAll();
$config['base_url'] = base_url()."backend/cmsSetting/listGroup";
$config['per_page'] = 10;
$config['num_links'] = 2;
......@@ -486,7 +486,7 @@ class CmsSetting extends CI_Controller
$config['prev_link'] = '&lt;';
$this->load->library('pagination', $config);
$start = $this->uri->segment(3);
$this->_data['listGroupUsers'] = $this->mgroup->getPagination($config['per_page'], $start);
$this->_data['listGroupUsers'] = $this->group_model->getPagination($config['per_page'], $start);
// Gửi DL sang view
$this->_data['total_rows'] = $config['total_rows'];
......@@ -502,7 +502,7 @@ class CmsSetting extends CI_Controller
public function listGroupAjax()
{
$this->load->model('mgroup');
$this->load->model('group_model');
//
$data = array();
$filterByName = $this->input->post('filterByName');
......@@ -513,16 +513,16 @@ class CmsSetting extends CI_Controller
$limit = 20;
$offset = ($pageId - 1)*$limit;
$data['offset'] = ($pageId - 1)*$limit;
$totalRecord = $this->mgroup->countAll($filterByName);
$totalRecord = $this->group_model->countAll($filterByName);
$data['pagination'] = MyHelper::genPaginationLink($totalRecord, $limit, $pageId);
$data['listData'] = $this->mgroup->getPagination($limit, $offset, $filterByName);
$data['listData'] = $this->group_model->getPagination($limit, $offset, $filterByName);
//
$this->load->view('backend/ajax/cms_setting/group_view', $data);
}
//==================================================================================================================
public function addGroup(){
$this->_data['controllerList'] = $this->maccesscontroller->getList(true);
$this->_data['controllerList'] = $this->accesscontroller_model->getList(true);
// Thiết lập validate
$this->form_validation->set_rules(
......@@ -566,9 +566,9 @@ class CmsSetting extends CI_Controller
'created_at'=> date("Y-m-d H:i:s"),
'updated_at'=> date("Y-m-d H:i:s")
);
$id_insert = $this->mgroup->add($dataInsert);
$id_insert = $this->group_model->add($dataInsert);
// Ghi log
$this->mactionlog->add('ADDED', 'Thêm mới nhóm người dùng', 'mgroup', 'group', $id_insert);
$this->actionlog_model->add('ADDED', 'Thêm mới nhóm người dùng', 'group_model', 'group', $id_insert);
//
// Insert quyền truy cập vào DB
......@@ -583,7 +583,7 @@ class CmsSetting extends CI_Controller
}
$this->mgroupaccesscontroller->addBatch($dataGroupController);
// Ghi log
$this->mactionlog->add('ADDED', 'Gán quyền truy cập cho nhóm', 'mgroupaccesscontroller', 'group_access_controller', $id_insert);
$this->actionlog_model->add('ADDED', 'Gán quyền truy cập cho nhóm', 'mgroupaccesscontroller', 'group_access_controller', $id_insert);
//
}
......@@ -596,8 +596,8 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function editGroup($id){
$this->_data['group_access_controller'] = $this->mgroupaccesscontroller->getByGroupId($id);
$this->_data['groupById'] = $this->mgroup->getById($id);
$this->_data['controllerList'] = $this->maccesscontroller->getList(true);
$this->_data['groupById'] = $this->group_model->getById($id);
$this->_data['controllerList'] = $this->accesscontroller_model->getList(true);
// Kiểm tra trùng giá trị nếu thay đổi ở form
$original_name = $this->_data['groupById'][0]['name'];
......@@ -659,9 +659,9 @@ class CmsSetting extends CI_Controller
'updated_at'=> date("Y-m-d H:i:s")
);
$this->mgroup->update($id, $dataUpdate);
$this->group_model->update($id, $dataUpdate);
// Ghi log
$this->mactionlog->add('UPDATED', 'Cập nhật nhóm người dùng', 'MGroup', 'group', $id);
$this->actionlog_model->add('UPDATED', 'Cập nhật nhóm người dùng', 'MGroup', 'group', $id);
//
// Insert quyền truy cập vào DB
......@@ -688,7 +688,7 @@ class CmsSetting extends CI_Controller
}
}
// Ghi log
$this->mactionlog->add('UPDATED', 'Cập nhật gán quyền truy cập cho nhóm', 'mgroupaccesscontroller', 'group_access_controller', $id);
$this->actionlog_model->add('UPDATED', 'Cập nhật gán quyền truy cập cho nhóm', 'mgroupaccesscontroller', 'group_access_controller', $id);
//
}else{
if(count($group_access_controller) > 0 && !is_array($group_access_controller_submit)){
......@@ -696,7 +696,7 @@ class CmsSetting extends CI_Controller
$this->mgroupaccesscontroller->delete($id, $val);
}
// Ghi log
$this->mactionlog->add('UPDATED', 'Cập nhật gán quyền truy cập cho nhóm', 'mgroupaccesscontroller', 'group_access_controller', $id);
$this->actionlog_model->add('UPDATED', 'Cập nhật gán quyền truy cập cho nhóm', 'mgroupaccesscontroller', 'group_access_controller', $id);
//
}
}
......@@ -735,7 +735,7 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function listUserAdmin(){
// Cấu hình cho phân trang
$config['total_rows'] = $this->madmin->countAll();
$config['total_rows'] = $this->admin_model->countAll();
$config['base_url'] = base_url()."backend/cmsSetting/listUserAdmin";
$config['per_page'] = 8;
$config['num_links'] = 2;
......@@ -746,7 +746,7 @@ class CmsSetting extends CI_Controller
$config['prev_link'] = '&lt;';
$this->load->library('pagination', $config);
$start = $this->uri->segment(3);
$this->_data['listUserAdmins'] = $this->madmin->getPagination($config['per_page'], $start);
$this->_data['listUserAdmins'] = $this->admin_model->getPagination($config['per_page'], $start);
// Gửi DL sang view
$this->_data['total_rows'] = $config['total_rows'];
......@@ -761,7 +761,7 @@ class CmsSetting extends CI_Controller
public function listUserAdminAjax()
{
$this->load->model('madmin');
$this->load->model('admin_model');
//
$data = array();
$filterByName = $this->input->post('filterByName');
......@@ -772,16 +772,16 @@ class CmsSetting extends CI_Controller
$limit = 20;
$offset = ($pageId - 1)*$limit;
$data['offset'] = ($pageId - 1)*$limit;
$totalRecord = $this->madmin->countAll($filterByName);
$totalRecord = $this->admin_model->countAll($filterByName);
$data['pagination'] = MyHelper::genPaginationLink($totalRecord, $limit, $pageId);
$data['listData'] = $this->madmin->getPagination($limit, $offset, $filterByName);
$data['listData'] = $this->admin_model->getPagination($limit, $offset, $filterByName);
//
$this->load->view('backend/ajax/cms_setting/admin_view', $data);
}
//==================================================================================================================
public function addUserAdmin(){
$this->_data['groupList'] = $this->mgroup->getListFoxSelectBox('-- Chọn --');
$this->_data['groupList'] = $this->group_model->getListFoxSelectBox('-- Chọn --');
// Thiết lập validate
$this->form_validation->set_rules("group_id", "Tên nhóm",
......@@ -849,10 +849,10 @@ class CmsSetting extends CI_Controller
'updated_at'=> date("Y-m-d H:i:s")
);
$insert_id = $this->madmin->add($dataInsert);
$insert_id = $this->admin_model->add($dataInsert);
$this->session->set_flashdata('success', 'Thêm mới thành công nhóm: '.$this->input->post('name').'.');
// Ghi log
$this->mactionlog->add('ADDED', 'Thêm mới người dùng hệ thống', 'madmin', 'admin', ($insert_id)?$insert_id:'');
$this->actionlog_model->add('ADDED', 'Thêm mới người dùng hệ thống', 'AdminModel', 'admin', ($insert_id)?$insert_id:'');
//
redirect(base_url().'backend/cmsSetting/listUserAdmin');
}
......@@ -861,14 +861,14 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function editUserAdmin($id){
$this->_data['groupList'] = $this->mgroup->getListFoxSelectBox('-- Chọn --');
$adminById = $this->_data['adminById'] = $this->madmin->getById($id);
//$this->_data['sidList'] = $this->madmin->getListSID(false);
$this->_data['groupList'] = $this->group_model->getListFoxSelectBox('-- Chọn --');
$adminById = $this->_data['adminById'] = $this->admin_model->getById($id);
//$this->_data['sidList'] = $this->admin_model->getListSID(false);
// Kiểm tra quyền sửa: nếu là dcv_super_admin thì chỉ người đó mới có quyền sửa
if($adminById[0]['groupName'] == 'dcv_super_admin' && $this->session->userdata('id') != $id){
// Ghi log
$this->mactionlog->add('UPDATED', 'Cố ý cập nhật thông tin người khac', 'madmin', 'admin', $id);
$this->actionlog_model->add('UPDATED', 'Cố ý cập nhật thông tin người khac', 'AdminModel', 'admin', $id);
//
$this->session->set_flashdata('error', 'Bạn không có quyền cập nhật thông tin của Super Admin khác.');
redirect(base_url().'backend/cmsSetting/listUserAdmin');
......@@ -959,10 +959,10 @@ class CmsSetting extends CI_Controller
$dataUpdate['password'] = MyHelper::genKeyCode(trim($this->input->post('password')));
}
$this->madmin->update($id, $dataUpdate);
$this->admin_model->update($id, $dataUpdate);
$this->session->set_flashdata('success', 'Cập nhật thành công username: '.$this->input->post('username').'.');
// Ghi log
$this->mactionlog->add('UPDATED', 'Cập nhật người dùng hệ thống', 'madmin', 'admin', $id);
$this->actionlog_model->add('UPDATED', 'Cập nhật người dùng hệ thống', 'AdminModel', 'admin', $id);
//
redirect(base_url().'backend/cmsSetting/listUserAdmin');
}
......@@ -972,9 +972,9 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function assignPermissionUserAdmin($id, $group_id){
// Lấy DS Controller được phân quyền theo Group
$this->_data['controllerList'] = $this->maccesscontroller->getListByGroupId($group_id);
$this->_data['controllerList'] = $this->accesscontroller_model->getListByGroupId($group_id);
// Lấy thông tin User theo id
$this->_data['userAdminById'] = $this->madmin->getById($id);
$this->_data['userAdminById'] = $this->admin_model->getById($id);
// Lấy DS Action theo Controller được phân quyền dựa vào Group
$this->_data['actionList'] = $this->maccessaction->getListByGroupId($group_id);
// Lấy DS Action đã được phân quyền
......@@ -1027,7 +1027,7 @@ class CmsSetting extends CI_Controller
$this->session->set_flashdata('success', 'Cập nhật thành công gán quyền truy cập action cho user.');
// Ghi log
$this->mactionlog->add('ASIGNED_PERMISSION_USER', 'Gán quyền truy cập cho người dùng', 'madminaccessaction', 'admin_access_action', $id);
$this->actionlog_model->add('ASIGNED_PERMISSION_USER', 'Gán quyền truy cập cho người dùng', 'madminaccessaction', 'admin_access_action', $id);
//
redirect(base_url().'backend/cmsSetting/assignPermissionUserAdmin/'.$id.'/'.$group_id);
}
......@@ -1035,7 +1035,7 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function changeStatus($user_id, $user_status){
$this->_data['adminById'] = $this->madmin->getById($user_id);
$this->_data['adminById'] = $this->admin_model->getById($user_id);
if($this->_data['adminById']){
// Kiểm tra quyền sửa: nếu là dcv_super_admin thì chỉ người đó mới có quyền sửa
if($this->session->userdata('groupName') == 'dcv_super_admin' && $this->session->userdata('is_super') == 1){
......@@ -1043,14 +1043,14 @@ class CmsSetting extends CI_Controller
// Update vào DB
$dataUpdate = array();
$dataUpdate['is_active'] = $status;
$this->madmin->update($user_id, $dataUpdate);
$this->admin_model->update($user_id, $dataUpdate);
$this->session->set_flashdata('success', 'Cập nhật thành công trạng thái kích hoạt.');
// Ghi log
$this->mactionlog->add('CHANGED_ACTIVE', 'Cập nhật trạng thái người dùng', 'madmin', 'admin', $user_id);
$this->actionlog_model->add('CHANGED_ACTIVE', 'Cập nhật trạng thái người dùng', 'AdminModel', 'admin', $user_id);
redirect(base_url().'backend/cmsSetting/listUserAdmin');
}else{
// Ghi log
$this->mactionlog->add('CHANGED_ACTIVE', 'Cố ý cập nhật trạng thái người khác có ID='.$user_id, 'madmin', 'admin', $user_id);
$this->actionlog_model->add('CHANGED_ACTIVE', 'Cố ý cập nhật trạng thái người khác có ID='.$user_id, 'AdminModel', 'admin', $user_id);
//
$this->session->set_flashdata('error', 'Bạn không có quyền cập nhật trạng thái của user khác.');
redirect(base_url().'backend/cmsSetting/listUserAdmin');
......@@ -1064,7 +1064,7 @@ class CmsSetting extends CI_Controller
// Callback kiểm tra chọn kế thừa quyền truy cập
public function check_admin_group_id($id){
if($id > 0){
$listGroup = $this->mgroup->getListFoxSelectBox();
$listGroup = $this->group_model->getListFoxSelectBox();
if(!array_key_exists($id, $listGroup)){
$this->form_validation->set_message('check_admin_group_id', '<li>Chọn lại danh sách.</li>');
return FALSE;
......@@ -1120,7 +1120,7 @@ class CmsSetting extends CI_Controller
return FALSE;
}else{
// Kiểm tra tồn tại
$sidList = $this->madmin->getListSID(false);
$sidList = $this->admin_model->getListSID(false);
$temp2 = array();
foreach($arr as $val){
if(in_array($val, $sidList)){$temp2[] = $val;}
......@@ -1183,7 +1183,7 @@ class CmsSetting extends CI_Controller
$arr_new = array_diff($arr_sid_submit, $arr_sid_db);
}
// Kiểm tra tồn tại
$sidList = $this->madmin->getListSID(false);
$sidList = $this->admin_model->getListSID(false);
$temp3 = array();
foreach($arr_new as $val){
if(in_array($val, $sidList)){$temp3[] = $val;}
......@@ -1203,7 +1203,7 @@ class CmsSetting extends CI_Controller
}
public function check_admin_sid_sms($sid_sms_submit){
$sid_sms_db = $this->madmin->getListSIdBySMS(false);
$sid_sms_db = $this->admin_model->getListSIdBySMS(false);
if(is_array($sid_sms_db) && count($sid_sms_db) > 0){
if(is_array($sid_sms_submit) && count($sid_sms_submit) > 0){
$sid_sms_existed = array();
......@@ -1237,7 +1237,7 @@ class CmsSetting extends CI_Controller
public function logUserAjax()
{
$this->load->model('muserlog');
$this->load->model('userlog_model');
//
$data = array();
$filterByAccount = $this->input->post('filterByAccount');
......@@ -1248,16 +1248,16 @@ class CmsSetting extends CI_Controller
$limit = 20;
$offset = ($pageId - 1)*$limit;
$data['offset'] = ($pageId - 1)*$limit;
$totalRecord = $this->muserlog->countAll($filterByAccount);
$totalRecord = $this->userlog_model->countAll($filterByAccount);
$data['pagination'] = MyHelper::genPaginationLink($totalRecord, $limit, $pageId);
$data['listData'] = $this->muserlog->getPagination($limit, $offset, $filterByAccount);
$data['listData'] = $this->userlog_model->getPagination($limit, $offset, $filterByAccount);
//
$this->load->view('backend/ajax/cms_setting/log_user_view', $data);
}
//==================================================================================================================
public function deleteLogUser($id){
if(!$this->muserlog->delete($id)){
if(!$this->userlog_model->delete($id)){
$this->session->set_flashdata('success', 'Xóa thành công log đăng nhập, xuất có ID: '.$id);
}else{
$this->session->set_flashdata('error', 'Xóa không thành công log đăng nhập, xuất có ID: '.$id);
......@@ -1276,7 +1276,7 @@ class CmsSetting extends CI_Controller
public function logActionAjax()
{
$this->load->model('mactionlog');
$this->load->model('actionlog_model');
//
$data = array();
$filterByAccount = $this->input->post('filterByAccount');
......@@ -1287,16 +1287,16 @@ class CmsSetting extends CI_Controller
$limit = 20;
$offset = ($pageId - 1)*$limit;
$data['offset'] = ($pageId - 1)*$limit;
$totalRecord = $this->mactionlog->countAll($filterByAccount);
$totalRecord = $this->actionlog_model->countAll($filterByAccount);
$data['pagination'] = MyHelper::genPaginationLink($totalRecord, $limit, $pageId);
$data['listData'] = $this->mactionlog->getPagination($limit, $offset, $filterByAccount);
$data['listData'] = $this->actionlog_model->getPagination($limit, $offset, $filterByAccount);
//
$this->load->view('backend/ajax/cms_setting/log_action_view', $data);
}
//==================================================================================================================
public function deleteLogAction($id){
if(!$this->mactionlog->delete($id)){
if(!$this->actionlog_model->delete($id)){
$this->session->set_flashdata('success', 'Xóa thành công log hành động có ID: '.$id);
}else{
$this->session->set_flashdata('error', 'Xóa không thành công log hành động có ID: '.$id);
......@@ -1307,7 +1307,7 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function exportLogUser2Excel(){
// Ghi log
$this->mactionlog->add('EXPORTED', 'Xuất Log User', '', '', '');
$this->actionlog_model->add('EXPORTED', 'Xuất Log User', '', '', '');
//
redirect(base_url().'backend/cmsSetting/logcms/logUser');
/*try{
......@@ -1478,7 +1478,7 @@ class CmsSetting extends CI_Controller
public function exportLogAction2Excel(){
$sheetPwd = MyHelper::genExportPassword();
// Ghi log
$this->mactionlog->add('EXPORTED', 'Xuất Log Action', '', $sheetPwd, '');
$this->actionlog_model->add('EXPORTED', 'Xuất Log Action', '', $sheetPwd, '');
//
redirect(base_url().'backend/cmsSetting/logcms/logAction');
/*try{
......@@ -1650,8 +1650,8 @@ class CmsSetting extends CI_Controller
//==================================================================================================================
public function processSendEmail(){
$this->load->model('Msubrequest');
$this->load->model('Mmonfree');
$this->load->model('subrequest_model');
$this->load->model('monfree_model');
// Tính toán doanh thu tổng cộng -------------------------------------------------------------------------------
$content = "<p>Dear all, </p>";
$content .= "<p>Chúc ngày mới đạt nhiều doanh số!</p>";
......
......@@ -14,9 +14,9 @@ class CmsTrack extends CI_Controller
parent::__construct();
date_default_timezone_set("Asia/Ho_Chi_Minh");
//
$this->load->model('mtrack');
$this->load->model('muser');
$this->load->model('mactionlog');
$this->load->model('track_model');
$this->load->model('user_model');
$this->load->model('actionlog_model');
}
public function listTrack()
......@@ -39,16 +39,16 @@ class CmsTrack extends CI_Controller
$limit = 25;
$offset = ($pageId - 1) * $limit;
$data['offset'] = ($pageId - 1) * $limit;
$totalRecord = $this->mtrack->cmsCountAll($fByName);
$totalRecord = $this->track_model->cmsCountAll($fByName);
$data['pagination'] = MyHelper::genPaginationLink($totalRecord, $limit, $pageId);
$data['listData'] = $this->mtrack->cmsGetPagination($limit, $offset, $fByName);
$data['listData'] = $this->track_model->cmsGetPagination($limit, $offset, $fByName);
//
$this->load->view('backend/ajax/cms_track/list_track_view', $data);
}
public function editContest($contest_id)
{
$this->_data['contest'] = $contest = $this->mtrack->getById($contest_id);
$this->_data['contest'] = $contest = $this->track_model->getById($contest_id);
// Kiểm tra trùng giá trị nếu thay đổi ở form
// Thiết lập validate
......@@ -91,7 +91,7 @@ class CmsTrack extends CI_Controller
'date_from' => $date_from,
'updated_at'=> date("Y-m-d H:i:s")
);
$this->mtrack->update($contest_id, $dataUpdate);
$this->track_model->update($contest_id, $dataUpdate);
// Cap nhat mang thoi gian ngay tham gia tu so ngay
for($i=1; $i <= $date_limit; $i++){
$data_update_contest_details = array(
......
......@@ -14,7 +14,7 @@ class CmsUser extends CI_Controller
parent::__construct();
date_default_timezone_set("Asia/Ho_Chi_Minh");
//
$this->load->model('muser');
$this->load->model('muser_model');
}
public function listUser()
......
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Maccessaction extends CI_Model {
class Accessaction_model extends CI_Model {
protected $_table='access_action';
public function __construct(){
......
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Maccesscontroller extends CI_Model {
class Accesscontroller_model extends CI_Model {
protected $_table='access_controller';
public function __construct(){
......
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Mactionlog extends CI_Model {
class Actionlog_model extends CI_Model {
protected $_table='action_log';
public function __construct(){
......
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Madmin extends CI_Model {
class Admin_model extends CI_Model {
protected $_table='admin';
public function __construct(){
......
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Madminaccessaction extends CI_Model {
class Adminaccessaction_model extends CI_Model {
protected $_table='admin_access_action';
public function __construct(){
......@@ -60,7 +60,7 @@ class Madminaccessaction extends CI_Model {
}
public function getListPermissionForMenu(){
$this->load->model('madmin');
$this->load->model('AdminModel');
$admin_id = $this->session->userdata('id');
$this->db->select('aa.name');
......@@ -78,7 +78,7 @@ class Madminaccessaction extends CI_Model {
}
public function getCountActionInControllerAssigned(){
$this->load->model('madmin');
$this->load->model('AdminModel');
$admin_id = $this->session->userdata('id');
$adminInfo = $this->madmin->getById($admin_id);
......
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Mgroup extends CI_Model {
class Group_model extends CI_Model {
protected $_table='group';
public function __construct(){
......
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Mgroupaccesscontroller extends CI_Model {
class Groupaccesscontroller_model extends CI_Model {
protected $_table='group_access_controller';
public function __construct(){
......@@ -40,7 +40,7 @@ class Mgroupaccesscontroller extends CI_Model {
* @return array
*/
public function getControllerNameAssigned(){
$this->load->model('madmin');
$this->load->model('AdminModel');
$admin_id = $this->session->userdata('id');
$adminInfo = $this->madmin->getById($admin_id);
......@@ -64,7 +64,7 @@ class Mgroupaccesscontroller extends CI_Model {
}
public function getCountActionInControllerAssigned(){
$this->load->model('madmin');
$this->load->model('AdminModel');
$admin_id = $this->session->userdata('id');
$adminInfo = $this->madmin->getById($admin_id);
......
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Mtrack extends CI_Model
class Track_model extends CI_Model
{
protected $_table = 'tracks';
......
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Muser extends CI_Model
class User_model extends CI_Model
{
protected $_table = 'users';
......
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MUserLog extends CI_Model {
class Userlog_model extends CI_Model {
protected $_table='user_log';
public function __construct(){
......
......@@ -144,6 +144,12 @@ $action = $CI->router->fetch_method();
<ul class="submenu">
<li class="<?php if($action && (in_array($action, array('listGame','addGame','editGame')))) echo 'active'?>">
<a href="<?php echo base_url('backend/cmsStatistic/listGame'); ?>">
<i class="menu-icon fa fa-caret-right"></i>BXH Ngày
</a>
<b class="arrow"></b>
</li>
<li class="<?php if($action && (in_array($action, array('listGame','addGame','editGame')))) echo 'active'?>">
<a href="<?php echo base_url('backend/cmsStatistic/listGame'); ?>">
<i class="menu-icon fa fa-caret-right"></i>BXH Tuần
</a>
<b class="arrow"></b>
......
/*
SQLyog Ultimate v11.11 (64 bit)
MySQL - 5.5.5-10.1.21-MariaDB : Database - vmusicchart
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`vmusicchart` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `vmusicchart`;
/*Table structure for table `access_action` */
DROP TABLE IF EXISTS `access_action`;
CREATE TABLE `access_action` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`controller_id` int(11) NOT NULL,
`name` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Ten action',
`description` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0=off, 1=on',
`is_default` int(1) DEFAULT '0' COMMENT '0:Không đặt mặc định, 1:Mặc định tạo ra khi thêm user',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_access_action_access_controller1_idx` (`controller_id`),
CONSTRAINT `fk_access_action_access_controller1` FOREIGN KEY (`controller_id`) REFERENCES `access_controller` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `access_action` */
LOCK TABLES `access_action` WRITE;
UNLOCK TABLES;
/*Table structure for table `access_controller` */
DROP TABLE IF EXISTS `access_controller`;
CREATE TABLE `access_controller` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Ten controller',
`description` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0=off, 1=on',
`is_default` int(1) DEFAULT '0' COMMENT '0:Không tạo mặc định, 1:Tạo mặc định khi thêm mới user',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `access_controller` */
LOCK TABLES `access_controller` WRITE;
UNLOCK TABLES;
/*Table structure for table `action_log` */
DROP TABLE IF EXISTS `action_log`;
CREATE TABLE `action_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`actor_id` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
`actor_name` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
`action` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'ADDED, UPDATED, DELETED, WARNING_DEV, SUPPEND_DEV, SUPPEND_APP, RESET_PASSWORD',
`description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`model` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`table` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`record_id` bigint(20) DEFAULT NULL,
`ip_address` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `action_log` */
LOCK TABLES `action_log` WRITE;
insert into `action_log`(`id`,`actor_id`,`actor_name`,`action`,`description`,`model`,`table`,`record_id`,`ip_address`,`created_at`,`updated_at`) values (1,'1','doanpv','CHANGED_ACTIVE','Cố ý cập nhật trạng thái người khác có ID=1','madmin','admin',1,'::1','2020-03-04 11:51:07','2020-03-04 11:51:07');
UNLOCK TABLES;
/*Table structure for table `admin` */
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL COMMENT 'Nhóm quyền',
`fullname` varchar(255) DEFAULT NULL COMMENT 'Họ và tên',
`username` varchar(255) DEFAULT NULL COMMENT 'Tên đăng nhập',
`salt` varchar(255) DEFAULT NULL COMMENT 'Chuỗi bảo mật',
`password` varchar(255) DEFAULT NULL COMMENT 'Mật khẩu mã hóa',
`email` varchar(255) DEFAULT NULL COMMENT 'Email',
`is_active` tinyint(1) DEFAULT '0' COMMENT '0: Ngừng hoạt động, 1: Hoạt động',
`is_super` tinyint(1) DEFAULT '0' COMMENT '0: User thường, 1: Super User',
`created_at` datetime DEFAULT NULL COMMENT 'Ngày tạo',
`updated_at` datetime DEFAULT NULL COMMENT 'Ngày cập nhật',
PRIMARY KEY (`id`),
KEY `fk_admin_group1_idx` (`group_id`),
CONSTRAINT `fk_admin_group1` FOREIGN KEY (`group_id`) REFERENCES `group` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*Data for the table `admin` */
LOCK TABLES `admin` WRITE;
insert into `admin`(`id`,`group_id`,`fullname`,`username`,`salt`,`password`,`email`,`is_active`,`is_super`,`created_at`,`updated_at`) values (1,2,'Pham Van Doan','doanpv',NULL,'5ef922d5c159b476638747a36b0d5e382998b2cb89ce3783783ed4f01ce39cfd','doanpv@dcv.vn',1,1,'2020-03-04 11:47:25','2020-03-04 11:47:27'),(2,1,'Ha Thi Hong Ngoc','ngochth',NULL,'88c21c261821fdab37dd64705871dd8a38a4a9e4e7b9def956ae55ddcbee2414','ngochth@dcv.vn',1,1,'2020-03-04 11:47:25','2020-03-04 11:47:27');
UNLOCK TABLES;
/*Table structure for table `admin_access_action` */
DROP TABLE IF EXISTS `admin_access_action`;
CREATE TABLE `admin_access_action` (
`admin_id` int(11) NOT NULL,
`access_action_id` int(11) NOT NULL,
PRIMARY KEY (`admin_id`,`access_action_id`),
KEY `fk_admin_has_access_action_admin1_idx` (`admin_id`),
KEY `fk_admin_has_access_action_access_action1_idx` (`access_action_id`),
CONSTRAINT `fk_admin_has_access_action_access_action1` FOREIGN KEY (`access_action_id`) REFERENCES `access_action` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_admin_has_access_action_admin1` FOREIGN KEY (`admin_id`) REFERENCES `admin` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `admin_access_action` */
LOCK TABLES `admin_access_action` WRITE;
UNLOCK TABLES;
/*Table structure for table `group` */
DROP TABLE IF EXISTS `group`;
CREATE TABLE `group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Ten nhom',
`description` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Mo ta',
`is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'Kich hoat',
`is_super_group` tinyint(1) DEFAULT '0' COMMENT 'super group',
`group_type` int(1) DEFAULT '0' COMMENT 'Loại nhóm: 0:Nhóm thông thường, 1:Nhóm đối tác truyền thông, 2:Nhóm Super Admin',
`created_at` datetime DEFAULT NULL COMMENT 'Ngay tao',
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `group` */
LOCK TABLES `group` WRITE;
insert into `group`(`id`,`name`,`description`,`is_active`,`is_super_group`,`group_type`,`created_at`,`updated_at`) values (1,'Admin','Admin',1,0,0,'2017-02-13 17:40:36','2017-02-18 18:08:48'),(2,'SuperAdmin','SuperAdmin',1,0,0,'2017-02-13 17:41:41','2017-02-17 14:08:03'),(3,'Client','Client',1,0,0,'2017-02-17 14:12:24','2017-02-17 14:12:43');
UNLOCK TABLES;
/*Table structure for table `group_access_controller` */
DROP TABLE IF EXISTS `group_access_controller`;
CREATE TABLE `group_access_controller` (
`group_id` int(11) NOT NULL,
`access_controller_id` int(11) NOT NULL,
PRIMARY KEY (`group_id`,`access_controller_id`),
KEY `fk_group_has_access_controller_access_controller1_idx` (`access_controller_id`),
KEY `fk_group_has_access_controller_group1_idx` (`group_id`),
CONSTRAINT `fk_group_has_access_controller_access_controller1` FOREIGN KEY (`access_controller_id`) REFERENCES `access_controller` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_group_has_access_controller_group1` FOREIGN KEY (`group_id`) REFERENCES `group` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `group_access_controller` */
LOCK TABLES `group_access_controller` WRITE;
UNLOCK TABLES;
/*Table structure for table `user_log` */
DROP TABLE IF EXISTS `user_log`;
CREATE TABLE `user_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'LOGIN, LOGOUT',
`time_login` datetime DEFAULT NULL,
`account_input` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`ip_address` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_agent` text COLLATE utf8_unicode_ci,
`type` varchar(45) COLLATE utf8_unicode_ci DEFAULT 'BE' COMMENT 'BE, FE',
`result` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'SUCCESS, FAILED',
`time_logout` datetime DEFAULT NULL,
`duration` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `user_log` */
LOCK TABLES `user_log` WRITE;
insert into `user_log`(`id`,`action`,`time_login`,`account_input`,`ip_address`,`user_agent`,`type`,`result`,`time_logout`,`duration`) values (1,'LOGIN/LOGOUT','2020-03-04 11:47:47','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-04 11:48:51',64),(2,'LOGIN/LOGOUT','2020-03-04 11:49:02','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-04 13:33:53',6291),(3,'LOGIN/LOGOUT','2020-03-04 13:34:12','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(4,'LOGIN/LOGOUT','2020-03-04 13:53:17','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(5,'LOGIN/LOGOUT','2020-03-04 13:53:27','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(6,'LOGIN','2020-03-04 13:53:29','Pham','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','FAILED',NULL,NULL),(7,'LOGIN/LOGOUT','2020-03-04 13:53:41','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(8,'LOGIN/LOGOUT','2020-03-04 13:54:20','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(9,'LOGIN/LOGOUT','2020-03-04 13:56:00','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(10,'LOGIN/LOGOUT','2020-03-04 13:57:39','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(11,'LOGIN/LOGOUT','2020-03-04 13:59:50','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-04 14:00:20',30),(12,'LOGIN/LOGOUT','2020-03-04 14:00:39','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(13,'LOGIN/LOGOUT','2020-03-04 14:04:25','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-04 17:53:15',13730),(14,'LOGIN/LOGOUT','2020-03-05 09:19:28','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 10:16:56',3448),(15,'LOGIN/LOGOUT','2020-03-05 10:15:50','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0','BE','SUCCESS',NULL,NULL),(16,'LOGIN/LOGOUT','2020-03-05 10:16:12','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0','BE','SUCCESS',NULL,NULL),(17,'LOGIN/LOGOUT','2020-03-05 10:17:02','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(18,'LOGIN/LOGOUT','2020-03-05 10:19:42','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 10:19:48',6),(19,'LOGIN/LOGOUT','2020-03-05 10:22:34','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(20,'LOGIN/LOGOUT','2020-03-05 10:22:55','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(21,'LOGIN/LOGOUT','2020-03-05 10:24:29','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(22,'LOGIN/LOGOUT','2020-03-05 10:24:38','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(23,'LOGIN/LOGOUT','2020-03-05 10:26:58','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(24,'LOGIN/LOGOUT','2020-03-05 10:29:08','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 10:32:22',193),(25,'LOGIN/LOGOUT','2020-03-05 10:29:17','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0','BE','SUCCESS','2020-03-05 10:30:21',64),(26,'LOGIN/LOGOUT','2020-03-05 10:30:28','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0','BE','SUCCESS','2020-03-05 10:30:36',8),(27,'LOGIN/LOGOUT','2020-03-05 10:31:55','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0','BE','SUCCESS',NULL,NULL),(28,'LOGIN/LOGOUT','2020-03-05 10:32:10','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0','BE','SUCCESS',NULL,NULL),(29,'LOGIN/LOGOUT','2020-03-05 10:33:13','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(30,'LOGIN/LOGOUT','2020-03-05 10:34:32','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 10:34:38',6),(31,'LOGIN/LOGOUT','2020-03-05 10:35:23','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(32,'LOGIN/LOGOUT','2020-03-05 10:35:30','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(33,'LOGIN/LOGOUT','2020-03-05 10:36:23','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(34,'LOGIN/LOGOUT','2020-03-05 10:39:23','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(35,'LOGIN/LOGOUT','2020-03-05 10:39:44','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(36,'LOGIN/LOGOUT','2020-03-05 10:41:45','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(37,'LOGIN/LOGOUT','2020-03-05 10:42:18','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(38,'LOGIN/LOGOUT','2020-03-05 10:42:40','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(39,'LOGIN/LOGOUT','2020-03-05 10:44:00','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(40,'LOGIN/LOGOUT','2020-03-05 10:45:34','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(41,'LOGIN/LOGOUT','2020-03-05 10:46:15','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 10:51:19',304),(42,'LOGIN/LOGOUT','2020-03-05 10:51:27','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(43,'LOGIN/LOGOUT','2020-03-05 10:51:32','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(44,'LOGIN/LOGOUT','2020-03-05 10:54:06','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 10:54:10',4),(45,'LOGIN/LOGOUT','2020-03-05 10:54:18','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(46,'LOGIN/LOGOUT','2020-03-05 10:54:44','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(47,'LOGIN/LOGOUT','2020-03-05 10:57:40','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(48,'LOGIN/LOGOUT','2020-03-05 10:58:54','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 11:00:43',109),(49,'LOGIN/LOGOUT','2020-03-05 11:00:53','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(50,'LOGIN/LOGOUT','2020-03-05 11:01:20','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(51,'LOGIN/LOGOUT','2020-03-05 11:02:51','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 11:03:18',26),(52,'LOGIN/LOGOUT','2020-03-05 11:03:28','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(53,'LOGIN/LOGOUT','2020-03-05 11:09:19','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 14:28:48',11969),(54,'LOGIN/LOGOUT','2020-03-05 14:28:57','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(55,'LOGIN/LOGOUT','2020-03-05 14:35:38','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 14:48:06',748),(56,'LOGIN/LOGOUT','2020-03-05 14:48:22','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 14:50:08',106),(57,'LOGIN/LOGOUT','2020-03-05 14:58:04','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(58,'LOGIN/LOGOUT','2020-03-05 15:06:49','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(59,'LOGIN/LOGOUT','2020-03-05 15:07:11','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 15:07:20',9),(60,'LOGIN/LOGOUT','2020-03-05 15:07:48','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 15:11:48',240),(61,'LOGIN/LOGOUT','2020-03-05 15:12:02','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 15:34:37',1355),(62,'LOGIN/LOGOUT','2020-03-05 15:15:38','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 15:16:08',30),(63,'LOGIN/LOGOUT','2020-03-05 15:16:17','ngochth','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL),(64,'LOGIN/LOGOUT','2020-03-05 15:37:29','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS','2020-03-05 16:48:32',4263),(65,'LOGIN/LOGOUT','2020-03-05 16:49:33','doanpv','::1','Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36','BE','SUCCESS',NULL,NULL);
UNLOCK TABLES;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment