From f1a377b8f764275248ef91fa84a79576efe84136 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 25 Oct 2004 17:16:07 +0000 Subject: More error messages. Fixed default paths everywhere. --- preferences.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'preferences.php') diff --git a/preferences.php b/preferences.php index 9d4685f..c3f75a1 100644 --- a/preferences.php +++ b/preferences.php @@ -6,6 +6,10 @@ require_once(BASE.'functions/template.php'); header("Content-Type: text/html; charset=$charset"); $display_date = $preferences_lang; +if ($allow_preferences != 'yes') { + exit(error('Preferences are not available for this installation.', $cal)); +} + if ($cookie_uri == '') { $cookie_uri = $_SERVER['SERVER_NAME'].substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'], '/')); } -- cgit v1.2.3