示例#1
0
<?php

chdir('../..');
include "includes/vars.php";
include "includes/functions.php";
include "international.php";
$uri = rawurldecode($_REQUEST['uri']);
getCacheData($uri, 'spotify');
示例#2
0
<?php

chdir('../..');
include "includes/vars.php";
include "includes/functions.php";
include "international.php";
$uri = rawurldecode($_REQUEST['uri']);
getCacheData($uri, 'lastfm');
示例#3
0
<?php

chdir('../..');
include "includes/vars.php";
include "includes/functions.php";
include "international.php";
$uri = rawurldecode($_REQUEST['uri']);
getCacheData($uri, 'musicbrainz');
示例#4
0
        var request = GXmlHttp.create();
                //request.open("GET", "http://www.opencaching.pl/lib/marker.php?klaun="+user+"&latNE="+latNE+"&lonNE="+lonNE+"&latSW="+latSW+"&lonSW="+lonSW+"&page="+page+"&caches="+caches+"&order="+order, true);
                request.open("GET", "lib/marker.php?klaun=" + user + "&latNE=" + latNE + "&lonNE=" + lonNE + "&latSW=" + latSW + "&lonSW=" + lonSW + "&page=" + page + "&caches=" + caches + "&order=" + order + "&filter=" + filter, true);
                request.onreadystatechange = function () {
                if (request.readyState == 4) {
                var xmlDoc = request.responseXML;
                        var markers = xmlDoc.documentElement.getElementsByTagName("marker");
                        for (var i = 0; i < markers.length; i++)
                {
                var point = new GLatLng(markers[i].getAttribute("lat"), markers[i].getAttribute("lng"));
                        var marker = createMarker(point, markers[i]);
                        map.addOverlay(marker);
    <?php 
    $cache_id = isset($_REQUEST['cacheid']) ? $_REQUEST['cacheid'] + 0 : 0;
    $cacheData = getCacheData($cache_id);
    ?>
                var cache_id = <?php 
    echo $cache_id;
    ?>
;
                        var cache_name = "<?php 
    echo $cacheData['cachename'];
    ?>
";
                        var cache_owner = "<?php 
    echo $cacheData['username'];
    ?>
";
                        var cache_topratings = <?php 
    echo $cacheData['topratings'] == '' ? '0' : $cacheData['topratings'];
        }

        var request = GXmlHttp.create();
                //request.open("GET", "http://www.opencaching.pl/lib/marker.php?klaun="+user+"&latNE="+latNE+"&lonNE="+lonNE+"&latSW="+latSW+"&lonSW="+lonSW+"&page="+page+"&caches="+caches+"&order="+order, true);
                request.open("GET", "lib/marker.php?klaun=" + user + "&latNE=" + latNE + "&lonNE=" + lonNE + "&latSW=" + latSW + "&lonSW=" + lonSW + "&page=" + page + "&caches=" + caches + "&order=" + order + "&filter=" + filter, true);
                request.onreadystatechange = function () {
                if (request.readyState == 4) {
                var xmlDoc = request.responseXML;
                        var markers = xmlDoc.documentElement.getElementsByTagName("marker");
                        for (var i = 0; i < markers.length; i++)
                {
                var point = new GLatLng(markers[i].getAttribute("lat"), markers[i].getAttribute("lng"));
                        var marker = createMarker(point, markers[i]);
                        map.addOverlay(marker);
    <?php 
    $cacheData = getCacheData(intval($_REQUEST['cacheid']));
    ?>
                var cache_id = <?php 
    echo $_REQUEST['cacheid'] == '' ? 0 : $_REQUEST['cacheid'];
    ?>
;
                        var cache_name = "<?php 
    echo $cacheData['cachename'];
    ?>
";
                        var cache_owner = "<?php 
    echo $cacheData['username'];
    ?>
";
                        var cache_topratings = <?php 
    echo $cacheData['topratings'] == '' ? '0' : $cacheData['topratings'];
示例#6
0
$numeric_in = $req;
$req = preg_replace("~^sms (dw|fs|fc|gc|rb|id|freedom|cri|movie|lyrics|train|weather|route|love|flames|recipe|stock|dict|photo|picture|news|trace|price|expand|horoscope|loc)~", "\$1", $req);
$req = preg_replace("~^(fs)\\b~", "friendship", $req);
$str_count = str_word_count($req);
if ($str_count > 2 && $str_count < 8) {
    $req = preg_replace("~^(fc)~", "calc friendship", $req);
}
$req = preg_replace("~(friendship )+~", "friendship ", $req);
echo "<br><h2>TIME before spell :" . (microtime(TRUE) - $time_start) . "</h2><br>";
$spell_checked_org = $spell_checked = checkSpelling($req);
$spell_checked = preg_replace("~\\?~", '', $spell_checked);
echo "<br><h2>TIME after spell :" . (microtime(TRUE) - $time_start) . "</h2><br>";
echo "<br> Spell Checked:::::{$spell_checked}<br>";
$arCacheData = array();
echo "<h1>Fetching Data</h1>";
$cache_content = getCacheData("ls" . $number);
if ($cache_content != 'not_found') {
    $arCacheData = json_decode($cache_content, true);
    $arCacheData = timeOutCheck($arCacheData);
}
var_dump($arCacheData);
if (preg_match("~(1?.?\\s?read more\$|1?.?\\s?next ?page\$)~i", $spell_checked)) {
    echo "<br>Matched for read more";
    $req = "more";
    $numeric_in = 1;
    if (!empty($arCacheData["ca"])) {
        $row = $arCacheData["ca"];
    }
    if (!empty($row)) {
        echo "<br>FROM CACHE ";
        var_dump($row);
示例#7
0
<?php

chdir('../..');
include "includes/vars.php";
include "includes/functions.php";
include "international.php";
$uri = rawurldecode($_REQUEST['uri']);
$uri = preg_replace('/\\s/', "%20", $uri);
getCacheData($uri, 'discogs');