| Server IP : 77.37.53.228 / Your IP :
216.73.216.109 [
Web Server : LiteSpeed System : Linux nl-srv-web1124.main-hosting.eu 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64 User : u964240598 ( 964240598) PHP Version : 8.4.19 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u964240598/domains/hofam.org/public_html/churchapp/application/controllers/ |
Upload File : |
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
require APPPATH . '/libraries/BaseController.php';
/**
* Class : User (UserController)
* User Class to control all user related operations
*/
class Radio extends BaseController
{
/**
* This is default constructor of the class
*/
public function __construct()
{
parent::__construct();
$this->isLoggedIn();
$this->load->model('radio_model');
}
public function index(){
$data['radio'] = $this->radio_model->getRadio();
$this->load->template('radio', $data); // this will load the view file
}
function updateRadio(){
$this->load->library('session');
$this->load->library('form_validation');
$data = array('title'=>$this->input->post('title'),'thumbnail'=>$this->input->post('thumbnail'),'stream_url'=>$this->input->post('stream_url'));
$this->radio_model->updateRadio($data);
if($this->radio_model->status == "ok"){
$this->session->set_flashdata('success', $this->radio_model->message);
}else{
$this->session->set_flashdata('error', $this->radio_model->message);
}
redirect('radio');
}
}
?>
Anon7 - 2022
AnonSec Team
