mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-23 06:21:12 +02:00
fix for php3 compatibility
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
if (floor($PHP_VERSION ) == 4) {
|
||||||
global $date, $year, $month, $day, $thisyear, $thismonth, $thisday, $filter, $keywords;
|
global $date, $year, $month, $day, $thisyear, $thismonth, $thisday, $filter, $keywords;
|
||||||
global $matrixtype, $participants;
|
global $matrixtype, $participants;
|
||||||
|
}
|
||||||
|
|
||||||
if(!isset($phpgw_info["user"]["preferences"]["calendar"]["weekdaystarts"]))
|
if(!isset($phpgw_info["user"]["preferences"]["calendar"]["weekdaystarts"]))
|
||||||
$phpgw_info["user"]["preferences"]["calendar"]["weekdaystarts"] = "Sunday";
|
$phpgw_info["user"]["preferences"]["calendar"]["weekdaystarts"] = "Sunday";
|
||||||
@@ -28,17 +30,8 @@
|
|||||||
$thisyear = $year;
|
$thisyear = $year;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if($filter=="all") $filter_method = "All";
|
|
||||||
// if($filter=="private") $filter_method = "Private Only";
|
|
||||||
// if($filter=="public") $filter_method = "Global Public Only";
|
|
||||||
// if($filter=="group") $filter_method = "Group Public Only";
|
|
||||||
// if($filter=="private+public") $filter_method = "Private and Global Public";
|
|
||||||
// if($filter=="private+group") $filter_method = "Private and Group Public";
|
|
||||||
// if($filter=="public+private") $filter_method = "Global Public and Group Public";
|
|
||||||
|
|
||||||
if (!isset($phpgw_info["flags"]["nocalendarheader"]) ||
|
if (!isset($phpgw_info["flags"]["nocalendarheader"]) ||
|
||||||
!$phpgw_info["flags"]["nocalendarheader"]) {
|
!$phpgw_info["flags"]["nocalendarheader"]) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table border="0" width="100%" cols="8" cellpadding="0" cellspacing="0">
|
<table border="0" width="100%" cols="8" cellpadding="0" cellspacing="0">
|
||||||
|
Reference in New Issue
Block a user