-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
1,461 additions
and
576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | ||
|
||
/* | ||
Controller to interact with the Clublog API | ||
*/ | ||
|
||
class Components extends CI_Controller { | ||
|
||
function __construct() { | ||
parent::__construct(); | ||
|
||
$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() { | ||
$url = 'https://oscarwatch.org/scripts/hamsat_json.php'; | ||
$json = file_get_contents($url); | ||
$data['rovedata'] = json_decode($json, true); | ||
|
||
// load view | ||
$this->load->view('components/hamsat/table', $data); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | ||
|
||
/* | ||
Controller to interact with the Clublog API | ||
*/ | ||
|
||
class Hamsat extends CI_Controller { | ||
|
||
function __construct() { | ||
parent::__construct(); | ||
|
||
$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() { | ||
// Load public view | ||
$data['page_title'] = "Hamsat - Satellite Roving"; | ||
$this->load->view('interface_assets/header', $data); | ||
$this->load->view('/hamsat/index'); | ||
$this->load->view('interface_assets/footer'); | ||
} | ||
} |
Oops, something went wrong.