alert('".str_replace("\n","\\n",$alertstr)."');\n"; } $exploits = "/(content-type|bcc:|cc:|document.cookie|onclick|onload|javascript|alert)/i"; $profanity = "/(beastial|bestial|blowjob|clit|cum|cunilingus|cunillingus|cunnilingus|cunt|ejaculate|fag|felatio|fellatio|fuck|fuk|fuks|gangbang|gangbanged|gangbangs|hotsex|jism|jiz|orgasim|orgasims|orgasm|orgasms|phonesex|phuk|phuq|porn|pussies|pussy|spunk|xxx)/i"; $spamwords = "/(viagra|phentermine|tramadol|adipex|advai|alprazolam|ambien|ambian|amoxicillin|antivert|blackjack|backgammon|texas|holdem|poker|carisoprodol|ciara|ciprofloxacin|debt|dating|porn)/i"; $bots = "/(Indy|Blaiz|Java|libwww-perl|Python|OutfoxBot|User-Agent|PycURL|AlphaServer)/i"; if (preg_match($bots, $_SERVER['HTTP_USER_AGENT'])) { jsalert("Email not sent. Please check all fields and try again."); die; } foreach ($_POST as $key => $val) { $c[$key] = clean($val); if (preg_match($exploits, $val)) { exit("

Email not sent. Please check all fields and try again.

"); } elseif (preg_match($profanity, $val) || preg_match($spamwords, $val)) { exit("

Email not sent. Please check all fields and try again.

"); } } $show_form = true; $error_msg = NULL; if (isset($c['submit'])) { if (empty($c['name']) || empty($c['email']) || empty($c['phone'])) { $error_msg .= "Name, e-mail and phone are required fields. \n"; } elseif (strlen($c['name']) > 50) { $error_msg .= "The name field is limited to 50 characters.\n"; } elseif (!ereg("^[A-Za-z' -]*$", $c['name'])) { $error_msg .= "The name field can only contain letters. \n"; } elseif (!ereg("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,6})$",strtolower($c['email']))) { $error_msg .= "Please supply a valid e-mail address. \n"; } if ($error_msg == NULL) { $show_form = false; if (!empty($c['url']) && !ereg("^(http|https)", $c['url'])) { $c['url'] = "http://" . $c['url']; } $subject = "CSS Web contact form"; $message = "The following contact form was submitted: \n\n"; foreach ($c as $key => $val) { if ($key != "submit") { $message .= ucwords($key) . ": $val \n"; if ($key == "name") { $subject .= ": $val"; } } } $message .= "\n"; $message .= "IP: {$_SERVER['REMOTE_ADDR']} \n"; $message .= "Browser: {$_SERVER['HTTP_USER_AGENT']}"; if (strstr($_SERVER['SERVER_SOFTWARE'], "Win")) { $headers = "From: info@cityspacesuites.com \n"; $headers .= "Reply-To: {$c['email']}"; } else { $headers = "From: City Space Suites \n"; $headers .= "Reply-To: {$c['email']}"; } $recipient = "info@cityspacesuites.com"; if (mail($recipient,$subject,$message,$headers)) { jsalert("Your mail was successfully sent."); $c = NULL; } else { jsalert("Your mail could not be sent this time. Please try again, or send email to matt@cityspacesuites.com."); } } } if (!isset($c['submit']) || $show_form == true) { function get_data($var) { global $c; if (isset($c[$var])) { echo $c[$var]; } } if ($error_msg != NULL) { jsalert($error_msg); } ?>
CONTACT

If you have any questions and/or would like to schedule a tour, please call or email our
Leasing Agent at (646) 530-4863, email info@cityspacesuites.com

  Broadway/ Union Square

Broadway/ Union Square Location 817 Broadway, 5th and 10th floors
NEW YORK, N.Y. 10003
(2 blocks South of Union Square)

Subways/Buses
Subway to Broadway/ Union Square Location VIEW MAP


  Chelsea

Chelsea Location 138 West 25th Street, 10th floor
NEW YORK, N.Y. 10001
(walking distance from Penn Station)


Subways/Buses
Subway to Chelsea Location VIEW MAP