19 lines
486 B
PHP
19 lines
486 B
PHP
<?php
|
|
|
|
$data = array_merge($data, [
|
|
'title' => 'Novaconium Message Page',
|
|
'pageclass' => 'novaconium'
|
|
]);
|
|
|
|
if ( empty($session->get('username'))) {
|
|
$redirect->url('/novaconium/login');
|
|
$messages->error('You are not loggedin');
|
|
makeitso();
|
|
}
|
|
|
|
$messageid = $router->parameters['id'];
|
|
$query = "SELECT id, name, email, message, created, unread FROM contactForm WHERE id = '$messageid'";
|
|
|
|
$data['themessage'] = $db->getRow($query);
|
|
|
|
view('@novacore/editmessage', $data); |