Exemplo n.º 1
0
 function saveMessage()
 {
     //admins should be able to set a global message to All otherwise any other message must be attached to a group
     if (!empty($_REQUEST['description'])) {
         $text = htmlspecialchars($_REQUEST['description']);
         $securitygroup_id = htmlspecialchars($_REQUEST['securitygroup_id']);
         //allow for bold and italic user tags
         //$text = preg_replace('/&amp;lt;(\/*[bi])&amp;gt;/i','<$1>', $text);
         SecurityGroupMessage::saveMessage($text, $securitygroup_id);
     }
 }