X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/deeb1323362ec6750535865e1e18ca37fe7728fc..96707e02b8b24054e0827eaf169cc88504a1e78c:/lib/functions.js.php diff --git a/lib/functions.js.php b/lib/functions.js.php index fbce522..dab491c 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -20,16 +20,16 @@ header('Content-Type: text/javascript'); -define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/../'); -require (JIRAFEAU_ROOT . 'lib/config.original.php'); -require (JIRAFEAU_ROOT . 'lib/settings.php'); -require (JIRAFEAU_ROOT . 'lib/functions.php'); -require (JIRAFEAU_ROOT . 'lib/lang.php'); +define('JIRAFEAU_ROOT', dirname(__FILE__) . '/../'); + +require(JIRAFEAU_ROOT . 'lib/settings.php'); +require(JIRAFEAU_ROOT . 'lib/functions.php'); +require(JIRAFEAU_ROOT . 'lib/lang.php'); ?> function translate (expr) { - var lang_array = ; + var lang_array = ; if (lang_array.hasOwnProperty(expr)) return lang_array[expr]; return expr; @@ -232,6 +232,11 @@ function add_time_string_to_date(d, time) d.setSeconds (d.getSeconds() + 2419200); return true; } + if (time == 'quarter') + { + d.setSeconds (d.getSeconds() + 7257600); + return true; + } if (time == 'year') { d.setSeconds (d.getSeconds() + 29030400);