mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 18:24:25 +00:00
e384826aea
- fixes missing () from num_rows in authenticate user function - removes passwordhash library in favor of built in PHP password_hash and password_verify functions - uppercase all class filenames - add new CLI error templates, move HTML error templates - update mimes file to latest version - update routes to latest version
25 lines
510 B
PHP
25 lines
510 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/*
|
|
|
|
Widgets are designed to be addons to use around the internet.
|
|
|
|
*/
|
|
|
|
class Widgets extends CI_Controller {
|
|
|
|
public function index()
|
|
{
|
|
// Show a help page
|
|
}
|
|
|
|
|
|
// Can be used to embed last 11 QSOs in a iframe or javascript include.
|
|
public function qsos() {
|
|
$this->load->model('logbook_model');
|
|
|
|
$data['last_five_qsos'] = $this->logbook_model->get_last_qsos('11');
|
|
|
|
$this->load->view('widgets/qsos', $data);
|
|
}
|
|
} |