1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/byecode-BoxBillingSAE

Клонировать/Скачать
index.php 1.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
awayawell Отправлено 02.03.2015 08:17 3ace8e8
<?php
/**
* BoxBilling
*
* @copyright BoxBilling, Inc (http://www.boxbilling.com)
* @license Apache-2.0
*
* Copyright BoxBilling, Inc
* This source file is subject to the Apache-2.0 License that is bundled
* with this source code in the file LICENSE
*/
require_once dirname ( __FILE__ ) . '/bb-load.php';
$di = include dirname ( __FILE__ ) . '/bb-di.php';
$url = $di ['request']->getQuery ( '_url' );
$admin_prefix = $di ['config'] ['admin_area_prefix'];
// sae wrapper
$mmc = memcache_init ();
$test = memcache_get ( $mmc, "log.log" );
if (! $test) {
if (! file_exists ( "saestor://box/log.log" )) {
echo 'BoxBilling not installed click <a href="/install" >Install</a> to Install it';
exit ();
} else {
file_put_contents ( "saemc://log.log", file_get_contents ( "saestor://box/log.log" ) );
}
}
// sae wrapper...
if (strncasecmp ( $url, $admin_prefix, strlen ( $admin_prefix ) ) === 0) {
$url = str_replace ( $admin_prefix, '', preg_replace ( '/\?.+/', '', $url ) );
$app = new Box_AppAdmin ();
$app->setUrl ( $url );
$di ['translate'] ( 'admin' );
} else {
$app = new Box_AppClient ();
$app->setUrl ( $url );
$di ['translate'] ();
}
$app->setDi ( $di );
print $app->run ();
exit (); // disable auto_append_file directive

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/byecode-BoxBillingSAE.git
git@api.gitlife.ru:oschina-mirror/byecode-BoxBillingSAE.git
oschina-mirror
byecode-BoxBillingSAE
byecode-BoxBillingSAE
master