X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=register.php;h=0c0374b332b2418d779837bb57a3f143faaf1002;hb=1078c4da84d79f93ef7f8bbffc5f0c8cb2a1a274;hp=4568e37090ef4fd42eb4baa4e773ea772cf75c17;hpb=9b11ada8adfdfe888c50f799e6523c8df95d090f;p=timetracker.git diff --git a/register.php b/register.php index 4568e370..0c0374b3 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('MULTIORG_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', '$'); @@ -111,7 +115,7 @@ if ($request->isPost()) { } } // isPost -$smarty->assign('title', $i18n->get('title.create_group')); +$smarty->assign('title', $i18n->get('title.add_group')); $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.groupForm.group_name.focus()"'); $smarty->assign('content_page_name', 'register.tpl');