<?php
/*******************************************************************************

    Author ......... Jimmy Conner
    Contact ........ jimmy@sqmail.org
    Home Site ...... http://www.sqmail.org/
    Program ........ Address Add
    Version ........ 2.1
    Purpose ........ Allows you to add the From address to the address book

*******************************************************************************/


function clean($source) {
//   $remove = 'javascript:|onchange|onselect|onfocus|onblur|alert|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup|javascript';
   $source = strip_tags($source);
//   $source = stripslashes(preg_replace("/$remove/i", '', $source));
   $source = str_replace ( array ('|', '+', '"', "'", '<', '>', ':', '!', '(', ')', '\\', '/', '?', '='), '', $source);

//   $source = htmlspecialchars($source, ENT_QUOTES);
   $source = strip_tags($source);

   return $source;
}

?>