fix s.php

This commit is contained in:
François 2024-12-09 16:31:09 +01:00
parent d29e05e805
commit 761ba99de1
2 changed files with 35 additions and 1 deletions

View File

@ -16,6 +16,40 @@ require (JIRAFEAU_ROOT . 'lib/settings.php');
require (JIRAFEAU_ROOT . 'lib/functions.php');
require (JIRAFEAU_ROOT . 'lib/lang.php');
// ========================================
function period2seconds ($periodName) {
if (!$periodName)
return JIRAFEAU_MONTH;
switch ($periodName) {
case 'minute':
return JIRAFEAU_MINUTE;
break;
case 'hour':
return JIRAFEAU_HOUR;
break;
case 'day':
return JIRAFEAU_DAY;
break;
case 'week':
return JIRAFEAU_WEEK;
break;
case 'month':
return JIRAFEAU_MONTH;
break;
case 'quarter':
return JIRAFEAU_QUARTER;
break;
case 'semester':
return JIRAFEAU_SEMESTER;
break;
case 'year':
return JIRAFEAU_YEAR;
break;
default:
returnError (t ('ERR_OCC') . ' (periodName)');
}
}
// ========================================
function returnError ($msg) {
require (JIRAFEAU_ROOT.'lib/template/header.php');

View File

@ -91,7 +91,7 @@ eMailShrinker="$(realpath "./eMailShrinker")"
########################################
dos2unix "${mbox}"
[ -z "${SIMULATE}" ] && DOMAINEDEPOT="$(cat domainedepot)"
[ -z "${SIMULATE}" ] && DOMAINEDEPOT="$(cat config/domainedepot)"
JIRAFEAU_URL="https://depot.${DOMAINEDEPOT}"
JIRAFEAU_LOCAL="${JIRAFEAU_URL}"