summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/page_header.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-15 15:13:50 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-15 15:13:50 +0000
commit95900abeff8d853c0449c37eafa8457a884ce6bb (patch)
tree7e0932a7616e1d8fc5bb983454ecadb37485b4a1 /frontends/php/include/page_header.php
parent49336d0e0c1d043c40c63206d1e63ca9d33c7f36 (diff)
downloadzabbix-95900abeff8d853c0449c37eafa8457a884ce6bb.tar.gz
zabbix-95900abeff8d853c0449c37eafa8457a884ce6bb.tar.xz
zabbix-95900abeff8d853c0449c37eafa8457a884ce6bb.zip
- improved error displaying and more
git-svn-id: svn://svn.zabbix.com/trunk@3489 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/page_header.php')
-rw-r--r--frontends/php/include/page_header.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/frontends/php/include/page_header.php b/frontends/php/include/page_header.php
index 5f4e7b4b..a6345d65 100644
--- a/frontends/php/include/page_header.php
+++ b/frontends/php/include/page_header.php
@@ -198,7 +198,7 @@ COpt::profiling_start("page");
),
"admin"=>array(
"label" => S_ADMINISTRATION,
- "default_page_id" => 0,
+ "default_page_id" => 1,
"pages"=>array(
ZBX_DISTRIBUTED ? array("url"=>"nodes.php" ,"label"=>S_NODES) : null ,
array("url"=>"users.php" ,"label"=>S_USERS ,
@@ -407,4 +407,15 @@ COpt::compare_files_with_menu($ZBX_MENU);
{
access_deny();
}
+
+ if(version_compare(phpversion(), '5.1.0RC1', '>=') && $page['type'] != PAGE_TYPE_IMAGE)
+ {
+ $tmezone = ini_get('date.timezone');
+ if(empty($tmezone))
+ {
+ info('Timezone for PHP is not set. Please set "date.timezone" option in php.ini.');
+ date_default_timezone_set('UTC');
+ }
+ unset($tmezone);
+ }
?>