15 lines
392 B
PHP
15 lines
392 B
PHP
<?php
|
|
|
|
if ( empty($session->get('username'))) {
|
|
$redirect->url('/novaconium/login');
|
|
$messages->error('You are not loggedin');
|
|
makeitso();
|
|
}
|
|
|
|
$messageid = $router->parameters['id'];
|
|
$query="DELETE FROM contactForm WHERE `contactForm`.`id` = ?";
|
|
$db->query($query, [$messageid]);
|
|
|
|
$redirect->url('/novaconium/messages');
|
|
$messages->notice("Removed Message $messageid");
|
|
makeitso(); |