Beispiel #1
0
 * distribution.
 */
$zfRoot = realpath(dirname(__DIR__));
$zfCoreLibrary = "{$zfRoot}/library";
/*
 * Prepend the Zend Framework library/ and demos/ directories to the
 * include_path. This allows the demos to run out of the box and helps prevent
 * loading other copies of the framework code and demos that would supersede
 * this copy.
 */
$path = array($zfCoreLibrary, get_include_path());
set_include_path(implode(PATH_SEPARATOR, $path));
/**
 * Setup autoloading
 */
include_once __DIR__ . '/_autoload.php';
/**
 * Set fallback locale
 */
Locale::setDefault(Helper::LOCALE);
/**
 * Ensure LiveDocx credentials are available
 */
if (false === Helper::credentialsAvailable()) {
    Helper::printLine(Helper::credentialsHowTo());
    exit;
}
/*
 * Unset global variables that are no longer needed.
 */
unset($zfRoot, $zfCoreLibrary, $path);