| Server IP : 91.108.98.166 / 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 Livestreams extends BaseController
{
/**
* This is default constructor of the class
*/
public function __construct()
{
parent::__construct();
$this->isLoggedIn();
$this->load->model('livestreams_model');
}
public function index(){
$data['streams'] = $this->livestreams_model->getLiveStreams();
$this->load->template('livestreams', $data); // this will load the view file
}
function updateLiveStreams(){
$this->load->library('session');
$this->load->library('form_validation');
$data = array('title'=>$this->input->post('title'),'stream_url'=>$this->input->post('stream_url')
,'type'=>$this->input->post('type')
,'status'=>$this->input->post('status'));
$this->livestreams_model->updateLiveStreams($data);
$this->load->model('settings_model');
$server_key = $this->settings_model->getFcmServerKey();
$this->load->model('fcm_model');
$this->fcm_model->liveStreamsNotification($server_key,$this->livestreams_model->getLiveStreams());
if($this->livestreams_model->status == "ok"){
$this->session->set_flashdata('success', $this->livestreams_model->message);
}else{
$this->session->set_flashdata('error', $this->livestreams_model->message);
}
redirect('livestreams');
}
}
?>
Anon7 - 2022
AnonSec Team
