1234567891011121314151617181920212223242526 |
- <?php
- function dw_wik_places() {
- $token_auth = 'd97e3e8f34071515ad1f6e345f6035af';
- $url = "https://davidawindham.com/wik/";
- $url .= "?module=API&method=UserCountry.getCity";
- $url .= "&idSite=1&period=month&date=yesterday";
- $url .= "&format=PHP&filter_limit=20";
- $url .= "&token_auth=$token_auth";
- $fetched = file_get_contents($url);
- $content = unserialize($fetched);
- if (!$content) {
- print("Error, content fetched = " . $fetched);
- }
- foreach ($content as $row) {
- $keyword = htmlspecialchars(html_entity_decode(urldecode($row['label']), ENT_QUOTES), ENT_QUOTES);
- $hits = $row['nb_visits'];
- print("<b>$keyword</b> ($hits hits)<br>\n");
- }
- }
- ?>
|