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,22 +1,22 @@
<?php
$data = array_merge($data, [
$ctx->withData([
'title' => 'Novaconium Messages',
'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, name, email, LEFT(message, 40) AS message, created, unread FROM contactForm";
$matched = $db->getRows($query);
$matched = $ctx->db->getRows($query);
$data['messages'] = $matched;
$ctx->withData(['messages' => $matched]);
view('@novacore/messages', $data);
view('@novacore/messages', $ctx->data);