mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Can edit visitor link
This commit is contained in:
@@ -20,6 +20,20 @@ class Stationsetup_model extends CI_Model {
|
||||
$this->db->where('logbook_id', xss_clean($this->input->post('id', true)));
|
||||
$this->db->update('station_logbooks', $data);
|
||||
}
|
||||
|
||||
function remove_public_slug($logbook_id) {
|
||||
$this->db->set('public_slug', null);
|
||||
$this->db->where('user_id', $this->session->userdata('user_id'));
|
||||
$this->db->where('logbook_id', xss_clean($logbook_id));
|
||||
$this->db->update('station_logbooks');
|
||||
}
|
||||
|
||||
function saveVisitorLink() {
|
||||
$this->db->set('public_slug', xss_clean($this->input->post('name', true)));
|
||||
$this->db->where('user_id', $this->session->userdata('user_id'));
|
||||
$this->db->where('logbook_id', xss_clean($this->input->post('id', true)));
|
||||
$this->db->update('station_logbooks');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user