mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Made the whole thing configurable with
application/config/cloudlog.php
This commit is contained in:
@@ -80,7 +80,7 @@ $autoload['helper'] = array('url');
|
||||
|
|
||||
*/
|
||||
|
||||
$autoload['config'] = array();
|
||||
$autoload['config'] = array('cloudlog');
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -5,4 +5,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
*
|
||||
* Config file for storing fixed variables
|
||||
*
|
||||
*/
|
||||
*/
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Show time on dashboard and QSO-details if not logged in
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you want to show QSO-times (additional to the date) on the dashboard
|
||||
| and on QSO-detail-view, set this to TRUE, otherwise set it to FALSE
|
||||
|
|
||||
*/
|
||||
$config['show_time'] = FALSE;
|
||||
@@ -38,7 +38,7 @@
|
||||
foreach ($last_five_qsos->result() as $row) { ?>
|
||||
<?php echo '<tr class="tr'.($i & 1).'">'; ?>
|
||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('d/m/y', $timestamp); ?></td>
|
||||
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
|
||||
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?>
|
||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('H:i', $timestamp); ?></td>
|
||||
<?php } else { ?>
|
||||
<td>**:**</td>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
<?php if ($query->num_rows() > 0) { foreach ($query->result() as $row) {
|
||||
?>
|
||||
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
|
||||
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?>
|
||||
<h4>QSO with <?php echo $row->COL_CALL; ?> on the <?php $timestamp = strtotime($row->COL_TIME_ON); echo date('d/m/y', $timestamp); $timestamp = strtotime($row->COL_TIME_ON); echo " at ".date('H:i', $timestamp); ?></h4>
|
||||
<?php } else { ?>
|
||||
<h4>QSO with <?php echo $row->COL_CALL; ?> on the <?php $timestamp = strtotime($row->COL_TIME_ON); echo date('d/m/y', $timestamp); $timestamp = strtotime($row->COL_TIME_ON); echo " at **:**"?></h4>
|
||||
@@ -13,7 +13,7 @@
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>Date/Time</td>
|
||||
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
|
||||
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?>
|
||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('d/m/y', $timestamp); $timestamp = strtotime($row->COL_TIME_ON); echo " at ".date('H:i', $timestamp); ?></td>
|
||||
<?php } else { ?>
|
||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('d/m/y', $timestamp); $timestamp = strtotime($row->COL_TIME_ON); echo " at **:**"; ?></td>
|
||||
|
||||
Reference in New Issue
Block a user