contentFile = $pluginBase . DIRECTORY_SEPARATOR . 'winex.contents'; } /** * Fetches the wine list from CellarTracker and creates the cache file * * @param array $wArray winex options array * @return string $text page content */ function winex_fetchWineList($wArray){ if ($wArray['user_id']){ $date = date('Ymd'); $url = 'http://www.cellartracker.com/list.asp?iUserOverride=' . $wArray['user_id'] . '&Page=0'; if (function_exists('curl_init')){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $lines = curl_exec($ch); curl_close($ch); } else { $lines = file_get_contents($url); } $start = "