add configuration option to disable registration
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@501 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
65b1963d16
commit
4a7d7ced9b
3 changed files with 15 additions and 0 deletions
|
@ -253,6 +253,13 @@ $antispamQuestion = 'name of this application';
|
||||||
*/
|
*/
|
||||||
$antispamAnswer = 'semanticscuttle';
|
$antispamAnswer = 'semanticscuttle';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable or disable user registration
|
||||||
|
*
|
||||||
|
* @var boolean
|
||||||
|
*/
|
||||||
|
$enableRegistration = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***************************************************
|
/***************************************************
|
||||||
|
|
|
@ -27,7 +27,9 @@ if ($userservice->isLoggedOn()) {
|
||||||
<li><a href="<?php echo createURL('populartags'); ?>"><?php echo T_('Popular Tags'); ?></a></li>
|
<li><a href="<?php echo createURL('populartags'); ?>"><?php echo T_('Popular Tags'); ?></a></li>
|
||||||
<li><a href="<?php echo createURL('about'); ?>"><?php echo T_('About'); ?></a></li>
|
<li><a href="<?php echo createURL('about'); ?>"><?php echo T_('About'); ?></a></li>
|
||||||
<li class="access"><a href="<?php echo createURL('login'); ?>"><?php echo T_('Log In'); ?></a></li>
|
<li class="access"><a href="<?php echo createURL('login'); ?>"><?php echo T_('Log In'); ?></a></li>
|
||||||
|
<?php if ($GLOBALS['enableRegistration']) { ?>
|
||||||
<li class="access"><a href="<?php echo createURL('register'); ?>"><?php echo T_('Register'); ?></a></li>
|
<li class="access"><a href="<?php echo createURL('register'); ?>"><?php echo T_('Register'); ?></a></li>
|
||||||
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -21,6 +21,12 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
require_once '../src/SemanticScuttle/header.php';
|
require_once '../src/SemanticScuttle/header.php';
|
||||||
|
|
||||||
|
if (!$GLOBALS['enableRegistration']) {
|
||||||
|
header('HTTP/1.0 501 Not implemented');
|
||||||
|
echo 'Registration is disabled';
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
/* Service creation: only useful services are created */
|
/* Service creation: only useful services are created */
|
||||||
// No specific services
|
// No specific services
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue