summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-02 09:40:00 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-02 09:40:00 +0000
commit4a7d7ced9bb339b1ad70d21d8a90b61424af662b (patch)
tree507a49961540b611cf79f89805f3559362c16c13 /www
parent65b1963d160e0a2fad8a099abf69b799e42f7915 (diff)
downloadsemanticscuttle-4a7d7ced9bb339b1ad70d21d8a90b61424af662b.tar.gz
semanticscuttle-4a7d7ced9bb339b1ad70d21d8a90b61424af662b.tar.bz2
add configuration option to disable registration
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@501 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'www')
-rw-r--r--www/register.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/register.php b/www/register.php
index 379dec4..5a12573 100644
--- a/www/register.php
+++ b/www/register.php
@@ -21,6 +21,12 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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 */
// No specific services