- ","
- ",$content);
echo '
ini_set('date.timezone', 'America/New_York'); $today = strtotime(date('m/d/Y 05:00:00')); // db config $db_host = "localhost"; $db_user = "1027599_rriav"; $db_pwd = "s2SV2aRctgbDqCuL"; $database = "1027599_rriav"; $main_db = new mysqli($db_host, $db_user, $db_pwd, $database); $recaptcha_site_key = '6Lcufi4UAAAAABBanCR8zxiOEDTmYKISllJw8e_5'; $recaptcha_secret = '6Lcufi4UAAAAABnfj9xrEJ61Ib45C3HyEZ5nSfk8'; $debug=1; //set timezone date_default_timezone_set('America/New_York'); function db_query($sql, $return_position = false) { global $main_db; $return = array(); $result = $main_db->query($sql); if ($result) { while($row = $result->fetch_assoc()){ $return[] = $row; } } if (is_numeric($return_position)) return @$return[$return_position]; else return $return; } $cdn="https://e0c4603e0ae9e2d55527-0cc62ff2f0a9fe74c192530ba735e808.ssl.cf2.rackcdn.com"; //require_once($_SERVER['DOCUMENT_ROOT'].'/assets/plugins/facebook/facebook.php'); //$facebook_api = new Facebook(array("appId" => '464039380296913',"secret" => '68ba2a0837e144d8b0a80a04754d7fd8')); function output_url($page) { global $main_db; if ($page['redirect_type']=="internal") { return "href='".$page['redirect_url']."'"; } elseif ($page['redirect_type']=="external") { return "href='".$page['redirect_url']."' target='_blank'"; } else { $parent_id=$page['parent']; $nested_page=$page; $nested_url="/".$nested_page['slug']; while ($parent_id>0) { $nestedq="select * from pages where hide_page<>1 and deleted<>1 and id=".$nested_page['parent']; $nestedr=$main_db->query($nestedq); if ($nested_page=$nestedr->fetch_assoc()) { $parent_id=$nested_page['parent']; $nested_url="/".$nested_page['slug'].$nested_url; } } $nested_url=$nested_url."/"; return "href='".$nested_url."'"; } } function clean($string) { $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens. $string = preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars. $string=strtolower($string); return preg_replace('/-+/', '-', $string); // Replaces multiple hyphens with single one. } function output_mobile_nav($page, $level=1) { global $main_db; $subnavq = "SELECT * from pages where hide_page<>1 and deleted<>1 and parent=".$page['id']." order by sort"; //echo "select * from pages where hide_page<>1 and deleted<>1 and parent=".$page['id']." order by sort"; $subnavr = db_query($subnavq); //$subnav_count=$subnavr->num_rows; $url=array(); $liclass=''; $icon=""; $uri=explode("/",$_SERVER['REQUEST_URI']); $uricount=count($uri)-2; if (empty($subnavr)) { //echo $uri[$uricount]; echo "
'.date('M j', strtotime($tweet->created_at)).': '.twitter_hashtag_link(twitter_username_link(find_hyperlinks($tweet->text))).'
'; if ($limiter == $limit) { break; } } return $output; } function facebook_hashtag_link($s) { return preg_replace('/#([\\d\\w]+)/', '$0', $s); } */ ?> // smtp mail require_once("postmark/Postmark.php"); define('POSTMARKAPP_API_KEY', '559b8db5-4de3-40b5-b177-dd7b32036782'); define('POSTMARKAPP_MAIL_FROM_ADDRESS', 'web@m2columbus.com'); define('POSTMARKAPP_MAIL_FROM_NAME', 'RRIA'); function postmark_mail($to, $subject, $message, $replyto = false) { // init $email = new Mail_Postmark(); // subject $email->subject(stripslashes($subject)); // message $email->messageHtml(stripslashes($message)); // to $to = explode(",", $to); foreach ($to as $e) $email->addTo(trim($e)); // reply to if ($replyto) $email->replyTo($replyto); // send $mail = $email->send(); } ?>