bugfix
This commit is contained in:
parent
b6f3852e32
commit
b80871bccc
|
@ -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');
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue