mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
class Dxcalendar extends CI_Controller {
|
|
|
|
public function index() {
|
|
$this->load->model('user_model');
|
|
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
|
|
|
|
$data['page_title'] = "DX Calendar";
|
|
|
|
$url = 'http://www.ng3k.com/adxo.xml';
|
|
$data['rss'] = simplexml_load_file($url, null, LIBXML_NOCDATA);
|
|
|
|
// Get Date format
|
|
if($this->session->userdata('user_date_format')) {
|
|
// If Logged in and session exists
|
|
$custom_date_format = $this->session->userdata('user_date_format');
|
|
} else {
|
|
// Get Default date format from /config/cloudlog.php
|
|
$custom_date_format = $this->config->item('qso_date_format');
|
|
}
|
|
|
|
$data['custom_date_format'] = $custom_date_format;
|
|
|
|
$footerData['scripts'] = [
|
|
'assets/js/sections/dxcalendar.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/dxcalendar.js"))
|
|
];
|
|
|
|
$this->load->view('interface_assets/header', $data);
|
|
$this->load->view('dxcalendar/index');
|
|
$this->load->view('interface_assets/footer', $footerData);
|
|
|
|
}
|
|
|
|
|
|
}
|