mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Sso small fix
This commit is contained in:
parent
3221b0651e
commit
5da5e8ac61
2 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('APP_INDEX_ROOT_PATH', str_replace('\\', '/', rtrim(dirname(__FILE__), '\\/').'/'));
|
define('APP_INDEX_ROOT_FILE', str_replace('\\', '/', __FILE__));
|
||||||
|
define('APP_INDEX_ROOT_PATH', rtrim(dirname(APP_INDEX_ROOT_FILE), '/').'/');
|
||||||
|
|
||||||
$sCustomDataPath = '';
|
$sCustomDataPath = '';
|
||||||
if (file_exists(APP_INDEX_ROOT_PATH.'include.php'))
|
if (file_exists(APP_INDEX_ROOT_PATH.'include.php'))
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@
|
||||||
define('APP_INDEX_FILE', 'index.php');
|
define('APP_INDEX_FILE', 'index.php');
|
||||||
define('APP_VERSION_ROOT_PATH', APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/');
|
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_ROOT_FILE', !empty($_SERVER['SCRIPT_FILENAME']) ? str_replace('\\', '/', $_SERVER['SCRIPT_FILENAME']) : '');
|
||||||
define('APP_CALLER_AS_API', APP_CALLER_ROOT_PATH !== str_replace('\\', '/', APP_INDEX_ROOT_PATH));
|
define('APP_CALLER_AS_API', APP_CALLER_ROOT_FILE !== APP_INDEX_ROOT_FILE);
|
||||||
|
|
||||||
if (function_exists('date_default_timezone_set'))
|
if (function_exists('date_default_timezone_set'))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue