* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+
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 = <?php echo json_lang_generator () ?>;
+ var lang_array = <?php echo json_lang_generator() ?>;
if (lang_array.hasOwnProperty(expr))
return lang_array[expr];
return expr;
{
return false;
}
-
+
if (time == 'minute')
{
d.setSeconds (d.getSeconds() + 60);
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);