This commit is contained in:
xdrm-brackets 2017-09-26 17:53:58 +02:00
parent b6f3852e32
commit b80871bccc
1 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<?php
require_once __DIR__.'/../../lib/include/php/const';
require_once __DIR__.'/../../../lib/include/php/const';
$f_auth;
$f_accesslog;
@ -258,7 +258,8 @@
/* (2) Caches */
global $actions;
/* (3) Useful data */
global $FEATURE;
/* [1] Open file descriptors on useful files
=========================================================*/
@ -267,6 +268,8 @@
$f_actions = new SplFileObject(ACTIONS_CONF, 'r');
/* (2) Append accesses (logs) */
if( !file_exists(DATA_DIR."/$FEATURE") )
file_put_contents(DATA_DIR."/$FEATURE", '');
$f_accesslog = new SplFileObject(DATA_DIR."/$FEATURE", 'a');