g with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ($string='') { //Windows to *nix $string = str_replace ("\r\n" , "\n" , $string); //Mac to *nix $string = str_replace ("\r" , "\n" , $string); //TABs $string = str_replace ("\t" , " " , $string); //NULL BYTE $string = str_replace ("\0" , "" , $string); //Vertical TABs $string = str_replace ("\x0B" , "" , $string); //Multiple white-space chars //$string = preg_replace ('#[\s]+#i', ' ' , $string); $string = trim ($string); return $string; } /** * Clean a string of all white-space chars, except simple space only once itals 0 equals not and 1 = yes $ALLOW_EMPTY_USERAGENT = 0; $ALLOW_FOREIGN_REFERER = 0; $email_tpl_types = array( '1' => _L('Emailer'), '2' => _L('Link Owner Notif.'), '3' => _L('Email and Add Link')); $payment_um = array('1' => _L('Month'),'2' => _L('Trimester'), '3' => _L('Semester'), '4' => _L('Year'), '5' => _L('Unlimited')); $link_type_int = array( 'none' => 0, 'free' => 1, 'normal' => 2, 'reciprocal' => 3, 'featured' => 4); $link_type_str = array( 0 => _L('None'), 1 => _L('Free'), 2 => _L('Normal'), 3 => _L('Reciprocal'), 4 => _L('Featured')); $notif_msg = array( 'submit' => array( 'SUBJECT' => 'New link submited at {MY_SITE_URL}', "BODY" => "Title: {LINK_TITLE}\n" . "URL: {LINK_URL}\n" . "PageRank: {LINK_PAGERANK}\n" . "Description:\n {LINK_DESCRIPTION}\n" . "Owner Name: {LINK_OWNER_NAME}\n" . "Owner Email: {LINK_OWNER_EMAIL}\n" .