getReferrerHost(); $partnerId = 0; if(!empty($referrerHost)){ $partnerObj = findPartnerByHostName($referrerHost); if(!$partnerObj){ $partnerId = addPartner($referrerHost); }else{ require_once 'json/JSON.php'; $json = new Services_JSON(); $encoded = $json->encode($partnerObj, true); $partnerId = $partnerObj[0]['id']; } } ?> /** getParameter("width")."px\""; } $latestSearches = true; if(isset($_GET['latestSearches'])){ $latestSearches = $_GET['latestSearches']; } $mostSearched = true; if(isset($_GET['mostSearched'])){ $mostSearched = $_GET['mostSearched']; } $numberOfResults = 10; if(isset($_GET['numberOfResults']) && $_GET['numberOfResults'] <= 25){ $numberOfResults = $_GET['numberOfResults']; } $showDate = true; if(isset($_GET['showDate'])){ $showDate = $_GET['showDate']; } if($partnerId == 0){ ?> * This api is meaningless without a valid HTTP-Referrer! You just happen to see this under the "do-no-evil" initiative ;-) * avlesh.com powered plugin for burrp! local search widget * visit http://www.avlesh.com/burrp-search-widget-plugin for more details on usage and documentation for this plugin * visit http://www.burrp.com/widget for more details on the burrp! widget and its documentation */ AcomBurrpLocalSearchWidgetPluginLoader = { pluginKey:, areaId:"AcomBurrpPlugin", baseUrl:"", logUri:"/plugin-data-logger.js?action=save", latestSearchesUri:"/plugin-data-viewer.js?action=latestSearches", mostSearchedUri:"/plugin-data-viewer.js?action=mostSearched", autoReloadAsync:, autoReloadFrequency: , showLatestSearches: , showMostSearched: , width:, numberOfResults:, showDate:, loadJs:function(filePath){ document.write(''); }, loadCss:function(filePath){ document.write(''); } } AcomBurrpLocalSearchWidgetPluginLoader.loadJs("/burrp-widget-plugin/js/plugin-lib.js"); AcomBurrpLocalSearchWidgetPluginLoader.loadCss("/burrp-widget-plugin/css/plugin-styles.css"); document.write('
');