Own
这个提交包含在:
父节点
a048f085f2
当前提交
066d93457c
共有 16 个文件被更改,包括 201115 次插入 和 201335 次删除
|
|
@ -1,8 +0,0 @@
|
|||
# If you want to hide 'index.php' from the URL, rename this file to '.htaccess' on your server
|
||||
# Then change the following variable in /application/config/config.php
|
||||
# $config['index_page'] = '';
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ /index.php?/$1 [L]
|
||||
|
|
@ -38,7 +38,7 @@ class Logbook extends CI_Controller {
|
|||
$this->load->library('pagination');
|
||||
$config['base_url'] = base_url().'index.php/logbook/index/';
|
||||
$config['total_rows'] = $this->logbook_model->total_qsos();
|
||||
$config['per_page'] = '25';
|
||||
$config['per_page'] = '50';
|
||||
$config['num_links'] = 6;
|
||||
$config['full_tag_open'] = '';
|
||||
$config['full_tag_close'] = '';
|
||||
|
|
|
|||
|
|
@ -770,7 +770,7 @@ class Logbook_model extends CI_Model {
|
|||
$CI->load->model('logbooks_model');
|
||||
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||
|
||||
$this->db->select('COL_CALL, COL_BAND, COL_TIME_ON, COL_RST_RCVD, COL_RST_SENT, COL_MODE, COL_SUBMODE, COL_NAME, COL_COUNTRY, COL_PRIMARY_KEY, COL_SAT_NAME');
|
||||
$this->db->select('COL_CALL, COL_BAND, COL_TIME_ON, COL_RST_RCVD, COL_RST_SENT, COL_MODE, COL_SUBMODE, COL_NAME, COL_COUNTRY, COL_PRIMARY_KEY, COL_SAT_NAME, COL_FREQ');
|
||||
$this->db->where_in('station_id', $logbooks_locations_array);
|
||||
$this->db->order_by("COL_TIME_ON", "desc");
|
||||
$this->db->limit(10);
|
||||
|
|
@ -785,7 +785,7 @@ class Logbook_model extends CI_Model {
|
|||
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||
|
||||
if(!empty($logbooks_locations_array)) {
|
||||
$this->db->select('COL_CALL, COL_BAND, COL_TIME_ON, COL_RST_RCVD, COL_RST_SENT, COL_MODE, COL_SUBMODE, COL_NAME, COL_COUNTRY, COL_PRIMARY_KEY, COL_SAT_NAME');
|
||||
$this->db->select('COL_CALL, COL_BAND, COL_TIME_ON, COL_RST_RCVD, COL_RST_SENT, COL_MODE, COL_SUBMODE, COL_NAME, COL_COUNTRY, COL_PRIMARY_KEY, COL_SAT_NAME, COL_FREQ');
|
||||
$this->db->where_in('station_id', $logbooks_locations_array);
|
||||
$this->db->order_by("COL_TIME_ON", "desc");
|
||||
$this->db->limit($num);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ function echo_table_col($row, $name) {
|
|||
case 'SOTA': echo '<td>' . ($row->COL_SOTA_REF) . '</td>'; break;
|
||||
case 'WWFF': echo '<td>' . ($row->COL_WWFF_REF) . '</td>'; break;
|
||||
case 'Grid': echo '<td>'; echoQrbCalcLink($row->station_gridsquare, $row->COL_VUCC_GRIDS, $row->COL_GRIDSQUARE); echo '</td>'; break;
|
||||
case 'Band': echo '<td>'; if($row->COL_SAT_NAME != null) { echo '<a href="https://db.satnogs.org/search/?q='.$row->COL_SAT_NAME.'" target="_blank">'.$row->COL_SAT_NAME.'</a></td>'; } else { echo strtolower($row->COL_BAND); } echo '</td>'; break;
|
||||
case 'Band': echo '<td>'; if($row->COL_SAT_NAME != null) { echo '<a href="https://db.satnogs.org/search/?q='.$row->COL_SAT_NAME.'" target="_blank">'.$row->COL_SAT_NAME.'</a></td>'; } else { echo strtolower($row->COL_BAND).'/'.round($row->COL_FREQ/1000,0); } echo '</td>'; break;
|
||||
case 'State': echo '<td>' . ($row->COL_STATE) . '</td>'; break;
|
||||
case 'Operator': echo '<td>' . ($row->COL_OPERATOR) . '</td>'; break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,6 @@
|
|||
<?php if ($sat_active) { ?>
|
||||
<a class="nav-link" href="<?php echo site_url('gridsquares/satellites'); ?>">Satellites</a>
|
||||
<?php } ?>
|
||||
<a class="nav-link" href="<?php echo site_url('gridsquares/band/2m'); ?>">Band</a>
|
||||
<a class="nav-link" href="<?php echo site_url('gridsquares/band/All'); ?>">Band</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -550,7 +550,7 @@
|
|||
<?php if($row->COL_SAT_NAME != null) { ?>
|
||||
<td><?php echo $row->COL_SAT_NAME; ?></td>
|
||||
<?php } else { ?>
|
||||
<td><?php echo $row->COL_BAND; ?></td>
|
||||
<td title="<?php echo strval($row->COL_FREQ); ?>"><?php echo $row->COL_BAND.'/'.round($row->COL_FREQ/1000,0); ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $i++; } } ?>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ function echo_table_col($row, $name) {
|
|||
case 'SOTA': echo '<td>' . ($row->COL_SOTA_REF) . '</td>'; break;
|
||||
case 'WWFF': echo '<td>' . ($row->COL_WWFF_REF) . '</td>'; break;
|
||||
case 'Grid': echo '<td>'; echoQrbCalcLink($row->station_gridsquare, $row->COL_VUCC_GRIDS, $row->COL_GRIDSQUARE); echo '</td>'; break;
|
||||
case 'Band': echo '<td>'; if($row->COL_SAT_NAME != null) { echo '<a href="https://db.satnogs.org/search/?q='.$row->COL_SAT_NAME.'" target="_blank">'.$row->COL_SAT_NAME.'</a></td>'; } else { echo strtolower($row->COL_BAND); } echo '</td>'; break;
|
||||
case 'Band': echo '<td title="'.round($row->COL_FREQ/1000,0).'">'; if($row->COL_SAT_NAME != null) { echo '<a href="https://db.satnogs.org/search/?q='.$row->COL_SAT_NAME.'" target="_blank">'.$row->COL_SAT_NAME.'</a></td>'; } else { echo strtolower($row->COL_BAND).' / '.round($row->COL_FREQ/1000,0); } echo '</td>'; break;
|
||||
case 'State': echo '<td>' . ($row->COL_STATE) . '</td>'; break;
|
||||
case 'Operator':echo '<td>' . ($row->COL_OPERATOR) . '</td>'; break;
|
||||
}
|
||||
|
|
|
|||
3405
assets/json/dok.txt
3405
assets/json/dok.txt
文件差异内容过多而无法显示
加载差异
|
|
@ -54,7 +54,8 @@
|
|||
* NOTE: If you change these, also change the error_reporting() code below
|
||||
*/
|
||||
#define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
|
||||
define('ENVIRONMENT', 'development');
|
||||
define('ENVIRONMENT', 'production');
|
||||
|
||||
|
||||
/*
|
||||
*---------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -1,479 +0,0 @@
|
|||
SET FOREIGN_KEY_CHECKS=0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for api
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `api`;
|
||||
CREATE TABLE `api` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`key` varchar(255) NOT NULL,
|
||||
`rights` varchar(10) NOT NULL,
|
||||
`status` varchar(10) NOT NULL,
|
||||
`last_change` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of api
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for cat
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `cat`;
|
||||
CREATE TABLE `cat` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`radio` varchar(250) NOT NULL,
|
||||
`frequency` bigint(13) NOT NULL,
|
||||
`mode` varchar(10) NOT NULL,
|
||||
`downlink_freq` bigint(13) DEFAULT NULL,
|
||||
`uplink_freq` bigint(13) DEFAULT NULL,
|
||||
`downlink_mode` varchar(255) DEFAULT NULL,
|
||||
`uplink_mode` varchar(255) DEFAULT NULL,
|
||||
`sat_name` varchar(255) DEFAULT NULL,
|
||||
`timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of cat
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `config`;
|
||||
CREATE TABLE `config` (
|
||||
`id` int(9) NOT NULL AUTO_INCREMENT,
|
||||
`lotw_download_url` varchar(255) DEFAULT NULL,
|
||||
`lotw_upload_url` varchar(255) DEFAULT NULL,
|
||||
`lotw_rcvd_mark` varchar(1) DEFAULT NULL,
|
||||
`lotw_login_url` varchar(244) DEFAULT NULL,
|
||||
`eqsl_download_url` varchar(244) DEFAULT NULL,
|
||||
`eqsl_rcvd_mark` varchar(1) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of config
|
||||
-- ----------------------------
|
||||
INSERT INTO `config` VALUES ('1', 'https://lotw.arrl.org/lotwuser/lotwreport.adi', 'https://lotw.arrl.org/lotwuser/upload', 'Y', 'https://lotw.arrl.org/lotwuser/default', 'http://www.eqsl.cc/qslcard/DownloadInBox.cfm', 'Y');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for migrations
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `migrations`;
|
||||
CREATE TABLE `migrations` (
|
||||
`version` bigint(20) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of migrations
|
||||
-- ----------------------------
|
||||
INSERT INTO `migrations` VALUES ('15');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for notes
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `notes`;
|
||||
CREATE TABLE `notes` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`cat` varchar(255) NOT NULL,
|
||||
`title` varchar(255) NOT NULL,
|
||||
`note` text NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of notes
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for station_profile
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `station_profile`;
|
||||
CREATE TABLE `station_profile` (
|
||||
`station_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`station_profile_name` varchar(200) NOT NULL,
|
||||
`station_gridsquare` varchar(100) NOT NULL,
|
||||
`station_city` varchar(100) NOT NULL,
|
||||
`station_iota` varchar(100) NOT NULL,
|
||||
`station_sota` varchar(10) NOT NULL,
|
||||
`station_callsign` varchar(50) DEFAULT NULL,
|
||||
`station_dxcc` int(10) DEFAULT NULL,
|
||||
`station_country` varchar(255) DEFAULT NULL,
|
||||
`station_cnty` varchar(200) DEFAULT NULL,
|
||||
`station_cq` int(5) DEFAULT NULL,
|
||||
`station_itu` int(5) DEFAULT NULL,
|
||||
PRIMARY KEY (`station_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of station_profile
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for TABLE_HRD_CONTACTS_V01
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `TABLE_HRD_CONTACTS_V01`;
|
||||
CREATE TABLE `TABLE_HRD_CONTACTS_V01` (
|
||||
`COL_PRIMARY_KEY` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`COL_ADDRESS` varchar(255) DEFAULT NULL,
|
||||
`COL_AGE` int(11) DEFAULT NULL,
|
||||
`COL_A_INDEX` double DEFAULT NULL,
|
||||
`COL_ANT_AZ` double DEFAULT NULL,
|
||||
`COL_ANT_EL` double DEFAULT NULL,
|
||||
`COL_ANT_PATH` varchar(2) DEFAULT NULL,
|
||||
`COL_ARRL_SECT` varchar(10) DEFAULT NULL,
|
||||
`COL_BAND` varchar(10) DEFAULT NULL,
|
||||
`COL_BAND_RX` varchar(10) DEFAULT NULL,
|
||||
`COL_BIOGRAPHY` longtext DEFAULT NULL,
|
||||
`COL_CALL` varchar(32) DEFAULT NULL,
|
||||
`COL_CHECK` varchar(8) DEFAULT NULL,
|
||||
`COL_CLASS` varchar(8) DEFAULT NULL,
|
||||
`COL_CNTY` varchar(32) DEFAULT NULL,
|
||||
`COL_COMMENT` longtext DEFAULT NULL,
|
||||
`COL_CONT` varchar(6) DEFAULT NULL,
|
||||
`COL_CONTACTED_OP` varchar(32) DEFAULT NULL,
|
||||
`COL_CONTEST_ID` varchar(32) DEFAULT NULL,
|
||||
`COL_COUNTRY` varchar(64) DEFAULT NULL,
|
||||
`COL_CQZ` int(11) DEFAULT NULL,
|
||||
`COL_DISTANCE` double DEFAULT NULL,
|
||||
`COL_DXCC` varchar(6) DEFAULT NULL,
|
||||
`COL_EMAIL` varchar(32) DEFAULT NULL,
|
||||
`COL_EQ_CALL` varchar(32) DEFAULT NULL,
|
||||
`COL_EQSL_QSLRDATE` datetime DEFAULT NULL,
|
||||
`COL_EQSL_QSLSDATE` datetime DEFAULT NULL,
|
||||
`COL_EQSL_QSL_RCVD` varchar(2) DEFAULT NULL,
|
||||
`COL_EQSL_QSL_SENT` varchar(2) DEFAULT NULL,
|
||||
`COL_EQSL_STATUS` varchar(255) DEFAULT NULL,
|
||||
`COL_FORCE_INIT` int(11) DEFAULT NULL,
|
||||
`COL_FREQ` bigint(13) DEFAULT NULL,
|
||||
`COL_FREQ_RX` bigint(13) DEFAULT NULL,
|
||||
`COL_GRIDSQUARE` varchar(12) DEFAULT NULL,
|
||||
`COL_HEADING` double DEFAULT NULL,
|
||||
`COL_IOTA` varchar(10) DEFAULT NULL,
|
||||
`COL_ITUZ` int(11) DEFAULT NULL,
|
||||
`COL_K_INDEX` double DEFAULT NULL,
|
||||
`COL_LAT` double DEFAULT NULL,
|
||||
`COL_LON` double DEFAULT NULL,
|
||||
`COL_LOTW_QSLRDATE` datetime DEFAULT NULL,
|
||||
`COL_LOTW_QSLSDATE` datetime DEFAULT NULL,
|
||||
`COL_LOTW_QSL_RCVD` varchar(2) DEFAULT NULL,
|
||||
`COL_LOTW_QSL_SENT` varchar(2) DEFAULT NULL,
|
||||
`COL_LOTW_STATUS` varchar(255) DEFAULT NULL,
|
||||
`COL_MAX_BURSTS` int(11) DEFAULT NULL,
|
||||
`COL_MODE` varchar(10) DEFAULT NULL,
|
||||
`COL_MS_SHOWER` varchar(32) DEFAULT NULL,
|
||||
`COL_MY_CITY` varchar(32) DEFAULT NULL,
|
||||
`COL_MY_CNTY` varchar(32) DEFAULT NULL,
|
||||
`COL_MY_COUNTRY` varchar(64) DEFAULT NULL,
|
||||
`COL_MY_CQ_ZONE` int(11) DEFAULT NULL,
|
||||
`COL_MY_GRIDSQUARE` varchar(12) DEFAULT NULL,
|
||||
`COL_MY_IOTA` varchar(10) DEFAULT NULL,
|
||||
`COL_MY_ITU_ZONE` int(11) DEFAULT NULL,
|
||||
`COL_MY_LAT` double DEFAULT NULL,
|
||||
`COL_MY_LON` double DEFAULT NULL,
|
||||
`COL_MY_NAME` varchar(64) DEFAULT NULL,
|
||||
`COL_MY_POSTAL_CODE` varchar(24) DEFAULT NULL,
|
||||
`COL_MY_RIG` varchar(255) DEFAULT NULL,
|
||||
`COL_MY_SIG` varchar(32) DEFAULT NULL,
|
||||
`COL_MY_SIG_INFO` varchar(64) DEFAULT NULL,
|
||||
`COL_MY_STATE` varchar(32) DEFAULT NULL,
|
||||
`COL_MY_STREET` varchar(64) DEFAULT NULL,
|
||||
`COL_NAME` varchar(128) DEFAULT NULL,
|
||||
`COL_NOTES` longtext DEFAULT NULL,
|
||||
`COL_NR_BURSTS` int(11) DEFAULT NULL,
|
||||
`COL_NR_PINGS` int(11) DEFAULT NULL,
|
||||
`COL_OPERATOR` varchar(32) DEFAULT NULL,
|
||||
`COL_OWNER_CALLSIGN` varchar(32) DEFAULT NULL,
|
||||
`COL_PFX` varchar(32) DEFAULT NULL,
|
||||
`COL_PRECEDENCE` varchar(32) DEFAULT NULL,
|
||||
`COL_PROP_MODE` varchar(8) DEFAULT NULL,
|
||||
`COL_PUBLIC_KEY` varchar(255) DEFAULT NULL,
|
||||
`COL_QSLMSG` varchar(255) DEFAULT NULL,
|
||||
`COL_QSLRDATE` datetime DEFAULT NULL,
|
||||
`COL_QSLSDATE` datetime DEFAULT NULL,
|
||||
`COL_QSL_RCVD` varchar(2) DEFAULT NULL,
|
||||
`COL_QSL_RCVD_VIA` varchar(2) DEFAULT NULL,
|
||||
`COL_QSL_SENT` varchar(2) DEFAULT NULL,
|
||||
`COL_QSL_SENT_VIA` varchar(2) DEFAULT NULL,
|
||||
`COL_QSL_VIA` varchar(255) DEFAULT NULL,
|
||||
`COL_QSO_COMPLETE` varchar(6) DEFAULT NULL,
|
||||
`COL_QSO_RANDOM` int(11) DEFAULT NULL,
|
||||
`COL_QTH` varchar(64) DEFAULT NULL,
|
||||
`COL_RIG` varchar(255) DEFAULT NULL,
|
||||
`COL_RST_RCVD` varchar(32) DEFAULT NULL,
|
||||
`COL_RST_SENT` varchar(32) DEFAULT NULL,
|
||||
`COL_RX_PWR` double DEFAULT NULL,
|
||||
`COL_SAT_MODE` varchar(32) DEFAULT NULL,
|
||||
`COL_SAT_NAME` varchar(32) DEFAULT NULL,
|
||||
`COL_SFI` double DEFAULT NULL,
|
||||
`COL_SIG` varchar(32) DEFAULT NULL,
|
||||
`COL_SIG_INFO` varchar(64) DEFAULT NULL,
|
||||
`COL_SRX` int(11) DEFAULT NULL,
|
||||
`COL_SRX_STRING` varchar(32) DEFAULT NULL,
|
||||
`COL_STATE` varchar(32) DEFAULT NULL,
|
||||
`COL_STATION_CALLSIGN` varchar(32) DEFAULT NULL,
|
||||
`COL_STX` int(11) DEFAULT NULL,
|
||||
`COL_STX_STRING` varchar(32) DEFAULT NULL,
|
||||
`COL_SWL` int(11) DEFAULT NULL,
|
||||
`COL_TEN_TEN` int(11) DEFAULT NULL,
|
||||
`COL_TIME_OFF` datetime DEFAULT NULL,
|
||||
`COL_TIME_ON` datetime DEFAULT NULL,
|
||||
`COL_TX_PWR` double DEFAULT NULL,
|
||||
`COL_WEB` varchar(128) DEFAULT NULL,
|
||||
`COL_USER_DEFINED_0` varchar(64) DEFAULT NULL,
|
||||
`COL_USER_DEFINED_1` varchar(64) DEFAULT NULL,
|
||||
`COL_USER_DEFINED_2` varchar(64) DEFAULT NULL,
|
||||
`COL_USER_DEFINED_3` varchar(64) DEFAULT NULL,
|
||||
`COL_USER_DEFINED_4` varchar(64) DEFAULT NULL,
|
||||
`COL_USER_DEFINED_5` varchar(64) DEFAULT NULL,
|
||||
`COL_USER_DEFINED_6` varchar(64) DEFAULT NULL,
|
||||
`COL_USER_DEFINED_7` varchar(64) DEFAULT NULL,
|
||||
`COL_USER_DEFINED_8` varchar(64) DEFAULT NULL,
|
||||
`COL_USER_DEFINED_9` varchar(64) DEFAULT NULL,
|
||||
`COL_CREDIT_GRANTED` varchar(64) DEFAULT NULL,
|
||||
`COL_CREDIT_SUBMITTED` varchar(64) DEFAULT NULL,
|
||||
`COL_ADDRESS_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_AWARD_GRANTED` varchar(255) DEFAULT NULL,
|
||||
`COL_AWARD_SUMMITED` varchar(255) DEFAULT NULL,
|
||||
`COL_CLUBLOG_QSO_UPLOAD_DATE` datetime DEFAULT NULL,
|
||||
`COL_CLUBLOG_QSO_UPLOAD_STATUS` varchar(20) DEFAULT NULL,
|
||||
`COL_COMMENT_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_COUNTRY_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_SILENT_KEY` varchar(2) DEFAULT NULL,
|
||||
`COL_SKCC` varchar(255) DEFAULT NULL,
|
||||
`COL_DARC_DOK` varchar(10) DEFAULT NULL,
|
||||
`COL_FISTS` int(10) DEFAULT NULL,
|
||||
`COL_FISTS_CC` int(10) DEFAULT NULL,
|
||||
`COL_HRDLOG_QSO_UPLOAD_DATE` datetime DEFAULT NULL,
|
||||
`COL_HRDLOG_QSO_UPLOAD_STATUS` varchar(10) DEFAULT NULL,
|
||||
`COL_MY_ANTENNA` varchar(255) DEFAULT NULL,
|
||||
`COL_MY_ANTENNA_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_MY_CITY_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_MY_COUNTRY_INTL` int(6) DEFAULT NULL,
|
||||
`COL_MY_DXCC` int(6) DEFAULT NULL,
|
||||
`COL_MY_FISTS` int(10) DEFAULT NULL,
|
||||
`COL_MY_IOTA_ISLAND_ID` varchar(10) DEFAULT NULL,
|
||||
`COL_MY_NAME_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_MY_POSTCODE_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_MY_RIG_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_MY_SIG_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_MY_SIG_INFO_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_MY_SOTA_REF` varchar(50) DEFAULT NULL,
|
||||
`COL_MY_STREET_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_MY_USACA_COUNTIES` varchar(255) DEFAULT NULL,
|
||||
`COL_MY_VUCC_GRIDS` varchar(50) DEFAULT NULL,
|
||||
`COL_NAME_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_NOTES_INTL` longtext DEFAULT NULL,
|
||||
`COL_QRZCOM_QSO_UPLOAD_DATE` datetime DEFAULT NULL,
|
||||
`COL_QRZCOM_QSO_UPLOAD_STATUS` varchar(10) DEFAULT NULL,
|
||||
`COL_QSO_DATE` date DEFAULT NULL,
|
||||
`COL_QSO_DATE_OFF` date DEFAULT NULL,
|
||||
`COL_QTH_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_REGION` varchar(25) DEFAULT NULL,
|
||||
`COL_RIG_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_SIG_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_SIG_INFO_INTL` varchar(255) DEFAULT NULL,
|
||||
`COL_SOTA_REF` varchar(30) DEFAULT NULL,
|
||||
`COL_SUBMODE` varchar(25) DEFAULT NULL,
|
||||
`COL_UKSMG` varchar(64) DEFAULT NULL,
|
||||
`COL_USACA_COUNTIES` varchar(255) DEFAULT NULL,
|
||||
`COL_VUCC_GRIDS` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`COL_PRIMARY_KEY`),
|
||||
KEY `HRD_IDX_COL_BAND` (`COL_BAND`),
|
||||
KEY `HRD_IDX_COL_CALL` (`COL_CALL`),
|
||||
KEY `HRD_IDX_COL_CONT` (`COL_CONT`),
|
||||
KEY `HRD_IDX_COL_DXCC` (`COL_DXCC`),
|
||||
KEY `HRD_IDX_COL_IOTA` (`COL_IOTA`),
|
||||
KEY `HRD_IDX_COL_MODE` (`COL_MODE`),
|
||||
KEY `HRD_IDX_COL_PFX` (`COL_PFX`),
|
||||
KEY `HRD_IDX_COL_TIME_ON` (`COL_TIME_ON`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of TABLE_HRD_CONTACTS_V01
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for timezones
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `timezones`;
|
||||
CREATE TABLE `timezones` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`offset` decimal(3,1) NOT NULL,
|
||||
`name` varchar(120) COLLATE utf8mb4_bin NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=151 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of timezones
|
||||
-- ----------------------------
|
||||
INSERT INTO `timezones` VALUES ('1', '-12.0', '(GMT-12:00)-International Date Line West');
|
||||
INSERT INTO `timezones` VALUES ('4', '-9.0', '(GMT-09:00)-Alaska');
|
||||
INSERT INTO `timezones` VALUES ('5', '-8.0', '(GMT-08:00)-Pacific Time (US & Canada); Tijuana');
|
||||
INSERT INTO `timezones` VALUES ('6', '-7.0', '(GMT-07:00)-Arizona');
|
||||
INSERT INTO `timezones` VALUES ('8', '-7.0', '(GMT-07:00)-Mountain Time (US & Canada)');
|
||||
INSERT INTO `timezones` VALUES ('13', '-5.0', '(GMT-05:00)-Bogota, Lima, Quito');
|
||||
INSERT INTO `timezones` VALUES ('15', '-5.0', '(GMT-05:00)-Indiana (East)');
|
||||
INSERT INTO `timezones` VALUES ('17', '-4.0', '(GMT-04:00)-La Paz');
|
||||
INSERT INTO `timezones` VALUES ('19', '-3.5', '(GMT-03:30)-Newfoundland');
|
||||
INSERT INTO `timezones` VALUES ('22', '-3.0', '(GMT-03:00)-Greenland');
|
||||
INSERT INTO `timezones` VALUES ('23', '-2.0', '(GMT-02:00)-Mid-Atlantic');
|
||||
INSERT INTO `timezones` VALUES ('0', '0.0', '(GMT)-Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London');
|
||||
INSERT INTO `timezones` VALUES ('30', '1.0', '(GMT+01:00)-Brussels, Copenhagen, Madrid, Paris');
|
||||
INSERT INTO `timezones` VALUES ('31', '1.0', '(GMT+01:00)-Sarajevo, Skopje, Warsaw, Zagreb');
|
||||
INSERT INTO `timezones` VALUES ('35', '2.0', '(GMT+02:00)-Cairo');
|
||||
INSERT INTO `timezones` VALUES ('36', '2.0', '(GMT+02:00)-Harare, Pretoria');
|
||||
INSERT INTO `timezones` VALUES ('38', '2.0', '(GMT+02:00)-Jerusalem');
|
||||
INSERT INTO `timezones` VALUES ('39', '3.0', '(GMT+03:00)-Baghdad');
|
||||
INSERT INTO `timezones` VALUES ('41', '3.0', '(GMT+03:00)-Moscow, St. Petersburg, Volgograd');
|
||||
INSERT INTO `timezones` VALUES ('43', '3.5', '(GMT+03:30)-Tehran');
|
||||
INSERT INTO `timezones` VALUES ('44', '4.0', '(GMT+04:00)-Abu Dhabi, Muscat');
|
||||
INSERT INTO `timezones` VALUES ('45', '4.0', '(GMT+04:00)-Baku, Tbilisi, Yerevan');
|
||||
INSERT INTO `timezones` VALUES ('46', '4.5', '(GMT+04:30)-Kabul');
|
||||
INSERT INTO `timezones` VALUES ('51', '6.0', '(GMT+06:00)-Almaty, Novosibirsk');
|
||||
INSERT INTO `timezones` VALUES ('54', '6.5', '(GMT+06:30)-Rangoon');
|
||||
INSERT INTO `timezones` VALUES ('55', '7.0', '(GMT+07:00)-Bangkok, Hanoi, Jakarta');
|
||||
INSERT INTO `timezones` VALUES ('56', '7.0', '(GMT+07:00)-Krasnoyarsk');
|
||||
INSERT INTO `timezones` VALUES ('58', '8.0', '(GMT+08:00)-Irkutsk, Ulaan Bataar');
|
||||
INSERT INTO `timezones` VALUES ('59', '8.0', '(GMT+08:00)-Kuala Lumpur, Singapore');
|
||||
INSERT INTO `timezones` VALUES ('60', '8.0', '(GMT+08:00)-Perth');
|
||||
INSERT INTO `timezones` VALUES ('63', '9.0', '(GMT+09:00)-Seoul');
|
||||
INSERT INTO `timezones` VALUES ('64', '9.0', '(GMT+09:00)-Vakutsk');
|
||||
INSERT INTO `timezones` VALUES ('66', '9.5', '(GMT+09:30)-Darwin');
|
||||
INSERT INTO `timezones` VALUES ('69', '10.0', '(GMT+10:00)-Guam, Port Moresby');
|
||||
INSERT INTO `timezones` VALUES ('71', '10.0', '(GMT+10:00)-Vladivostok');
|
||||
INSERT INTO `timezones` VALUES ('74', '12.0', '(GMT+12:00)-Fiji, Kamchatka, Marshall Is.');
|
||||
INSERT INTO `timezones` VALUES ('76', '-11.0', '(GMT-11:00)-Midway Island, Samoa');
|
||||
INSERT INTO `timezones` VALUES ('77', '-10.0', '(GMT-10:00)-Hawaii');
|
||||
INSERT INTO `timezones` VALUES ('81', '-7.0', '(GMT-07:00)-Chihuahua, La Paz, Mazatlan');
|
||||
INSERT INTO `timezones` VALUES ('83', '-6.0', '(GMT-06:00)-Central America');
|
||||
INSERT INTO `timezones` VALUES ('84', '-6.0', '(GMT-06:00)-Central Time (US & Canada)');
|
||||
INSERT INTO `timezones` VALUES ('85', '-6.0', '(GMT-06:00)-Guadalajara, Mexico City, Monterrey');
|
||||
INSERT INTO `timezones` VALUES ('86', '-6.0', '(GMT-06:00)-Saskatchewan');
|
||||
INSERT INTO `timezones` VALUES ('88', '-5.0', '(GMT-05:00)-Eastern Time (US & Canada)');
|
||||
INSERT INTO `timezones` VALUES ('90', '-4.0', '(GMT-04:00)-Atlantic Time (Canada)');
|
||||
INSERT INTO `timezones` VALUES ('91', '-4.0', '(GMT-04:00)-Caracas, La Paz');
|
||||
INSERT INTO `timezones` VALUES ('92', '-4.0', '(GMT-04:00)-Santiago');
|
||||
INSERT INTO `timezones` VALUES ('94', '-3.0', '(GMT-03:00)-Brasilia');
|
||||
INSERT INTO `timezones` VALUES ('95', '-3.0', '(GMT-03:00)-Buenos Aires, Georgetown');
|
||||
INSERT INTO `timezones` VALUES ('98', '-1.0', '(GMT-01:00)-Azores');
|
||||
INSERT INTO `timezones` VALUES ('99', '-1.0', '(GMT-01:00)-Cape Verde Is.');
|
||||
INSERT INTO `timezones` VALUES ('100', '0.0', '(GMT)-Casablanca, Monrovia');
|
||||
INSERT INTO `timezones` VALUES ('102', '1.0', '(GMT+01:00)-Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna');
|
||||
INSERT INTO `timezones` VALUES ('103', '1.0', '(GMT+01:00)-Belgrade, Bratislava, Budapest, Ljubljana, Prague');
|
||||
INSERT INTO `timezones` VALUES ('106', '1.0', '(GMT+01:00)-West Central Africa');
|
||||
INSERT INTO `timezones` VALUES ('107', '2.0', '(GMT+02:00)-Athens, Beirut, Istanbul, Minsk');
|
||||
INSERT INTO `timezones` VALUES ('108', '2.0', '(GMT+02:00)-Bucharest');
|
||||
INSERT INTO `timezones` VALUES ('111', '2.0', '(GMT+02:00)-Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius');
|
||||
INSERT INTO `timezones` VALUES ('114', '3.0', '(GMT+03:00)-Kuwait, Riyadh');
|
||||
INSERT INTO `timezones` VALUES ('116', '3.0', '(GMT+03:00)-Nairobi');
|
||||
INSERT INTO `timezones` VALUES ('121', '5.0', '(GMT+05:00)-Ekaterinburg');
|
||||
INSERT INTO `timezones` VALUES ('122', '5.0', '(GMT+05:00)-Islamabad, Karachi, Tashkent');
|
||||
INSERT INTO `timezones` VALUES ('123', '5.5', '(GMT+05:30)-Chennai, Kolkata, Mumbai, New Delhi');
|
||||
INSERT INTO `timezones` VALUES ('124', '5.8', '(GMT+05:45)-Kathmandu');
|
||||
INSERT INTO `timezones` VALUES ('126', '6.0', '(GMT+06:00)-Astana, Dhaka');
|
||||
INSERT INTO `timezones` VALUES ('127', '6.0', '(GMT+06:00)-Sri Jayawardenepura');
|
||||
INSERT INTO `timezones` VALUES ('129', '7.0', '(GMT+07:00)-Bangkok, Hanoi, Jakarta');
|
||||
INSERT INTO `timezones` VALUES ('131', '8.0', '(GMT+08:00)-Beijing, Chongqing, Hong Kong, Urumqi');
|
||||
INSERT INTO `timezones` VALUES ('135', '8.0', '(GMT+08:00)-Taipei');
|
||||
INSERT INTO `timezones` VALUES ('136', '9.0', '(GMT+09:00)-Osaka, Sapporo, Tokyo');
|
||||
INSERT INTO `timezones` VALUES ('139', '9.5', '(GMT+09:30)-Adelaide');
|
||||
INSERT INTO `timezones` VALUES ('141', '10.0', '(GMT+10:00)-Brisbane');
|
||||
INSERT INTO `timezones` VALUES ('142', '10.0', '(GMT+10:00)-Canberra, Melbourne, Sydney');
|
||||
INSERT INTO `timezones` VALUES ('144', '10.0', '(GMT+10:00)-Hobart');
|
||||
INSERT INTO `timezones` VALUES ('146', '11.0', '(GMT+11:00)-Magadan, Solomon Is., New Caledonia');
|
||||
INSERT INTO `timezones` VALUES ('147', '12.0', '(GMT+12:00)-Auckland, Wellington');
|
||||
INSERT INTO `timezones` VALUES ('149', '13.0', '(GMT+13:00)-Nuku\'alofa ');
|
||||
INSERT INTO `timezones` VALUES ('150', '-4.5', '(GMT-04:30)-Caracas');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for users
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `users`;
|
||||
CREATE TABLE `users` (
|
||||
`user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Unique user ID',
|
||||
`user_name` varchar(32) NOT NULL COMMENT 'Username',
|
||||
`user_password` varchar(64) NOT NULL COMMENT 'Password',
|
||||
`user_email` varchar(64) NOT NULL COMMENT 'E-mail address',
|
||||
`user_type` varchar(8) NOT NULL COMMENT 'User type',
|
||||
`user_callsign` varchar(32) NOT NULL COMMENT 'User''s callsign',
|
||||
`user_locator` varchar(16) NOT NULL COMMENT 'User''s locator',
|
||||
`user_firstname` varchar(32) NOT NULL COMMENT 'User''s first name',
|
||||
`user_lastname` varchar(32) NOT NULL COMMENT 'User''s last name',
|
||||
`user_timezone` int(3) NOT NULL DEFAULT 0,
|
||||
`user_lotw_name` varchar(32) DEFAULT NULL,
|
||||
`user_lotw_password` varchar(64) DEFAULT NULL,
|
||||
`user_eqsl_name` varchar(32) DEFAULT NULL,
|
||||
`user_eqsl_password` varchar(64) DEFAULT NULL,
|
||||
`user_eqsl_qth_nickname` varchar(32) DEFAULT NULL,
|
||||
PRIMARY KEY (`user_id`),
|
||||
UNIQUE KEY `user_name` (`user_name`),
|
||||
UNIQUE KEY `user_email` (`user_email`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of users
|
||||
-- ----------------------------
|
||||
INSERT INTO `users` VALUES ('4', 'm0abc', '$2a$08$r9UF3YhipAY6htSQoZRjeOFDx3Yuh7Zjuh45vKyUN4gO8g5l.saES', 'demo@demo.com', '99', 'M0ABC', 'io91js', 'Demo', 'Account', '0', null, null, null, null, null);
|
||||
|
||||
|
||||
|
||||
CREATE TABLE `dxcc_entities` (
|
||||
`adif` smallint(6) NOT NULL,
|
||||
`name` varchar(150) DEFAULT NULL,
|
||||
`prefix` varchar(32) NOT NULL,
|
||||
`cqz` smallint(6) NOT NULL,
|
||||
`ituz` smallint(6) NOT NULL,
|
||||
`cont` varchar(5) NOT NULL,
|
||||
`long` float NOT NULL,
|
||||
`lat` float NOT NULL,
|
||||
`end` date DEFAULT NULL,
|
||||
`start` date DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `dxcc_exceptions` (
|
||||
`record` int(11) NOT NULL,
|
||||
`call` varchar(32) DEFAULT NULL,
|
||||
`entity` varchar(255) NOT NULL,
|
||||
`adif` smallint(6) NOT NULL,
|
||||
`cqz` smallint(6) NOT NULL,
|
||||
`cont` varchar(5) NOT NULL,
|
||||
`long` float NOT NULL,
|
||||
`lat` float NOT NULL,
|
||||
`start` date DEFAULT NULL,
|
||||
`end` date DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `dxcc_prefixes` (
|
||||
`record` int(11) NOT NULL,
|
||||
`call` varchar(32) DEFAULT NULL,
|
||||
`entity` varchar(255) NOT NULL,
|
||||
`adif` smallint(6) NOT NULL,
|
||||
`cqz` smallint(6) NOT NULL,
|
||||
`cont` varchar(5) NOT NULL,
|
||||
`long` float NOT NULL,
|
||||
`lat` float NOT NULL,
|
||||
`start` date DEFAULT NULL,
|
||||
`end` date DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Indexes for table `dxcc_entities`
|
||||
--
|
||||
ALTER TABLE `dxcc_entities`
|
||||
ADD PRIMARY KEY (`adif`);
|
||||
|
||||
--
|
||||
-- Indexes for table `dxcc_exceptions`
|
||||
--
|
||||
ALTER TABLE `dxcc_exceptions`
|
||||
ADD PRIMARY KEY (`record`);
|
||||
|
||||
--
|
||||
-- Indexes for table `dxcc_prefixes`
|
||||
--
|
||||
ALTER TABLE `dxcc_prefixes`
|
||||
ADD PRIMARY KEY (`record`);
|
||||
|
|
@ -1,602 +0,0 @@
|
|||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Install Options
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'app_name' Name of the App 'Cloudlog'
|
||||
| 'app_version' Set by the dev team.
|
||||
| 'directory' directory where cloudlog is installed eg "logger"
|
||||
| 'callbook' Selects which Callbook lookup to use defaults "hamqth" but supports "qrz"
|
||||
*/
|
||||
|
||||
$config['app_name'] = "Cloudlog";
|
||||
$config['app_version'] = "1.7";
|
||||
$config['directory'] = "%directory%";
|
||||
$config['callbook'] = "hamqth"; // Options are hamqth or qrz
|
||||
|
||||
$config['datadir'] = null; // default to install directory
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Logbook Options
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'table_name' SQL table where log can be found
|
||||
| 'locator' Default locator used to calculate bearings/distance
|
||||
| 'display_freq' Show or Hide frequnecy info
|
||||
*/
|
||||
|
||||
$config['table_name'] = "TABLE_HRD_CONTACTS_V01";
|
||||
$config['locator'] = "%baselocator%";
|
||||
$config['display_freq'] = false;
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| QRZ Login Options
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'qrz_username' QRZ.com user login
|
||||
| 'qrz_password' QRZ.com user password
|
||||
| 'use_fullname' Get full names from QRZ, may not be GDPR compliant
|
||||
*/
|
||||
|
||||
$config['qrz_username'] = "";
|
||||
$config['qrz_password'] = "";
|
||||
$config['use_fullname'] = false;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| HamQTH Login Options
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'hamqth_username' HamQTH user login
|
||||
| 'hamqth_password' HamQTH user password
|
||||
*/
|
||||
$config['hamqth_username'] = "";
|
||||
$config['hamqth_password'] = "";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'use_auth' False turns all authentication off, best used when setting up
|
||||
| 'auth_table' MySQL Database Table defaults "users"
|
||||
| 'auth_mode' Minimum user level required 0 = anonymous, 1 = viewer,
|
||||
| 2 = editor, 3 = api user, 99 = owner
|
||||
| 'auth_level[]' Defines level titles
|
||||
*/
|
||||
|
||||
$config['use_auth'] = true;
|
||||
$config['auth_table'] = "users";
|
||||
$config['auth_mode'] = "3";
|
||||
|
||||
$config['auth_level'][3] = "Operator";
|
||||
$config['auth_level'][99] = "Administrator";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Base Site URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| URL to your CodeIgniter root. Typically this will be your base URL,
|
||||
| WITH a trailing slash:
|
||||
|
|
||||
| http://example.com/
|
||||
|
|
||||
| WARNING: You MUST set this value!
|
||||
|
|
||||
| If it is not set, then CodeIgniter will try guess the protocol and path
|
||||
| your installation, but due to security concerns the hostname will be set
|
||||
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
|
||||
| The auto-detection mechanism exists only for convenience during
|
||||
| development and MUST NOT be used in production!
|
||||
|
|
||||
| If you need to allow multiple domains, remember that this file is still
|
||||
| a PHP script and you can easily do that on your own.
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = '%websiteurl%';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Index File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Typically this will be your index.php file, unless you've renamed it to
|
||||
| something else. If you are using mod_rewrite to remove the page set this
|
||||
| variable so that it is blank.
|
||||
|
|
||||
*/
|
||||
$config['index_page'] = 'index.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of 'REQUEST_URI' works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
|
||||
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
|
||||
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
||||
|
|
||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||
*/
|
||||
$config['uri_protocol'] = 'REQUEST_URI';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
$config['url_suffix'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
$config['language'] = 'english';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = 'UTF-8';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the 'hooks' feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| https://codeigniter.com/user_guide/general/core_classes.html
|
||||
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Composer auto-loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this setting will tell CodeIgniter to look for a Composer
|
||||
| package auto-loader script in application/vendor/autoload.php.
|
||||
|
|
||||
| $config['composer_autoload'] = TRUE;
|
||||
|
|
||||
| Or if you have your vendor/ directory located somewhere else, you
|
||||
| can opt to set a specific path as well:
|
||||
|
|
||||
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
||||
|
|
||||
| For more information about Composer, please visit http://getcomposer.org/
|
||||
|
|
||||
| Note: This will NOT disable or override the CodeIgniter-specific
|
||||
| autoloading (application/config/autoload.php)
|
||||
*/
|
||||
$config['composer_autoload'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify which characters are permitted within your URLs.
|
||||
| When someone tries to submit a URL with disallowed characters they will
|
||||
| get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| The configured value is actually a regular expression character group
|
||||
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| example.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| example.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string 'words' that will
|
||||
| invoke your controllers and its functions:
|
||||
| example.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
$config['directory_trigger'] = 'd';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow $_GET array
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter enables access to the $_GET array. If for some
|
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['allow_get_array'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| You can also pass an array with threshold levels to show individual error types
|
||||
|
|
||||
| array(2) = Debug Messages, without Error Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 0;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/logs/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Extension
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename extension for log files. The default 'php' allows for
|
||||
| protecting the log files via basic scripting, when they are to be stored
|
||||
| under a publicly accessible directory.
|
||||
|
|
||||
| Note: Leaving it blank will default to 'php'.
|
||||
|
|
||||
*/
|
||||
$config['log_file_extension'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log File Permissions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The file system permissions to be applied on newly created log files.
|
||||
|
|
||||
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
|
||||
| integer notation (i.e. 0700, 0644, etc.)
|
||||
*/
|
||||
$config['log_file_permissions'] = 0644;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y-m-d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Views Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/views/errors/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['error_views_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| application/cache/ directory. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Include Query String
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether to take the URL query string into consideration when generating
|
||||
| output cache files. Valid options are:
|
||||
|
|
||||
| FALSE = Disabled
|
||||
| TRUE = Enabled, take all query parameters into account.
|
||||
| Please be aware that this may result in numerous cache
|
||||
| files generated for the same page over and over again.
|
||||
| array('q') = Enabled, but only take into account the specified list
|
||||
| of query parameters.
|
||||
|
|
||||
*/
|
||||
$config['cache_query_string'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class, you must set an encryption key.
|
||||
| See the user guide for more info.
|
||||
|
|
||||
| https://codeigniter.com/user_guide/libraries/encryption.html
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = 'flossie1234555541';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'sess_driver'
|
||||
|
|
||||
| The storage driver to use: files, database, redis, memcached
|
||||
|
|
||||
| 'sess_cookie_name'
|
||||
|
|
||||
| The session cookie name, must contain only [0-9a-z_-] characters
|
||||
|
|
||||
| 'sess_expiration'
|
||||
|
|
||||
| The number of SECONDS you want the session to last.
|
||||
| Setting to 0 (zero) means expire when the browser is closed.
|
||||
|
|
||||
| 'sess_save_path'
|
||||
|
|
||||
| The location to save sessions to, driver dependent.
|
||||
|
|
||||
| For the 'files' driver, it's a path to a writable directory.
|
||||
| WARNING: Only absolute paths are supported!
|
||||
|
|
||||
| For the 'database' driver, it's a table name.
|
||||
| Please read up the manual for the format with other session drivers.
|
||||
|
|
||||
| IMPORTANT: You are REQUIRED to set a valid save path!
|
||||
|
|
||||
| 'sess_match_ip'
|
||||
|
|
||||
| Whether to match the user's IP address when reading the session data.
|
||||
|
|
||||
| WARNING: If you're using the database driver, don't forget to update
|
||||
| your session table's PRIMARY KEY when changing this setting.
|
||||
|
|
||||
| 'sess_time_to_update'
|
||||
|
|
||||
| How many seconds between CI regenerating the session ID.
|
||||
|
|
||||
| 'sess_regenerate_destroy'
|
||||
|
|
||||
| Whether to destroy session data associated with the old session ID
|
||||
| when auto-regenerating the session ID. When set to FALSE, the data
|
||||
| will be later deleted by the garbage collector.
|
||||
|
|
||||
| Other session cookie settings are shared with the rest of the application,
|
||||
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
||||
|
|
||||
*/
|
||||
$config['sess_driver'] = 'files';
|
||||
$config['sess_cookie_name'] = 'ci_cloudlog';
|
||||
$config['sess_expiration'] = 0;
|
||||
$config['sess_save_path'] = '/tmp';
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
|
||||
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
||||
|
|
||||
| Note: These settings (with the exception of 'cookie_prefix' and
|
||||
| 'cookie_httponly') will also affect sessions.
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = '';
|
||||
$config['cookie_domain'] = '';
|
||||
$config['cookie_path'] = '/';
|
||||
$config['cookie_secure'] = FALSE;
|
||||
$config['cookie_httponly'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Standardize newlines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether to standardize newline characters in input data,
|
||||
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['standardize_newlines'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
| WARNING: This feature is DEPRECATED and currently available only
|
||||
| for backwards compatibility purposes!
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross Site Request Forgery
|
||||
|--------------------------------------------------------------------------
|
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
|
||||
| checked on a submitted form. If you are accepting user data, it is strongly
|
||||
| recommended CSRF protection be enabled.
|
||||
|
|
||||
| 'csrf_token_name' = The token name
|
||||
| 'csrf_cookie_name' = The cookie name
|
||||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
| 'csrf_regenerate' = Regenerate token on every submission
|
||||
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
|
||||
*/
|
||||
$config['csrf_protection'] = FALSE;
|
||||
$config['csrf_token_name'] = 'csrf_test_name';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_regenerate'] = TRUE;
|
||||
$config['csrf_exclude_uris'] = array();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| Only used if zlib.output_compression is turned off in your php.ini.
|
||||
| Please do not use it together with httpd-level output compression.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not 'echo' any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are 'local' or any PHP supported timezone. This preference tells
|
||||
| the system whether to use your server's local time as the master 'now'
|
||||
| reference, or convert it to the configured one timezone. See the 'date
|
||||
| helper' page of the user guide for information regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'UTC';
|
||||
date_default_timezone_set ( $config['time_reference'] );
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
| Note: You need to have eval() enabled for this to work.
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Reverse Proxy IPs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your server is behind a reverse proxy, you must whitelist the proxy
|
||||
| IP addresses from which CodeIgniter should trust headers such as
|
||||
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
|
||||
| the visitor's IP address.
|
||||
|
|
||||
| You can use both an array or a comma-separated list of proxy addresses,
|
||||
| as well as specifying whole subnets. Here are a few examples:
|
||||
|
|
||||
| Comma-separated: '10.0.1.200,192.168.5.0/24'
|
||||
| Array: array('10.0.1.200', '192.168.5.0/24')
|
||||
*/
|
||||
$config['proxy_ips'] = '';
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the 'Database Connection'
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['dsn'] The full DSN string describe a connection to the database.
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database driver. e.g.: mysqli.
|
||||
| Currently supported:
|
||||
| cubrid, ibase, mssql, mysql, mysqli, oci8,
|
||||
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Query Builder class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
| NOTE: For MySQL and MySQLi databases, this setting is only used
|
||||
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
|
||||
| (and in table creation queries made with DB Forge).
|
||||
| There is an incompatibility in PHP with mysql_real_escape_string() which
|
||||
| can make your site vulnerable to SQL injection if you are using a
|
||||
| multi-byte character set and are running versions lower than these.
|
||||
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
|
||||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
|
||||
| ['encrypt'] Whether or not to use an encrypted connection.
|
||||
|
|
||||
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
|
||||
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
||||
|
|
||||
| 'ssl_key' - Path to the private key file
|
||||
| 'ssl_cert' - Path to the public key certificate file
|
||||
| 'ssl_ca' - Path to the certificate authority file
|
||||
| 'ssl_capath' - Path to a directory containing trusted CA certificats in PEM format
|
||||
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
|
||||
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not ('mysqli' only)
|
||||
|
|
||||
| ['compress'] Whether or not to use client compression (MySQL only)
|
||||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
|
||||
| - good for ensuring strict SQL while developing
|
||||
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
|
||||
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
|
||||
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
|
||||
| NOTE: Disabling this will also effectively disable both
|
||||
| $this->db->last_query() and profiling of DB queries.
|
||||
| When you run a query, with this setting set to TRUE (default),
|
||||
| CodeIgniter will store the SQL statement for debugging purposes.
|
||||
| However, this may cause high memory usage, especially if you run
|
||||
| a lot of SQL queries ... disable this to avoid that problem.
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the 'default' group).
|
||||
|
|
||||
| The $query_builder variables lets you determine whether or not to load
|
||||
| the query builder class.
|
||||
*/
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
$db['default'] = array(
|
||||
// The following values will probably need to be changed.
|
||||
'dsn' => '',
|
||||
'hostname' => '%HOSTNAME%',
|
||||
'username' => '%USERNAME%',
|
||||
'password' => '%PASSWORD%',
|
||||
'database' => '%DATABASE%',
|
||||
// The following values can probably stay the same.
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => TRUE,
|
||||
'db_debug' => (ENVIRONMENT !== 'production'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8mb4',
|
||||
'dbcollat' => 'utf8mb4_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
|
|
@ -1,127 +0,0 @@
|
|||
<?php
|
||||
|
||||
class Core {
|
||||
|
||||
// Function to validate the post data
|
||||
function validate_post($data)
|
||||
{
|
||||
// Counter variable
|
||||
$counter = 0;
|
||||
|
||||
// Validate the hostname
|
||||
if(isset($data['hostname']) AND !empty($data['hostname'])) {
|
||||
$counter++;
|
||||
}
|
||||
// Validate the username
|
||||
if(isset($data['username']) AND !empty($data['username'])) {
|
||||
$counter++;
|
||||
}
|
||||
// Validate the password
|
||||
if(isset($data['password']) AND !empty($data['password'])) {
|
||||
// pass
|
||||
}
|
||||
// Validate the database
|
||||
if(isset($data['database']) AND !empty($data['database'])) {
|
||||
$counter++;
|
||||
}
|
||||
|
||||
if($data['directory'] != "") {
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].$data['directory'])) {
|
||||
//pass folders real
|
||||
$counter++;
|
||||
} else {
|
||||
echo "Directory ".$data['directory']." cannot be found";
|
||||
exit;
|
||||
}
|
||||
} else {
|
||||
$counter++;
|
||||
}
|
||||
|
||||
// Check if all the required fields have been entered
|
||||
if($counter == '4') {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Function to show an error
|
||||
function show_message($type,$message) {
|
||||
return $message;
|
||||
}
|
||||
|
||||
// Function to write the config file
|
||||
function write_config($data) {
|
||||
|
||||
// Config path
|
||||
$template_path = 'config/database.php';
|
||||
$output_path = $_SERVER['DOCUMENT_ROOT'].$data['directory'].'/application/config/database.php';
|
||||
|
||||
// Open the file
|
||||
$database_file = file_get_contents($template_path);
|
||||
|
||||
$new = str_replace("%HOSTNAME%",$data['hostname'],$database_file);
|
||||
$new = str_replace("%USERNAME%",$data['username'],$new);
|
||||
$new = str_replace("%PASSWORD%",$data['password'],$new);
|
||||
$new = str_replace("%DATABASE%",$data['database'],$new);
|
||||
|
||||
// Write the new database.php file
|
||||
$handle = fopen($output_path,'w+');
|
||||
|
||||
// Chmod the file, in case the user forgot
|
||||
@chmod($output_path,0777);
|
||||
|
||||
// Verify file permissions
|
||||
if(is_writable($output_path)) {
|
||||
|
||||
// Write the file
|
||||
if(fwrite($handle,$new)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Function to write the config file
|
||||
function write_configfile($data) {
|
||||
|
||||
// Config path
|
||||
$template_path = 'config/config.php';
|
||||
$output_path = $_SERVER['DOCUMENT_ROOT'].$data['directory'].'/application/config/config.php';
|
||||
|
||||
// Open the file
|
||||
$database_file = file_get_contents($template_path);
|
||||
|
||||
$new = str_replace("%baselocator%",$data['locator'],$database_file);
|
||||
$new = str_replace("%websiteurl%",$data['websiteurl'],$new);
|
||||
$new = str_replace("%directory%",$data['directory'],$new);
|
||||
|
||||
// Write the new config.php file
|
||||
$handle = fopen($output_path,'w+');
|
||||
|
||||
// Chmod the file, in case the user forgot
|
||||
@chmod($output_path,0777);
|
||||
|
||||
// Verify file permissions
|
||||
if(is_writable($output_path)) {
|
||||
|
||||
// Write the file
|
||||
if(fwrite($handle,$new)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
<?php
|
||||
|
||||
class Database {
|
||||
|
||||
// Function to the database and tables and fill them with the default data
|
||||
function create_database($data)
|
||||
{
|
||||
// Connect to the database
|
||||
$mysqli = new mysqli($data['hostname'],$data['username'],$data['password'],'');
|
||||
|
||||
// Check for errors
|
||||
if(mysqli_connect_errno())
|
||||
return false;
|
||||
|
||||
// Create the prepared statement
|
||||
$mysqli->query("CREATE DATABASE IF NOT EXISTS ".$data['database']);
|
||||
|
||||
// Close the connection
|
||||
$mysqli->close();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Function to create the tables and fill them with the default data
|
||||
function create_tables($data)
|
||||
{
|
||||
// Connect to the database
|
||||
$mysqli = new mysqli($data['hostname'],$data['username'],$data['password'],$data['database']);
|
||||
|
||||
// Check for errors
|
||||
if(mysqli_connect_errno())
|
||||
return false;
|
||||
|
||||
// Open the default SQL file
|
||||
$query = file_get_contents('assets/install.sql');
|
||||
|
||||
// Execute a multi query
|
||||
$mysqli->multi_query($query);
|
||||
|
||||
// Close the connection
|
||||
$mysqli->close();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
@ -1,165 +0,0 @@
|
|||
<?php
|
||||
|
||||
|
||||
$db_config_path = '../application/config/';
|
||||
|
||||
$db_file_path = $db_config_path."database.php";
|
||||
|
||||
function delDir($dir) {
|
||||
$files = glob( $dir . '*', GLOB_MARK );
|
||||
foreach( $files as $file ){
|
||||
if( substr( $file, -1 ) == '/' )
|
||||
delDir( $file );
|
||||
else
|
||||
unlink( $file );
|
||||
}
|
||||
rmdir( $dir );
|
||||
}
|
||||
|
||||
if (file_exists($db_file_path)) {
|
||||
delDir(getcwd());
|
||||
header("../");
|
||||
exit;
|
||||
}
|
||||
|
||||
// Only load the classes in case the user submitted the form
|
||||
if($_POST) {
|
||||
|
||||
// Load the classes and create the new objects
|
||||
require_once('includes/core_class.php');
|
||||
require_once('includes/database_class.php');
|
||||
|
||||
$core = new Core();
|
||||
$database = new Database();
|
||||
|
||||
|
||||
// Validate the post data
|
||||
if($core->validate_post($_POST) == true)
|
||||
{
|
||||
|
||||
// First create the database, then create tables, then write config file
|
||||
if($database->create_database($_POST) == false) {
|
||||
$message = $core->show_message('error',"The database could not be created, please verify your settings.");
|
||||
} else if ($database->create_tables($_POST) == false) {
|
||||
$message = $core->show_message('error',"The database tables could not be created, please verify your settings.");
|
||||
} else if ($core->write_config($_POST) == false) {
|
||||
$message = $core->show_message('error',"The database configuration file could not be written, please chmod /application/config/database.php file to 777");
|
||||
}
|
||||
|
||||
if ($core->write_configfile($_POST) == false) {
|
||||
$message = $core->show_message('error',"The config configuration file could not be written, please chmod /application/config/config.php file to 777");
|
||||
}
|
||||
|
||||
// If no errors, redirect to registration page
|
||||
if(!isset($message)) {
|
||||
sleep(1);
|
||||
$ch = curl_init();
|
||||
$protocol=((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
|
||||
list($realHost,)=explode(':',$_SERVER['HTTP_HOST']);
|
||||
$cloudlog_url=$protocol."://".$realHost.":".$_SERVER['SERVER_PORT'];
|
||||
curl_setopt($ch, CURLOPT_URL,$cloudlog_url);
|
||||
curl_setopt($ch, CURLOPT_VERBOSE, 0);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
$result = curl_exec($ch);
|
||||
curl_setopt($ch, CURLOPT_URL,$cloudlog_url."/index.php/update/dxcc");
|
||||
$result = curl_exec($ch);
|
||||
delDir(getcwd());
|
||||
header('Location: '.$protocol."://".$_SERVER['HTTP_HOST'].$_POST['directory']);
|
||||
echo "<h1>Install successful</h1>";
|
||||
echo "<p>Please delete the install folder";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$message = $core->show_message('error','Not all fields have been filled in correctly. The host, username, password, and database name are required.');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>Install | Cloudlog</title>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-size: 75%;
|
||||
font-family: Helvetica,Arial,sans-serif;
|
||||
width: 300px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
input, label {
|
||||
display: block;
|
||||
font-size: 18px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
label {
|
||||
margin-top: 20px;
|
||||
}
|
||||
input.input_text {
|
||||
width: 270px;
|
||||
}
|
||||
input#submit {
|
||||
margin: 25px auto 0;
|
||||
font-size: 25px;
|
||||
}
|
||||
fieldset {
|
||||
padding: 15px;
|
||||
}
|
||||
legend {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.error {
|
||||
background: #ffd1d1;
|
||||
border: 1px solid #ff5858;
|
||||
padding: 4px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Install Cloudlog</h1>
|
||||
<?php if(is_writable($db_config_path)):?>
|
||||
|
||||
<?php if(isset($message)) {echo '<p class="error">' . $message . '</p>';}?>
|
||||
|
||||
<form id="install_form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
|
||||
|
||||
<fieldset>
|
||||
<legend>Configuration Settings</legend>
|
||||
<label for="directory">Directory</label><input type="text" id="directory" value="<?php echo str_replace("/install/", "", $_SERVER['REQUEST_URI']); ?>" class="input_text" name="directory" />
|
||||
<label for="websiteurl">Website URL</label><input type="text" id="websiteurl" value="<?php echo $_SERVER['REQUEST_SCHEME']; ?>://<?php echo $_SERVER['HTTP_HOST'].str_replace("/install/", "", $_SERVER['REQUEST_URI']); ?>" class="input_text" name="websiteurl" />
|
||||
<label for="locator">Default Gridsquare</label><input type="text" id="locator" value="IO91JS" class="input_text" name="locator" />
|
||||
</fieldset>
|
||||
|
||||
<br>
|
||||
|
||||
<fieldset>
|
||||
<legend>Database settings</legend>
|
||||
<label for="hostname">Hostname</label><input type="text" id="hostname" value="localhost" class="input_text" name="hostname" />
|
||||
<label for="username">Username</label><input type="text" id="username" class="input_text" name="username" />
|
||||
<label for="password">Password</label><input type="password" id="password" class="input_text" name="password" />
|
||||
<label for="database">Database Name</label><input type="text" id="database" class="input_text" name="database" />
|
||||
<input type="submit" value="Install" id="submit" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<h2>Demo User Account</h2>
|
||||
|
||||
<ul>
|
||||
<li>Username: m0abc</li>
|
||||
<li>Password: demo</li>
|
||||
</ul>
|
||||
|
||||
<p>When you login create a new admin account and delete the m0abc user account.</p>
|
||||
|
||||
<?php else: ?>
|
||||
<p class="error">Please make the /application/config/ folder writable. <strong>Example</strong>:<br /><br /><code>chmod -R 777 /application/config/</code><br /><br /><i>Don't forget to restore the permissions afterwards.</i></p>
|
||||
<?php endif; ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
397502
updates/clublog_scp.txt
397502
updates/clublog_scp.txt
文件差异内容过多而无法显示
加载差异
正在加载…
在新工单中引用