mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
Save php sessions in myaac dir
Instead of default PHP location This fixes problem with permissions
This commit is contained in:
parent
0643c56bc5
commit
d58d7f79e7
4
.gitignore
vendored
4
.gitignore
vendored
@ -31,6 +31,10 @@ system/cache/*
|
|||||||
!system/cache/signatures/index.html
|
!system/cache/signatures/index.html
|
||||||
!system/cache/plugins/index.html
|
!system/cache/plugins/index.html
|
||||||
|
|
||||||
|
# php sessions
|
||||||
|
system/php_sessions/*
|
||||||
|
!system/cache/index.html
|
||||||
|
|
||||||
# logs
|
# logs
|
||||||
system/logs/*
|
system/logs/*
|
||||||
!system/logs/index.html
|
!system/logs/index.html
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
* @link https://my-aac.org
|
* @link https://my-aac.org
|
||||||
*/
|
*/
|
||||||
if (version_compare(phpversion(), '5.6', '<')) die('PHP version 5.6 or higher is required.');
|
if (version_compare(phpversion(), '5.6', '<')) die('PHP version 5.6 or higher is required.');
|
||||||
session_start();
|
|
||||||
|
|
||||||
define('MYAAC', true);
|
define('MYAAC', true);
|
||||||
define('MYAAC_VERSION', '0.8.6');
|
define('MYAAC_VERSION', '0.8.6');
|
||||||
@ -86,6 +85,9 @@ define('TFS_03', 4);
|
|||||||
define('TFS_FIRST', TFS_02);
|
define('TFS_FIRST', TFS_02);
|
||||||
define('TFS_LAST', TFS_03);
|
define('TFS_LAST', TFS_03);
|
||||||
|
|
||||||
|
session_save_path(SYSTEM . 'php_sessions');
|
||||||
|
session_start();
|
||||||
|
|
||||||
// basedir
|
// basedir
|
||||||
$basedir = '';
|
$basedir = '';
|
||||||
$tmp = explode('/', $_SERVER['SCRIPT_NAME']);
|
$tmp = explode('/', $_SERVER['SCRIPT_NAME']);
|
||||||
|
0
system/php_sessions/index.html
Normal file
0
system/php_sessions/index.html
Normal file
Loading…
x
Reference in New Issue
Block a user