diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index 70650677..21498327 100755 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -9,6 +9,15 @@ TODO class QSO extends CI_Controller { + function __construct() + { + parent::__construct(); + $this->lang->load('qso'); + + $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'); } + } + public function index() { diff --git a/application/language/english/general_words_lang.php b/application/language/english/general_words_lang.php index 976591af..22543e08 100644 --- a/application/language/english/general_words_lang.php +++ b/application/language/english/general_words_lang.php @@ -7,11 +7,18 @@ $lang['error_no_active_station_profile'] = 'Attention: you need to set an active $lang['notice_turn_the_radio_on'] = 'You have made no QSOs today; time to turn on the radio!'; $lang['general_word_important'] = 'Important'; +$lang['general_word_info'] = 'Info'; $lang['general_word_date'] = 'Date'; $lang['general_word_time'] = 'Time'; $lang['general_word_none'] = 'None'; $lang['general_word_name'] = 'Name'; +$lang['general_word_location'] = 'Location'; +$lang['general_word_comment'] = 'Comment'; +$lang['general_word_general'] = 'General'; +$lang['general_word_satellite'] = 'Satellite'; +$lang['general_word_satellite_short'] = 'Sat'; +$lang['general_word_notes'] = 'Notes'; $lang['general_word_comment'] = 'Comment'; $lang['general_word_total'] = 'Total'; @@ -22,25 +29,57 @@ $lang['general_word_worked'] = 'Worked'; $lang['general_word_confirmed'] = 'Confirmed'; $lang['general_word_needed'] = 'Needed'; +$lang['general_word_no'] = 'No'; +$lang['general_word_yes'] = 'Yes'; +$lang['general_word_method'] = 'Method'; + $lang['general_word_sent'] = 'Sent'; $lang['general_word_received'] = 'Received'; $lang['general_word_requested'] = 'Requested'; $lang['general_word_qslcards'] = 'QSL Cards'; +$lang['general_word_qslcard_direct'] = 'Direct'; +$lang['general_word_qslcard_bureau'] = 'Bureau'; +$lang['general_word_qslcard_via'] = 'Via'; +// Cloudlog Terms +$lang['cloudlog_station_profile'] = 'Station Profile'; + // ham radio terms +$lang['gen_hamradio_qso'] = 'QSO'; +$lang['gen_hamradio_station'] = 'Station'; + $lang['gen_hamradio_call'] = 'Call'; $lang['gen_hamradio_callsign'] = 'Callsign'; $lang['gen_hamradio_mode'] = 'Mode'; $lang['gen_hamradio_rst_sent'] = 'Sent'; $lang['gen_hamradio_rst_recv'] = 'Recv\'d'; $lang['gen_hamradio_band'] = 'Band'; +$lang['gen_hamradio_band_rx'] = 'Band (RX)'; $lang['gen_hamradio_frequency'] = 'Frequency'; +$lang['gen_hamradio_frequency_rx'] = 'Frequency (RX)'; $lang['gen_hamradio_radio'] = 'Radio'; $lang['gen_hamradio_rsts'] = 'RST (S)'; $lang['gen_hamradio_rstr'] = 'RST (R)'; $lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)'; $lang['gen_hamradio_exchange_recv_short'] = 'Exch (R)'; +$lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_locator'] = 'Locator'; +$lang['gen_hamradio_transmit_power'] = 'Transmit Power (W)'; +$lang['gen_hamradio_propagation_mode'] = 'Propagation Mode'; + +$lang['gen_hamradio_satellite_name'] = 'Satellite Name'; +$lang['gen_hamradio_satellite_mode'] = 'Satellite Mode'; + +$lang['gen_hamradio_cq_zone'] = 'CQ Zone'; +$lang['gen_hamradio_dxcc'] = 'DXCC'; +$lang['gen_hamradio_usa_state'] = 'USA State'; +$lang['gen_hamradio_iota_reference'] = 'IOTA Reference'; +$lang['gen_hamradio_sota_reference'] = 'SOTA Reference'; +$lang['gen_hamradio_dok'] = 'DOK'; + +$lang['gen_hamradio_sig'] = 'Sig'; +$lang['gen_hamradio_sig_info'] = 'Sig Info'; // Dashboard Words $lang['dashboard_you_have_had'] = 'You have had'; diff --git a/application/language/english/qso_lang.php b/application/language/english/qso_lang.php new file mode 100644 index 00000000..fa9a044d --- /dev/null +++ b/application/language/english/qso_lang.php @@ -0,0 +1,25 @@ + @@ -41,12 +41,12 @@
- + >
- + >
@@ -60,14 +60,14 @@
- +
- + @@ -122,32 +122,32 @@
- +
- +
- +
- +
- +
@@ -155,7 +155,7 @@
- +
@@ -166,7 +166,7 @@
- + - + result() as $row) { ?> @@ -185,17 +185,17 @@
- +
- +
- + - Give power value in Watts. Include only numbers in the input. + lang->line('qso_transmit_power_helptext'); ?>
- +
- + @@ -348,7 +348,7 @@
- + - For example: GM/NS-001 + lang->line('qso_sota_ref_helptext'); ?>
- + - For example: WWFF or POTA + lang->line('qso_sig_helptext'); ?>
- + - For example: DLFF-0029 + lang->line('qso_sig_info_helptext'); ?>
- + - For example: Q03 + lang->line('qso_dok_helptext'); ?>
- + @@ -397,7 +397,7 @@
- + @@ -408,10 +408,10 @@
- +
@@ -420,29 +420,29 @@
- +
- +
- +
@@ -457,8 +457,8 @@
- - + +
@@ -481,20 +481,20 @@
-

QSO Map

+

lang->line('qso_title_qso_map'); ?>

-

Suggestions

+

lang->line('qso_title_suggestions'); ?>

-

Previous Contacts

+

lang->line('qso_title_pervious_contacts'); ?>

@@ -503,12 +503,12 @@
- - - - - - + + + + + +
Date/TimeCallModeSentRecv'dBandlang->line('general_word_date'); ?>/lang->line('general_word_time'); ?>lang->line('gen_hamradio_call'); ?>lang->line('gen_hamradio_mode'); ?>lang->line('gen_hamradio_rsts'); ?>lang->line('gen_hamradio_rstr'); ?>lang->line('gen_hamradio_band'); ?>