<?php
$system->error('This feature has been disabled in demo mode') if $system->config('demo');
$system->db->do('DELETE FROM notices');
my $insert = $system->db->prepare('INSERT INTO notices VALUES (?,?)');
foreach my $type ('email','log')
{
foreach my $notice ((ref($system->param($type)) eq 'ARRAY') ? @{$system->param($type)} : ($system->param($type)))
{
$insert->execute($notice,$type);
}
}
$insert->finish;
$system->redirect;
?>