diff --git a/src/Jirafeau/a.php b/src/Jirafeau/a.php index 75570c3..316023e 100644 --- a/src/Jirafeau/a.php +++ b/src/Jirafeau/a.php @@ -2,6 +2,7 @@ /* * Kaz addon (see https://git.kaz.bzh/KAZ/depollueur for information) * create un archive for a set of file or update file deadline + * version : 2.21 (2024-06-04) a.php?r=email => track a.php?p=email => period @@ -31,6 +32,8 @@ define ('VAR_PERIOD', $cfg ['var_root'].'period/'); define ('VAR_LANG', $cfg ['var_root'].'lang/'); define ('VAR_FAKE', $cfg ['var_root'].'fake/'); define ('VAR_ADMIN', $cfg ['var_root'].'admin/'); +define ('VAR_CONFIG', $cfg ['var_root'].'config/'); +define ('FILE_CONFIG', VAR_CONFIG.'default.php'); $domain="kaz.local"; if (preg_match ("%^.*//([^/]*)/?.*$%", $cfg ['web_root'], $matches)) @@ -40,9 +43,19 @@ define ('MAX_VALID_UPLOAD_TIME', 60); define ('TOKEN_USE_LIMIT', "-2 hours"); define ('TOKEN_LOGIN_LIMIT', "-15 minutes"); define ('TOKEN_LOGOUT_LIMIT', "-8 hours"); -define ('DEFAULT_MODE', "footer"); -define ('DEFAULT_PERIOD', "month"); -define ('DEFAULT_LANG', "fr"); +if (!file_exists (VAR_CONFIG)) + mkdir (VAR_CONFIG, 0755); +if (!file_exists (FILE_CONFIG)) { + file_put_contents (FILE_CONFIG, "