Sso integration, Simple Rainloop Api (#103)

Small fixes
This commit is contained in:
RainLoop Team 2014-04-14 20:07:33 +04:00
parent dde42c6190
commit e211899c7b
12 changed files with 191 additions and 18 deletions

View file

@ -6,6 +6,9 @@
define('APP_INDEX_FILE', 'index.php');
define('APP_VERSION_ROOT_PATH', APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/');
define('APP_CALLER_ROOT_PATH', empty($_SERVER['SCRIPT_FILENAME']) ? '' : str_replace('\\', '/', rtrim(dirname($_SERVER['SCRIPT_FILENAME']), '\\/').'/'));
define('APP_CALLER_AS_API', APP_CALLER_ROOT_PATH !== str_replace('\\', '/', APP_INDEX_ROOT_PATH));
if (function_exists('date_default_timezone_set'))
{
date_default_timezone_set('UTC');