This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//jQuery on Event | |
$('.dynamic_content_area').on('click', '.back-button', function(){ | |
property_id = ''; | |
loadNewContent('multi', current_page, sorting_location, sorting_area); | |
$('.dynamic_pagination').fadeIn(500); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //I am using this for an AJAX call, and checking my responses against the success or failure that it is echoing back. | |
//create array of data to be posted | |
$full_name = stripslashes(trim(strip_tags($_POST['full_name']))); | |
$email_address = stripslashes(trim(strip_tags($_POST['email_address']))); | |
if(!empty($full_name) && !empty($email_address)){ | |
$post_data['MID'] = "10488043"; | |
$post_data['Full Name'] = $full_name; | |
$post_data['Email Address'] = $email_address; | |
$post_data['thx'] = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$api_key = 'API KEY'; | |
$prefix = 'usX'; //at the end of your API Key, there is a -us1, or us2, etc......you want the prefix to be the us2 for examples. | |
//Let's go Get a LIST ID for the subscriber list we are going to be putting content in. | |
$get_lists = 'http://'.$prefix.'.api.mailchimp.com/1.3/?method=lists'; | |
$data = array(); | |
$data['apikey'] = $api_key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$num = (round((count($orig_num) / 2), 0, PHP_ROUND_HALF_EVEN) * 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!empty($_FILES['resume']['name'])){ // check to see if we have a photo and a user clicks submit | |
$accept_file_formats = array( | |
'image/jpg', | |
'image/jpeg', | |
'image/png', | |
'image/gif', | |
'text/rtf', //.rtf file | |
'text/plain', //.txt file | |
'application/msword', //.doc file | |
'application/vnd.openxmlformats-officedocument.wordprocessingml.document', //.docx file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/m/.*$ | |
RewriteCond %{HTTP_ACCEPT} "text/vnd.wap.wml|application/vnd.wap.xhtml+xml" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "wapp|wapr|webc|winw|winw|xda|xda-" [NC,OR] |
OlderNewer