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:
@@ -190,6 +190,11 @@ class Stationsetup extends CI_Controller {
|
||||
$this->load->view('stationsetup/visitor', $data);
|
||||
}
|
||||
|
||||
public function saveVisitorLink() {
|
||||
$this->load->model('stationsetup_model');
|
||||
$this->stationsetup_model->saveVisitorLink();
|
||||
}
|
||||
|
||||
public function newLocation() {
|
||||
$this->load->model('stations');
|
||||
$this->load->model('dxcc');
|
||||
@@ -348,4 +353,18 @@ class Stationsetup extends CI_Controller {
|
||||
return $returntext;
|
||||
}
|
||||
|
||||
public function remove_publicslug() {
|
||||
$id = xss_clean($this->input->post('id',true));
|
||||
if ($id ?? '' != '') {
|
||||
$this->load->model('stationsetup_model');
|
||||
$this->stationsetup_model->remove_public_slug($id);
|
||||
$data['success']=1;
|
||||
} else {
|
||||
$data['success']=0;
|
||||
$data['flashdata']='Not allowed';
|
||||
}
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user