Can edit visitor link

This commit is contained in:
Andreas Kristiansen
2024-03-15 11:42:19 +01:00
parent b5c1c0391a
commit 2b4b869d6a
6 changed files with 64 additions and 24 deletions

View File

@@ -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);
}
}