16 lines
368 B
PHP
16 lines
368 B
PHP
<?php
|
|
$data['title'] = 'Novaconium Pages';
|
|
|
|
if ( empty($session->get('username'))) {
|
|
$redirect->url('/novaconium/login');
|
|
$messages->error('You are not loggedin');
|
|
makeitso();
|
|
}
|
|
|
|
// Get the pages
|
|
$query = "SELECT id, title, created, updated, draft FROM pages";
|
|
$matched = $db->getRows($query);
|
|
|
|
$data['pages'] = $matched;
|
|
|
|
view('@novacore/pages', $data); |