From: hickert Date: Fri, 14 Sep 2007 07:26:06 +0000 (+0000) Subject: Adde timezone check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b0ae24d1609910eaaa03f2b5cd2fc0057c5f020;p=gosa.git Adde timezone check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7290 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/main.php b/html/main.php index 4dfe7477e..9d8527d69 100644 --- a/html/main.php +++ b/html/main.php @@ -79,6 +79,12 @@ if ($_SERVER['REMOTE_ADDR'] != $ui->ip){ } $config= $_SESSION['config']; +/* Check if there is a timezone record available */ +$tmp = get_default_timezone(); +if($tmp['name'] == "unconfigured"){ + print_red(_("Please add a timezone record into the main section of yout your gosa.conf.")); +} + /* Check for invalid sessions */ if(empty($_SESSION['_LAST_PAGE_REQUEST'])){ $_SESSION['_LAST_PAGE_REQUEST']= time();