X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/62bebb89af9afb9c4008d799c67e24988cb3688d..cabf2460445f26eded09e7d2c9c8cda97e8db593:/register.php diff --git a/register.php b/register.php index 298f2818..4c923c73 100644 --- a/register.php +++ b/register.php @@ -29,11 +29,15 @@ require_once('initialize.php'); import('form.Form'); -if (!isTrue(MULTITEAM_MODE) || $auth->isPasswordExternal()) { +if (!isTrue('MULTITEAM_MODE') || $auth->isPasswordExternal()) { header('Location: login.php'); exit(); } +// Use the "limit" plugin if we have one. Ignore include errors. +// The "limit" plugin is not required for normal operation of Time Tracker. +@include('plugins/limit/register.php'); + $auth->doLogout(); if (!defined('CURRENCY_DEFAULT')) define('CURRENCY_DEFAULT', '$');