$hidecontact = $_REQUEST['hidecontact'] == 'Y' ? 1 : 0; $printcontact = $_REQUEST['printcontact'] == 'Y' ? 1 : 0; $title = safeinput($_REQUEST['title']); $tinytitle = safeinput($_REQUEST['tinytitle']); $audience = $_REQUEST['audience']; $descr = safeinput($_REQUEST['descr']); $printdescr = safeinput($_REQUEST['printdescr']); $newsflash = safeinput($_REQUEST['newsflash']); $dates = $_REQUEST['dates']; $eventtime = $_REQUEST['eventtime']; $eventduration = $_REQUEST['eventduration']; $timedetails = $_REQUEST['timedetails']; $locname = safeinput($_REQUEST['locname']); $address = safeinput($_REQUEST['address']); $addressverified = $_REQUEST['addressverified']; $locdetails = safeinput($_REQUEST['locdetails']); $area = $_REQUEST['area']; $id = unobscure($_REQUEST['edit']); $comment = wordwrap(stripslashes($_REQUEST['comment']), 60); $highlight = $_REQUEST['highlight']; if ($highlight == '1') { $highlight = 1; } else { $highlight = 0; } # parse the $dates value, and convert it to a list of specific dates $daylist = repeatdates($dates); # retrieve the old image name (if any), and review status $oldimage = ''; $record = ''; if ($id) {
return sum; } </script> <?php # Do we have parameters for a new message? if ($admin) { $name = 'Shift Calendar Crew'; } else { if ($organizer) { $name = $event['name']; } else { $name = $_REQUEST['name']; } } $subject = safeinput($_REQUEST['subject']); $msg = safeinput($_REQUEST['msg']); if ($name != "" && $subject != "" && $_REQUEST["msg"] != "") { # Guard against spam. $spamdict = array("http", "online", "pill", "drug", "tablet", "antidepression", "medication", "prescription", "money", "viagra", "viagara", "vi@gra", "oxycontin", "oxycodone", "puppy", "veterinary", "pharmacy", "gambling", "casino", "cialis", "ambien", "bbw", "xanax", "rx", "valium"); $spamminess = 0; $combined = "{$name}{$subject}{$msg}"; if (preg_match("/<[Aa][[:space:]]/", $combined)) { $spamminess += 100; } $nonascii = preg_split("/[^\n-~]/", $combined); $spamminess += count($nonascii) * 300 / strlen($combined); foreach ($spamdict as $spamword) { $found = stripos($combined, $spamword); while ($found !== FALSE) { $spamminess += 60; $found = stripos($combined, $spamword, $found + 1);