'American (New)', 'tradamerican' => 'American (Traditional)', 'bbq' => 'Barbeque', 'breakfast_brunch' => 'Breakfast & Brunch', 'buffets' => 'Buffets', 'burgers' => 'Burgers', 'cafes' => 'Cafes', 'chicken_wings' => 'Chicken Wings', 'chinese' => 'Chinese', 'diners' => 'Diners', 'hotdogs' => 'Fast Food', 'italian' => 'Italian', 'japanese' => 'Japanese', 'korean' => 'Korean', 'kosher' => 'Kosher', 'mexican' => 'Mexican', 'mideastern' => 'Middle Eastern', 'mongolian' => 'Mongolian', 'pizza' => 'Pizza', 'salad' => 'Salad', 'sandwiches' => 'Sandwiches', 'seafood' => 'Seafood', 'steak' => 'Steakhouses', 'sushi' => 'Sushi Bars', 'vegan' => 'Vegan', 'vegetarian' => 'Vegetarian', ); $lodging = array( 'bedbreakfast' => 'Bed & Breakfast', 'campgrounds' => 'Campgrounds', 'guesthouses' => 'Guest Houses', 'hostels' => 'Hostels', 'hotels' => 'Hotels', 'resorts' => 'Resorts', 'skiresorts' => 'Ski Resorts', 'vacation_rentals' => 'Vacation Rentals', ); $autoCare = array( 'autoglass' => 'Auto Glass Services', 'autopartssupplies' => 'Auto Parts & Supplies', 'autorepair' => 'Auto Repair', 'carwash' => 'Car Wash', 'servicestations' => 'Gas & Service Stations', 'motorcyclerepair' => 'Motorcycle Repair', 'oilchange' => 'Oil Change Stations', 'parking' => 'Parking', 'tires' => 'Tires', 'towing' => 'Towing', 'windshieldinstallrepair' => 'Windshield Installation & Repair', ); // master list for server-side validation in /ra-content/plug-ins/yelp-api-data/getYelpData.php // ! // kindly reflect any changes in this array in the $attractionsFormatted array too $attractions = array( // 'active' => 'Active Life', 'amateursportsteams' => 'Amateur Sports Teams', 'amusementparks' => 'Amusement Parks', 'aquariums' => 'Aquariums ', 'beaches' => 'Beaches', 'bikerentals' => 'Bike Rentals', 'boating' => 'Boating', 'climbing' => 'Climbing', 'diving' => 'Diving', 'fishing' => 'Fishing', 'gokarts' => 'Go Karts', 'golf' => 'Golf', 'hiking' => 'Hiking', 'horseracing' => 'Horse Racing', 'horsebackriding' => 'Horseback Riding', 'lakes' => 'Lakes', 'leisure_centers' => 'Leisure Centers', 'mini_golf' => 'Mini Golf', 'mountainbiking' => 'Mountain Biking', 'paddleboarding' => 'Paddleboarding ', 'paintball' => 'Paintball', 'parks' => 'Parks', 'playgrounds' => 'Playgrounds', 'rafting' => 'Rafting/Kayaking', 'recreation' => 'Recreation Centers', 'rock_climbing' => 'Rock Climbing', 'skatingrinks' => 'Skating Rinks', 'skydiving' => 'Skydiving', 'swimmingpools' => 'Swimming Pools', 'tennis' => 'Tennis', 'trampoline' => 'Trampoline Parks', 'tubing' => 'Tubing', 'zoos' => 'Zoos', // 'arts' => 'Arts & Entertainment', 'arcades' => 'Arcades', 'galleries' => 'Art Galleries', 'gardens' => 'Botanical Gardens ', 'casinos' => 'Casinos', 'movietheaters' => 'Cinema', 'culturalcenter' => 'Cultural Center', 'festivals' => 'Festivals', 'jazzandblues' => 'Jazz & Blues', 'museums' => 'Museums', 'musicvenues' => 'Music Venues', 'opera' => 'Opera & Ballet', 'theater' => 'Performing Arts', 'sportsteams' => 'Professional Sports Teams', 'psychic_astrology' => 'Psychics & Astrologers', 'social_clubs' => 'Social Clubs', 'stadiumsarenas' => 'Stadiums & Arenas', 'ticketsales' => 'Ticket Sales', 'wineries' => 'Wineries', // 'beautysvc' => 'Beauty and Spas', 'spas' => 'Day Spas', 'massage' => 'Massage', 'othersalons' => 'Nail Salons', 'localflavor' => 'Local Flavor ', 'nightlife' => 'Nightlife', 'bars' => 'Bars', 'comedyclubs' => 'Comedy Clubs', 'countrydancehalls' => 'Country Dance Halls', 'danceclubs' => 'Dance Clubs', 'jazzandblues' => 'Jazz & Blues', // repeated 'karaoke' => 'Karaoke', 'musicvenues' => 'Music Venues', 'pianobars' => 'Piano Bars', 'poolhalls' => 'Pool Halls', // 'shopping' => 'Shopping', 'antiques' => 'Antiques', 'galleries' => 'Art Galleries', 'outlet_stores' => 'Outlet Stores', // 'artsandcrafts' => 'Arts & Crafts', // 'media' => 'Books, Mags, Music and Video', // 'fashion' => 'Fashion', // 'fireworks' => 'Fireworks', // 'jewelry' => 'Jewelry', // 'outlet_stores' => 'Outlet Stores', // 'shoppingcenters' => 'Shopping Centers', // 'toys' => 'Toy Stores', // 'wholesale_stores' => 'Wholesale Stores', ); $attractionsTabShowTheseCategoriesYelpIdentifiers = array('active', 'arts', 'beautysvc'); // ! // kindly reflect any changes in this array in the $attractions array too $attractionsFormatted = array( array( 'parentCategoryDisplay' => 'Active Life', 'parentCategoryIdentifier' => 'active', 'subCategories' => array( 'amateursportsteams' => 'Amateur Sports Teams', 'amusementparks' => 'Amusement Parks', 'aquariums' => 'Aquariums ', 'beaches' => 'Beaches', 'bikerentals' => 'Bike Rentals', 'boating' => 'Boating', 'climbing' => 'Climbing', 'diving' => 'Diving', 'fishing' => 'Fishing', 'gokarts' => 'Go Karts', 'golf' => 'Golf', 'hiking' => 'Hiking', 'horseracing' => 'Horse Racing', 'horsebackriding' => 'Horseback Riding', 'lakes' => 'Lakes', 'leisure_centers' => 'Leisure Centers', 'mini_golf' => 'Mini Golf', 'mountainbiking' => 'Mountain Biking', 'paddleboarding' => 'Paddleboarding ', 'paintball' => 'Paintball', 'parks' => 'Parks', 'playgrounds' => 'Playgrounds', 'rafting' => 'Rafting/Kayaking', 'recreation' => 'Recreation Centers', 'rock_climbing' => 'Rock Climbing', 'skatingrinks' => 'Skating Rinks', 'skydiving' => 'Skydiving', 'swimmingpools' => 'Swimming Pools', 'tennis' => 'Tennis', 'trampoline' => 'Trampoline Parks', 'tubing' => 'Tubing', 'zoos' => 'Zoos', ) ), array( 'parentCategoryDisplay' => 'Arts & Entertainment', 'parentCategoryIdentifier' => 'arts', 'subCategories' => array( 'arcades' => 'Arcades', 'galleries' => 'Art Galleries', 'gardens' => 'Botanical Gardens ', 'casinos' => 'Casinos', 'movietheaters' => 'Cinema', 'culturalcenter' => 'Cultural Center', 'festivals' => 'Festivals', 'jazzandblues' => 'Jazz & Blues', 'museums' => 'Museums', 'musicvenues' => 'Music Venues', 'opera' => 'Opera & Ballet', 'theater' => 'Performing Arts', 'sportsteams' => 'Professional Sports Teams', 'psychic_astrology' => 'Psychics & Astrologers', 'social_clubs' => 'Social Clubs', 'stadiumsarenas' => 'Stadiums & Arenas', 'ticketsales' => 'Ticket Sales', 'wineries' => 'Wineries', ), ), array( 'parentCategoryDisplay' => 'Beauty and Spas', 'parentCategoryIdentifier' => 'beautysvc', 'subCategories' => array( 'spas' => 'Day Spas', 'massage' => 'Massage', 'othersalons' => 'Nail Salons', ), ), array( 'parentCategoryDisplay' => 'Local Flavor', 'parentCategoryIdentifier' => 'localflavor', 'subCategories' => array(), ), array( 'parentCategoryDisplay' => 'Nightlife', 'parentCategoryIdentifier' => 'nightlife', 'subCategories' => array( 'bars' => 'Bars', 'comedyclubs' => 'Comedy Clubs', 'countrydancehalls' => 'Country Dance Halls', 'danceclubs' => 'Dance Clubs', 'jazzandblues' => 'Jazz & Blues', 'karaoke' => 'Karaoke', 'musicvenues' => 'Music Venues', 'pianobars' => 'Piano Bars', 'poolhalls' => 'Pool Halls', ), ), array( 'parentCategoryDisplay' => 'Shopping', 'parentCategoryIdentifier' => 'shopping', 'subCategories' => array( 'antiques' => 'Antiques', 'galleries' => 'Art Galleries', 'outlet_stores' => 'Outlet Stores', // 'artsandcrafts' => 'Arts & Crafts', // 'media' => 'Books, Mags, Music and Video', // 'fashion' => 'Fashion', // 'fireworks' => 'Fireworks', // 'jewelry' => 'Jewelry', // 'outlet_stores' => 'Outlet Stores', // 'shoppingcenters' => 'Shopping Centers', // 'toys' => 'Toy Stores', // 'wholesale_stores' => 'Wholesale Stores', ), ), ); // admin/add-ons section // '/admin/plugin.php' extracts data from folder 'ra-content/plugins' // restricting the display in admin section to required plugins by filename $adminSectionPluginsTabShowThese = array( 'best-listing', 'rhombus', ); // My Maps $MY_MAPS_ALLOW_DELETION_FOR_ITABLE2_DISPLAY_VALUES = array(0, 2); $MY_MAPS_DENY_DELETION_FOR_ITABLE2_DISPLAY_VALUES = array(1, 9); // db table itable2 define ('TABLE_ITABLE2_ROAD_TRIP_DISPLAY_SUBMIT_FOR_REVIEW', 0); define ('TABLE_ITABLE2_ROAD_TRIP_DISLAY_IN_USER_MY_MAPS_ONLY', 2); // trip page define ('ROAD_TRIP_PAGE_DEFAULT_TAB_NUMBER_TO_OPEN', 1); define ('ROAD_TRIP_PAGE_TAB2_YELP_API_PER_CALL_NUMBER_OF_ITEMS_LIMIT', 10); define ('ROAD_TRIP_PAGE_TAB2_YELP_API_SORT_ORDER_CODE', 2); // Sort mode: 0=Best matched (default), 1=Distance, 2=Highest Rated. at http://www.yelp.com/developers/documentation/v2/search_api // http://www.yelp.com/developers/documentation/category_list define ('ROAD_TRIP_PAGE_TAB2_YELP_API_SEARCH', 'restaurants'); define ('ROAD_TRIP_PAGE_TAB3_YELP_API_SEARCH', 'hotelstravel'); define ('ROAD_TRIP_PAGE_TAB4_YELP_API_SEARCH', 'auto'); // general constants define ('PAGINATION_DEFAULT_PAGE_NUMBER', 1); # url to your installation /*$base_href = 'http://www.bestroadtripplanner.com/';*/ $base_href = 'http://' . $_SERVER['HTTP_HOST'] . '/'; /* $base_href = 'http://184.168.116.177:81/'; */ // ! // must update manually // file: /ra-content/mapper/map_bindings.js // function: get_values() // line: $("#edit_URL").val("http://www.bestroadtripplanner.com/" + "ra-content/mapper/edit.php" + window.location.search); // production settings # full path $home_dir = '/home/brtphosting/public_html/'; # full path to functions $function_dir = '/home/brtphosting/public_html/dr1'; /* // staging development settings # full path $home_dir = 'C:\wamp\www\brtp\\'; # full path to functions $function_dir = 'C:\wamp\www\brtp\dr1'; */ $refreshURL = $_SERVER['REQUEST_URI']; $refreshURL = urlencode($refreshURL); $dbh = mysql_connect($host,$mysql_user,$mysql_pw); mysql_select_db($database_name, $dbh); $query = "SELECT value FROM config WHERE name='template' LIMIT 1;"; $result = mysql_query($query, $dbh) or ('die'); $row = mysql_fetch_array($result); $templateDir = $row['value']; $dr_uid = @$_COOKIE['dr_uid']; $dr_pw = @$_COOKIE['dr_pw']; session_start(); if (!isset($dr_uid) || !isset($dr_pw)){ $dr_uid = @$_SESSION['dr_uid']; $pw = @$_SESSION['dr_pw']; } $sessionID = session_id(); $query = "SELECT value FROM config WHERE name='owneremail' LIMIT 1;"; $result = mysql_query($query, $dbh); $row = mysql_fetch_array($result); $ownerEmail = $row['value']; $query = "SELECT value FROM config WHERE name='ownername' LIMIT 1;"; $result = mysql_query($query, $dbh); $row = mysql_fetch_array($result); $ownerName = $row['value']; ?> 'category_buttons_camping.jpg', 2 => 'category_buttons_water.jpg', 3 => 'category_buttons_mountains.jpg', 4 => 'category_buttons_wildlife.jpg', 5 => 'category_buttons_roads_above.jpg', 6 => 'category_buttons_roads_below.jpg', 7 => 'category_buttons_roads_curvy.jpg', 8 => 'category_buttons_foliage.jpg', 9 => 'category_buttons_historical.jpg', 10 => 'category_buttons_urban.jpg', 11 => 'category_buttons_forest.jpg', 12 => 'category_buttons_restaurant.jpg', 13 => 'category_buttons_shopping.jpg', 14 => 'category_buttons_parks.jpg', 15 => 'category_buttons_picnic.jpg', ); $valueArray = split(', ', $values); # arrayOut($valueArray); foreach ($valueArray AS $val){ $query = "SELECT id, name FROM choice WHERE fieldName='field9' AND name='$val' LIMIT 1;"; $res = mysql_query($query, $dbh); while ($thearray = mysql_fetch_array($res)) { extract ($thearray); } $code .= "$name  "; } return $code; } function footer_category(){ $cat_arr = categoryListing(2, 3); # arrayOut($cat_arr); $tot = count($cat_arr); $num_per_column = ceil($tot / 5); $count = 1; $code .= ''; foreach ($cat_arr AS $catID => $val_arr){ $count += 1; if ($count % $num_per_column == 1){$code .= '';} $catLink = categoryPageURL($catID); $code .= "" . $val_arr['name'] . "
"; if ($count % $num_per_column == 0){$code .= "
";} } if ($count % $num_per_column != 0){$code .= "
";} return $code; } function footer_feature($id){ global $dbh; $query = "SELECT field30 AS title, field29 AS html FROM itable54 WHERE id='$id' LIMIT 1;"; $res = mysql_query($query, $dbh); while ($thearray = mysql_fetch_array($res)) { extract ($thearray); $code .= "

$title

$html"; } return $code; } function category_menu($root){ $cat_arr = categoryListing($root, 3); foreach ($cat_arr AS $cat_id => $val_arr){ $code .= "\n"; } return $code; } function cms_content($id){ global $dbh; $query = "SELECT field30 AS title, field29 AS html FROM itable54 WHERE id='$id' LIMIT 1;"; $res = mysql_query($query, $dbh); while ($thearray = mysql_fetch_array($res)) { extract ($thearray); # $code .= "

$title

$html"; } return $html; } function category_list($itemID, $sectionID){ global $dbh; $query = "SELECT name FROM icategory, category WHERE categoryID = category.id AND infoID='$itemID' AND collectID='$sectionID';"; $res = mysql_query($query, $dbh); while ($thearray = mysql_fetch_array($res)) { extract ($thearray); $nameA[] = $name; } return implode(", ", $nameA); } ?>