Пример #1
0
<?php

require getFeedPath() . '/lib/router/Router.php';
require getFeedPath() . '/lib/router/Route.php';
Пример #2
0
<?php

require_once getFeedPath() . '/lib/http-client/HttpRequest.php';
require_once getFeedPath() . '/lib/http-client/HttpResponse.php';
require_once getFeedPath() . '/lib/http-client/HttpClient.php';
Пример #3
0
function feedautoloader($class)
{
    include getFeedPath() . 'core' . DIRECTORY_SEPARATOR . $class . '.php';
}
<?php

require_once getFeedPath() . '/lib/JSON/JSON.php';
function json_encode($arg)
{
    global $services_json;
    if (!isset($services_json)) {
        $services_json = new Services_JSON();
    }
    return $services_json->encode($arg);
}
function json_decode($arg)
{
    global $services_json;
    if (!isset($services_json)) {
        $services_json = new Services_JSON();
    }
    return $services_json->decode($arg);
}