" content="">';$showadcanon = '';$canonical = ''; $georegion = "geo.region";$meta_geo_region = "a";$xcountries = array( '63' =>'Afghanistan', '225943' =>'Åland', '64' =>'Albania', '59' =>'Algeria', '229' =>'American Samoa', '108' =>'Andorra', '109' =>'Angola', '230' =>'Anguilla', '231' =>'Antarctica', '110' =>'Antigua and Barbuda', '44' =>'Argentina', '60' =>'Armenia', '212' =>'Aruba', '25713' =>'Asia', '65' =>'Australia', '32' =>'Austria', '111' =>'Azerbaijan', '112' =>'Bahamas', '23' =>'Bahrain', '66' =>'Bangladesh', '113' =>'Barbados', '67' =>'Belarus', '115' =>'Belgium', '116' =>'Belize', '68' =>'Benin', '31' =>'Bermuda', '117' =>'Bhutan', '52' =>'Bolivia', '225945' =>'Bonaire', '118' =>'Bosnia and Herzegovina' , '69' =>'Botswana', '42' =>'Brazil', '232' =>'British Virgin Islands', '29' =>'Brunei', '119' =>'Bulgaria', '70' =>'Burkina Faso', '121' =>'Burma', '122' =>'Burundi', '71' =>'Cambodia', '123' =>'Cameroon', '18' =>'Canada', '124' =>'Cape Verde', '213' =>'Cayman Islands', '72' =>'Central African Republic', '125' =>'Chad', '73' =>'Chile', '9' =>'China', '225946' =>'Cocos Islands and Keeling Islands', '45' =>'Colombia', '126' =>'Comoros', '214' =>'Cook Islands', '127' =>'Costa Rica', '76' =>'Croatia', '129' =>'Cuba', '130' =>'Cyprus', '107' =>'Czech Republic', '131' =>'Denmark', '77' =>'Djibouti', '132' =>'Dominica', '133' =>'Dominican Republic', '74' =>'DR Congo', '134' =>'East Timor', '135' =>'Ecuador', '27' =>'Egypt', '136' =>'El Salvador', '137' =>'Equatorial Guinea', '138' =>'Eritrea', '58' =>'Estonia', '57' =>'Ethiopia', '25714' =>'Europe', '25717' =>'European Union', '216' =>'Falkland Islands', '217' =>'Faroe Islands', '139' =>'Fiji Islands', '28' =>'Finland', '43' =>'France', '218' =>'French Polynesia', '140' =>'Gabon', '141' =>'Gambia', '61' =>'Georgia', '25' =>'Germany', '142' =>'Ghana', '219' =>'Gibraltar', '78' =>'Greece', '220' =>'Greenland', '143' =>'Grenada', '187' =>'Grenadines', '221' =>'Guam', '144' =>'Guatemala', '233' =>'Guernsey and Alderney', '234' =>'Guinea', '79' =>'Guinea-Bissau', '25721' =>'Gulf', '145' =>'Guyana', '146' =>'Haiti', '147' =>'Honduras', '16' =>'Hong Kong', '80' =>'Hungary', '83' =>'Iceland', '15' =>'India', '20' =>'Indonesia', '41' =>'Iran', '81' =>'Iraq', '82' =>'Ireland', '235' =>'Isle of Man', '84' =>'Israel', '40' =>'Italy', '128' =>'Ivory Coast', '148' =>'Jamaica', '149' =>'Japan', '225947' =>'Jersey', '150' =>'Jordan', '85' =>'Kazakhstan', '54' =>'Kenya', '151' =>'Kiribati', '236' =>'Kosovo', '33' =>'Kuwait', '155' =>'Kyrgyzstan', '156' =>'Laos', '157' =>'Latvia', '158' =>'Lebanon', '86' =>'Lesotho', '159' =>'Liberia', '160' =>'Libya', '161' =>'Liechtenstein', '37' =>'Lithuania', '39' =>'Luxembourg', '223' =>'Macau', '162' =>'Macedonia', '163' =>'Madagascar', '87' =>'Malawi', '30' =>'Malaysia', '164' =>'Maldives', '165' =>'Mali', '166' =>'Malta', '167' =>'Marshall Islands', '238' =>'Martinique', '168' =>'Mauritania', '169' =>'Mauritius', '240' =>'Mayotte', '88' =>'Mexico', '170' =>'Micronesia', '89' =>'Moldova', '171' =>'Monaco', '172' =>'Mongolia', '90' =>'Montenegro', '241' =>'Montserrat', '173' =>'Morocco', '25719' =>'Middle East', '174' =>'Mozambique', '120' =>'Myanmar', '175' =>'Namibia', '176' =>'Nauru', '177' =>'Nepal', '17' =>'Netherlands', '243' =>'Netherlands Antilles', '244' =>'New-Caledonia', '91' =>'New Zealand', '178' =>'Nicaragua', '179' =>'Niger', '180' =>'Nigeria', '245' =>'Norfolk Island', '153' =>'North Korea', '226279' =>'Northern Ireland', '246' =>'Northern Mariana Islands', '92' =>'Norway', '14' =>'Oman', '62' =>'Pakistan', '93' =>'Palau', '222' =>'Palestine', '38' =>'Panama', '181' =>'Papua New Guinea', '182' =>'Paraguay', '183' =>'Peru', '49' =>'Philippines', '35' =>'Poland', '53' =>'Portugal', '94' =>'Puerto Rico', '21' =>'Qatar', '75' =>'Republic of the Congo', '247' =>'Reunion', '95' =>'Romania', '184' =>'Russia', '96' =>'Rwanda', '225944' =>'Saint Barthélemy', '248' =>'Saint Helena', '97' =>'Saint Kitts and Nevis', '185' =>'Saint Lucia', '249' =>'Saint Pierre and Miquelon', '186' =>'Saint Vincent and The Grenadines', '188' =>'Samoa', '189' =>'San Marino', '190' =>'São Tomé and Príncipe', '12' =>'Saudi Arabia', '25718' =>'Scandinavia', '224' =>'Scotland', '191' =>'Senegal', '98' =>'Serbia', '192' =>'Seychelles', '225948' =>'SGSSI', '193' =>'Sierra Leone', '19' =>'Singapore', '28882' =>'Slovakia', '194' =>'Slovenia', '195' =>'Solomon Islands', '22' =>'South Africa', '154' =>'South Korea', '66938' =>'South Sudan', '36' =>'Spain', '46' =>'Sri Lanka', '99' =>'Sudan', '100' =>'Suriname', '250' =>'Svalbard and Jan Mayen', '196' =>'Swaziland', '101' =>'Sweden', '102' =>'Switzerland', '48' =>'Syria', '50' =>'Taiwan', '197' =>'Tajikistan', '56' =>'Tanzania', '47' =>'Thailand', '198' =>'Togo', '251' =>'Tokelau', '199' =>'Tonga', '200' =>'Trinidad and Tobago', '201' =>'Tunisia', '24' =>'Turkey', '202' =>'Turkmenistan', '227' =>'Turks and Caicos Islands', '103' =>'Tuvalu', '11' =>'UAE', '203' =>'Uganda', '51' =>'Ukraine', '13' =>'United Kingdom', '10' =>'United States', '207' =>'Uruguay', '253' =>'US Virgin Islands', '208' =>'Uzbekistan', '104' =>'Vanuatu', '209' =>'Vatican City', '210' =>'Venezuela', '55' =>'Vietnam', '252' =>'Wallis and Futuna', '25723' =>'Western Europe', '254' =>'Western Sahara', '211' =>'Yemen', '105' =>'Zambia', '106' =>'Zimbabwe', '226285' =>'All Countries', '226287' =>'Regions', ); $xcountries2 = array( 'Côte d\'Ivoire' =>'Ivory Coast', 'Alabama' =>'United States', 'Alaska' =>'United States', 'Arkansas' =>'United States', 'California' =>'United States', 'Colorado' =>'United States', 'Connecticut' =>'United States', 'Delaware' =>'United States', 'Florida' =>'United States', 'Georgia' =>'United States', 'Hawaii' =>'United States', 'Idaho' =>'United States', 'Illinois' =>'United States', 'Indiana' =>'United States', 'Iowa' =>'United States', 'Kansas' =>'United States', 'Kentucky' =>'United States', 'Louisiana' =>'United States', 'Maine' =>'United States', 'Maryland' =>'United States', 'Massachusetts' =>'United States', 'Michigan' =>'United States', 'Minnesota' =>'United States', 'Mississippi' =>'United States', 'Missouri' =>'United States', 'Montana' =>'United States', 'Nebraska' =>'United States', 'Nevada' =>'United States', 'New Hampshire' =>'United States', 'New Jersey' =>'United States', 'New Mexico' =>'United States', 'New York' =>'United States', 'North Carolina' =>'United States', 'North Dakota' =>'United States', 'Ohio' =>'United States', 'Oklahoma' =>'United States', 'Oregon' =>'United States', 'Pennsylvania' =>'United States', 'Puerto Rico' =>'United States', 'Rhode Island' =>'United States', 'South Carolina' =>'United States', 'South Dakota' =>'United States', 'Tennessee' =>'United States', 'Texas' =>'United States', 'Utah' =>'United States', 'Vermont' =>'United States', 'Virginia' =>'United States', 'Washington' =>'United States', 'West Virginia' =>'United States', 'Wisconsin' =>'United States', 'Wyoming' =>'United States', 'Ontario' =>'Canada', 'Quebec' =>'Canada', 'Nova Scotia' =>'Canada', 'New Brunswick' =>'Canada', 'Manitoba' =>'Canada', 'British Columbia' =>'Canada', 'Prince Edward Island' =>'Canada', 'Saskatchewan' =>'Canada', 'Newfoundland and Labrador' =>'Canada', 'Northwest Territories' =>'Canada', 'Canada Yukon' =>'Canada', 'Nunavut' =>'Canada', 'Abu Dhabi' =>'UAE', 'Dubai' =>'UAE', 'Sharjah' =>'UAE', 'Ajman' =>'UAE', 'Al Ain' =>'UAE', 'Fujairah' =>'UAE', 'Ras Al Khaimah' =>'UAE', 'Umm Al Quwain' =>'UAE', 'Thailand Bangkok' =>'Thailand', 'UK Wales' =>'United Kingdom', 'Northern Ireland' =>'United Kingdom', 'UK' =>'United Kingdom' );// Name of the site$site_name = "";// The URL of the script (without trailing slashes)$script_url = "https://www.expatads.com";// The basename of the language file to use.// There should be a file with this name and ".inc.php" as extension in the "lang" directory$language = "en";// Enabled the Related Ads mod. Default 1$related_enabled = 1;// Limit related to city only. Only displays ads from related cities. Default 1$related_city_limit = 1;// Limit related ads to category only. Only displays ads from related categories and subcategories. Default 0$related_cat_limit = 1;// Limit amount of keyword results. Default 5$relate_limit = 50;// Enabled David26's Phrase Ban mod. Default: 1 for on, enter 0 to disable.$phrase_ban_enabled = 1;// ID of the default city. If u want to use a region as default,// enter the region id preceeded with a '-'. Set this to 0 and// the first city in the database will be taken as the default.$default_city = -4;// Determine how many seconds poster should delay wait before posting a new ad$post_time_limit = 0;// Determine how many seconds user should wait before send new email in showads$showad_email_time_limit = 0;// Determine how many seconds user should wait before send new email in contact$contact_email_time_limit = 0;// Determine how many seconds user should wait before send new email in advertise$advertise_email_time_limit = 0;// Automatically expire events and images after how many days.$expire_events_after = 90;$expire_images_after = 999;// Default days for which the ad will be running. You may speify// a different expiration time for each subcategory from the admin.$expire_ads_after_default = 999;// Maximum number of abuse reports after which the ads are to be deleted.// Set to 0 to disable.$max_abuse_reports = 0;// Wether to use SE friendly URLs// Requries .htaccess and mod_rewrite support$sef_urls = True;// Wether to enable the event calendar and image sharing$enable_calendar = FALSE;$enable_images = FALSE;// Wether to show the left sidebar on inner pages also$show_sidebar_always = False;// Wether to show the right sidebar$show_right_sidebar = False;// Character to use as separator in the path shown on top of the page$path_sep = " » ";// Wether to sort cats and subcats alphabetically$dir_sort = FALSE;// Number of columns in the main directory$dir_cols = 4;// Wether to show the ad count near the subcategory and main category$show_cat_adcount = False;$show_subcat_adcount = False;// Wether to sort location alphabetically$location_sort = FALSE;// Number of columns for locations$location_cols = 2;// Wether to show the number of ads near regions and cities in the right sidebar$show_region_adcount = FALSE;$show_region_adcount = FALSE;$show_region_adcount = FALSE;$show_city_adcount = FALSE;// Number of ads/events and images to show per page$ads_per_page = 15;$images_per_page = 5;// Number of picture upload fields to show in post ad page$pic_count = 6;$ad_pic_count = 6;// Maximum size of pictures (in KB)$pic_maxsize = 400;// MIME types of files that are to be accepted as images$pic_filetypes = array("image/gif", "image/jpeg", "image/pjpeg", "image/png");$image_extensions = array("gif", "jpg", "jpeg", "png");// Maximum height and width to which pictures uploaded// to the images category as well as those attached to// ads are to be resized$images_max_width = 325;$images_max_height = 325;// Thumbnail dimensions$tinythumb_max_width = 150; // Thumbnail in ad list$tinythumb_max_height = 100;$smallthumb_max_width = 160; // Left sidebar$smallthumb_max_height = 200;$thumb_max_width = 250; // Under images$thumb_max_height = 250;// The quality of the JPEG file after resizing (in %)$images_jpeg_quality = 65;// Symbol for currency to use for prices$currency = "$";// Number of custom fields. Max 10.$xfields_count = 10;// paypal currencies$paypal_currencies = array("AUD","CAD","CZK","DKK","EUR","HKD","HUF","ILS","JPY","MXN","NOK","NZD","PHP","PLN","GBP","SGD","SEK","CHF","TWD","THB","USD");// HTML to append to the end of links in the ad$link_append = " » ";// Wether to use image verification captcha for posts$image_verification = True;// Word with which the bad words are to be replaced.$badword_replacement = " ";// Number of latest ads etc. to show in the homepage. Set to 0 to disable.$latestads_count = 30;$latest_featured_ads_count = 0;$upcoming_events_count = 0;$upcoming_featured_events_count = 0;// This much number of characters will be taken from the description// as the title for an ad, if none given. Must be <= 100$generated_adtitle_length = 99;// String to be appended to generated ad titles$generated_adtitle_append = ".....";// Show list of categories in left sidebar$show_cats_in_sidebar = FALSE;// strip out unwanted meta keywords from automatic SEO keyword mod$key_strip = array(",", ";", " a ", " in ", " at ", "and", "the", "for", "with");// FuN sitemap mod url type. If you have mod_rewrite enabled and your ad urls end// with an .html extension you may change $link_type value to a 2. Example: ($link_type = 2;)// If your ads end with a slash / you may leave as default: $link_type = 1; If your host// Doesn't support mod_rewrite, use $link_type = 3; for default php based urls.$link_type = 1;// FuN sitemap mod options. If you are unfamilar with these settings you may leave default.// For more information regarding these settings view this page:// https://www.google.com/webmasters/tools/docs/en/protocol.html$change_freq = 'hourly';$priority = '1.0';// Meta keywords and description$meta_keywords = "";$meta_description = "";// If you have a forum software installed on the server, provide// the path to the forum directory from the script directory. If you// dont want to use a forum, leave the variable empty.$forum_dir = "";// Show thumbnails with ads in the category pages$ad_thumbnails = TRUE;// Show preview of ads in category pages. Specify number of characters to show. Set to 0 to disable.$ad_preview_chars = 150;// In the city list in the homepage, show cities for the currently selected region only.// Helpful if you have lots of cities and regions listed.$expand_current_region_only = FALSE;// Maximum size of the file attachment to the mailer (in KB)$contactmail_attach_maxsize = 200;// Files that should be prevented from attaching$contactmail_attach_wrongfiles = array("exe","com","bat","vbs","js","jar","scr","pif");// RSS feed - no of items and number of characters to show in the description field$rss_itemcount = 200;$rss_itemdesc_chars = 200;// Paid Promotions //$enable_promotions = FALSE;// Enable featured ads$enable_featured_ads = TRUE;// Enable extended ads (ads that run longer)$enable_extended_ads = FALSE;// Payment Gateway //// Paypal account to receive payments. $paypal_email = "advertise@expatads.com";//"seller_1351928276_biz@expatads.com";advertise@expatads.com"; //$adveriser_confirmation_mailng = 'advertise@expatads.com';// Valid paypal currecncy code for payments.// All paypal transactions will take place in this currency.$paypal_currency = "USD";// Symbol to show for the specified paypal currency.// This is what the user sees next to the prices for paid options.$paypal_currency_symbol = "$";// Admin password$admin_pass = "xxvtrafunds20xvx";// Admin options$admin_adpreview_chars = 50; $admin_ads_per_page = 50;$admin_images_per_page = 30;// Hide sidebar by default when managing posts to have more room$admin_auto_hide_sidebar = TRUE;// Ensure all these 3 variables are set to FALSE$debug = FALSE;$demo = FALSE;$sandbox_mode = FALSE;# Scroll thru ads/posts with prev/next links by city.# Default is 1, to disable set to 0$prev_next_city = 0;/*--------------------------------------------------+ | DON'T EDIT ANYTHING BELOW |+--------------------------------------------------*/// Table names$tprefix = "xzclf_";$t_countries = $tprefix . "countries";$t_cities = $tprefix . "cities";$t_areas = $tprefix . "areas";$t_cats = $tprefix . "cats";$t_subcats = $tprefix . "subcats";$t_ads = $tprefix . "ads";$t_adpics = $tprefix . "adpics";$t_events = $tprefix . "events";$t_eventpics = $tprefix . "eventpics";$t_subcatxfields = $tprefix . "subcatxfields";$t_adxfields = $tprefix . "adxfields";$t_imgs = $tprefix . "imgs";$t_imgcomments = $tprefix . "imgcomments";$t_featured = $tprefix . "featured";$t_options_featured = $tprefix . "options_featured";$t_options_extended = $tprefix . "options_extended";$t_promos_featured = $tprefix . "promos_featured";$t_promos_extended = $tprefix . "promos_extended";$t_payments = $tprefix . "payments";$t_ipns = $tprefix . "ipns";$t_ipblock = $tprefix . "ipblock";$t_phraseban = $tprefix . "phraseban";$t_searches = $tprefix . "searches";$t_searches_query = $tprefix . "searches_query";$t_settings = $tprefix . "settings";$t_flagged = $tprefix . "flagged";$t_savedads = $tprefix . "savedads";$t_email_records = $tprefix . "email_records";$t_featured_types = $tprefix . "featured_types";$t_hits = $tprefix . "hits"; $t_memcache_objects = $tprefix . "memcache_objects_new"; $t_new_ips = $tprefix . "new_ips";$t_new_ips_adv = $tprefix . "new_ips_adv";$t_ip_to_url = $tprefix . "ip_to_url";$t_ip_to_file = $tprefix . "ip_to_file";$t_stats_views = $tprefix . "stats_views";$t_hits_layer = $tprefix . "hits_layer";$t_email_notifications = $tprefix . "email_notifications";$t_currencies = $tprefix . "currencies";$t_email_ban = $tprefix . "email_ban"; $t_banwords = $tprefix . "banwords";$t_regions = $tprefix . "regions";$t_regions_ads = $tprefix . "regions_ads";$t_regions_info = $tprefix . "regions_info";$t_traffic_impression = $tprefix . "traffic_impression";$t_adv_country = $tprefix . "adv_country";$t_advertiser = $tprefix . "advertiser";$t_advertiser_pics = $tprefix . "advertiser_pics";$t_country_popup = $tprefix . "country_popup";$t_country_popup_advertise = $tprefix . "country_popup_advertise";$t_ipn_skrill = $tprefix . "ipn_skrill";$t_management_blocks = $tprefix . "management_blocks";$t_country_like_button = $tprefix . "country_like_button";$t_ads_archive = $tprefix . "ads_archive";$t_live_user_activity = $tprefix . "live_user_activity";$t_alternative_country = $tprefix . "alternative_country";$t_advertise = $tprefix . 'advertise';$t_advertise_banners = $tprefix . 'advertise_banner_sizes';$t_advertise_costs = $tprefix . 'advertise_costs';$t_advertise_duration = $tprefix . 'advertise_durations';$t_countries_options = $tprefix . 'popup_for_first_visit_countries';$t_cities_options = $tprefix . 'countries_list_with_data';$t_banner_sizes_and_blocks = $tprefix . 'advertise_banner_sizes_and_blocks';$t_advertise_files = $tprefix . 'advertise_files';$t_advertise_text = $tprefix . 'advertise_text';$t_advertise_text_defaults = $tprefix . 'advertise_text_defaults';$t_advertise_peyments = $tprefix . 'advertise_peyments';$t_bump_up_ads = $tprefix . 'bump_up_ads';$t_bump_up_countries_price = $tprefix . 'bump_up_countries_price';// Cookie names$ck_admin = "xzclf_admin";$ck_lang = "xzclf_lang";$ck_cityid = "xzclf_cityid";$ck_edit_adid = "xzclf_edit_adid";$ck_edit_isevent = "xzclf_edit_isevent";$ck_edit_codemd5 = "xzclf_edit_codemd5";$ck_admin_theme = "xzclf_admin_theme";// Data files$datafile['badwords'] = "data/badwords.dat";// Directories$datadir['adpics'] = "adpics";$datadir['adpics1'] = "adpics1";$datadir['userimgs'] = "userimgs";//function for getting ad imagefunction get_adpic_path($pic_file,$path1,$path2){ $img_src = (is_file($path1.'/'.$pic_file))? $path1.'/'.$pic_file:$path2.'/'.$pic_file; return $img_src;}//function for getting ad image thumbfunction get_adpic_thumb_path($pic_file,$path1,$path2){ $img_src = (is_file($path1.'/'.$pic_file))? $path1.'/thumb_'.$pic_file:$path2.'/thumb_'.$pic_file; return 'images/'.$img_src;}function get_adpic_large_thumb_path($pic_file,$path1,$path2){ $img_src = (is_file($path1.'/'.$pic_file))? $path1.'/large_thumb_'.$pic_file:$path2.'/large_thumb_'.$pic_file; return 'images/'.$img_src;}//function for getting ad image thumb //get group name by adid function get_region_group_name($adid) { global $t_regions_ads,$t_regions_info; $sqlp = "SELECT region_id FROM $t_regions_ads WHERE adid=".$adid.""; $resp = mysql_query($sqlp) or die($sqlp.'>>>>>1'.mysql_error()); $rowp = mysql_fetch_assoc($resp); $region_id = $rowp['region_id']; $sqln = "SELECT title FROM $t_regions_info WHERE region_id = $region_id"; $resn = mysql_query($sqln) or die($sqln.'>>>>>2'.mysql_error()); $rown = mysql_fetch_assoc($resn); return $xcityname = $rown['title']; }//function for copying file to year and month corresponding folderfunction copy_adpic_folder($file,$newfile,$file_dir,$newfile_dir,$year,$month){ if(!is_dir($newfile_dir.'/'.$year)) { mkdir($newfile_dir.'/'.$year, 0777, true); } if(!is_dir($newfile_dir.'/'.$year.'/'.$month)) { mkdir($newfile_dir.'/'.$year.'/'.$month, 0777, true); } if( exif_imagetype($file_dir.'/'.$file)!==false && is_file($file_dir.'/'.$file) && copy($file_dir.'/'.$file, $newfile_dir.'/'.$year.'/'.$month.'/'.$newfile) ) return true; return false;}//function for moving uploadet file to year and month corresponding folderfunction move_adpic_folder($file_path,$newfile,$newfile_dir,$year,$month){ if(!is_dir($newfile_dir.'/'.$year)) { mkdir($newfile_dir.'/'.$year, 0777, true); } if(!is_dir($newfile_dir.'/'.$year.'/'.$month)) { mkdir($newfile_dir.'/'.$year.'/'.$month, 0777, true); } if( exif_imagetype($file_path)!==false && is_file($file_path) && move_uploaded_file($file_path, $newfile_dir.'/'.$year.'/'.$month.'/'.$newfile) ) return true; return false;}// More settings$vbasedir = "";$custom_pages = array("terms","privacy","404error","contact");$encryptposter_sep = ">@<";// Enumeration for show email optiondefine ('EMAIL_HIDE', 0);define ('EMAIL_SHOW', 1);define ('EMAIL_USEFORM', 2);// url_pattern clean from textfunction clear_url_from_text($str=''){ return preg_replace('/[-a-zA-Z0-9@:%_\+.~#?&\/\/=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)?/im','',$str);}// Input sanitization must be done before loading the config.if (!defined('INIT_DONE')) { die("Initialization not done");}if(!defined('CONFIG_LOADED')){ // Constant to indicate if the config has been loaded define('CONFIG_LOADED', TRUE); // Start output buffering ob_start(); require_once("{$path_escape}timer.php"); $timer = new Timer(); /* Loading class for getting Brouser information */ require_once("browser.cls.php"); $user_browser_detect = new Browser; // Connect to the database $cn = mysql_connect($db_host, $db_user, $db_pass) or die("Cannot connect to DB"); mysql_select_db($db_name) or die("Error accessing DB"); // Includes the Memcached frontend for MySQL queries require_once("{$path_escape}mysql_memcached.php"); $mysql_memcached = new MySQL_Memcached(); // Dependancies require_once("{$path_escape}ipblock.inc.php"); require_once("{$path_escape}common.inc.php"); require_once("{$path_escape}calendar.cls.php");}// Contact email address$sql = "SELECT settings_value FROM $t_settings WHERE settings_name='contact_email_addr'";$tmp = mysql_query($sql) or die($sql . mysql_error());$result = mysql_fetch_array($tmp);$contact_email = $result[0];$contactmail_from = $contact_email;//goodthebest123@yahoo.com// Site email address$sql = "SELECT settings_value FROM $t_settings WHERE settings_name='site_email_addr'";$tmp = mysql_query($sql) or die($sql . mysql_error());$result = mysql_fetch_array($tmp);$site_email = $result[0];$sql = "SELECT settings_value FROM $t_settings WHERE settings_name='site_copy_email_addr'";$tmp = mysql_query($sql) or die($sql . mysql_error());$result = mysql_fetch_array($tmp);$ccemail = $result[0];// Captcha for contact form// Set true if need and false if not$contact_form_captcha = true;// Advertise email address$sql = "SELECT settings_value FROM $t_settings WHERE settings_name='advertise_email_addr'";$tmp = mysql_query($sql) or die($sql . mysql_error());$result = mysql_fetch_array($tmp);$advertise_email = $result[0];// all countries amount in USD$sql = "SELECT settings_value FROM $t_settings WHERE settings_name='all_countries_payment_amount'";$tmp = mysql_query($sql);$result = mysql_fetch_array($tmp);$all_countries_payment_amount = floatval($result[0]);//getting cities of countryfunction get_country_data($country_array_id){ global $t_cities_options; $sql = "SELECT * FROM $t_cities_options WHERE xcountries_array_id=$country_array_id"; $res = mysql_query($sql) or die($sql . mysql_error()); if($row = mysql_fetch_assoc($res)) { return $row; } return array();}// Captcha for advertise form// Set true if need and false if not$advertise_form_captcha = true;// close dislike button// set true if want to close button if user pressed it one time of false to turn off this option$cls_dislike = false;function out($var, $dump = false) { echo '
';    if ($dump)	var_dump($var);    else	print_r($var);    echo '
';}// function to detect ie browserfunction detect_ie(){ if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) { return true; } else { return false; }}function randomPassword() { $alphabet = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789"; $pass = array(); //remember to declare $pass as an array $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache for ($i = 0; $i < 6; $i++) { $n = rand(0, $alphaLength); $pass[] = $alphabet[$n]; } return implode($pass); //turn the array into a string}$queries_count = 0;function mysql_query_custom($query){ global $queries_count; $queries_count++; return mysql_query($query);}$memcache_queries_count = 0;function memcache_query_custom($query,$mem_time,$memcache_data){ global $mysql_memcached; global $memcache_queries_count; $memcache_queries_count++; return $mysql_memcached->query( $query,$mem_time,$memcache_data ); }function check_user_country_group($ip_country){ global $xcountries; $xcountries_flipped = array_flip($xcountries); $country_groups[1] = array('Hong Kong','China','Macau','Taiwan'); $country_groups[2] = array('United Kingdom','Northern Ireland','Scotland'); foreach($country_groups as $single_country_group) { if(in_array($ip_country,$single_country_group)) { foreach($single_country_group as $single_country) { $temp[] = $xcountries_flipped[$single_country]; } return implode(',',$temp); } } return false;} function detect_country_in_search($var1,$var2){ $tmp_var_1 = array_map('strtolower', $var1); $tmp_var_2 = array_map('strtolower', $var2); foreach($tmp_var_1 as $value){ if(in_array($value,$tmp_var_2)) return true; } return false; } function array_search_country_i($str,$array){ foreach($array as $key => $value) { if(stristr($str,$value)) return $key; } return false; } function counter_txt($a){ if($_SERVER['REMOTE_ADDR'] == '46.70.29.100'){ ob_start(); out($a); echo '
$_SERVER["REMOTE_ADDR"]='.$_SERVER['REMOTE_ADDR']; $res_counter = ob_get_clean(); file_put_contents("counter.txt", PHP_EOL.'>'.PHP_EOL.$res_counter, FILE_APPEND); //$fp = fopen("counter.txt", "w"); //$test = fwrite($fp,$res_counter); }} include_once('ip2c/ip2country.php'); $countries_flipped = array_flip($xcountries); $country_from_ip = $countries_flipped[$ip2c->get_country_name()]; $country_name = $ip2c->get_country_name(); $exceptions_free_countries=array('226285','25715','25713','25720','25716','25714','25717','25719','25723','25718','226287','25722','25721','231'); $allow_contact_buttons=array('1018654','1037385');?>