fix s.php
This commit is contained in:
parent
d29e05e805
commit
761ba99de1
@ -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');
|
||||
|
@ -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}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user