Changed variables.

This commit is contained in:
2026-07-04 07:43:33 -07:00
parent 7ee47a0b1e
commit 4484f88d8d
21 changed files with 197 additions and 197 deletions
+7 -7
View File
@@ -1,21 +1,21 @@
<?php
$data = array_merge($data, [
$ctx->withData([
'title' => 'Novaconium Pages',
'pageclass' => 'novaconium',
'pageid' => 'controlPanel'
]);
if ( empty($session->get('username'))) {
$redirect->url('/novaconium/login');
$messages->error('You are not loggedin');
if ( empty($ctx->session->get('username'))) {
$ctx->redirect->url('/novaconium/login');
$ctx->messages->error('You are not loggedin');
makeitso();
}
// Get the pages
$query = "SELECT id, title, created, updated, draft FROM pages";
$matched = $db->getRows($query);
$matched = $ctx->db->getRows($query);
$data['pages'] = $matched;
$ctx->withData(['pages' => $matched]);
view('@novacore/pages', $data);
view('@novacore/pages', $ctx->data);