forked from extern/egroupware
Change to phpversion()
This commit is contained in:
parent
9bf8708b25
commit
56f405cd7a
@ -19,7 +19,7 @@
|
|||||||
$phpgw->common->phpgw_exit();
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(floor($PHP_VERSION) == 4)
|
if(floor(phpversion()) == 4)
|
||||||
{
|
{
|
||||||
global $phpgw_info, $thisday, $thismonth, $thisyear;
|
global $phpgw_info, $thisday, $thismonth, $thisyear;
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
if (floor($PHP_VERSION ) == 4)
|
if (floor(phpversion()) == 4)
|
||||||
{
|
{
|
||||||
global $phpgw_info, $phpgw, $grants, $owner, $rights, $filter;
|
global $phpgw_info, $phpgw, $grants, $owner, $rights, $filter;
|
||||||
global $date, $year, $month, $day, $thisyear, $thismonth, $thisday;
|
global $date, $year, $month, $day, $thisyear, $thismonth, $thisday;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
if (floor($PHP_VERSION ) == 4) {
|
if (floor(phpversion()) == 4) {
|
||||||
global $date, $year, $month, $day, $thisyear, $thismonth, $thisday, $filter, $keywords;
|
global $date, $year, $month, $day, $thisyear, $thismonth, $thisday, $filter, $keywords;
|
||||||
global $matrixtype, $participants, $owner, $phpgw, $grants, $rights, $SCRIPT_FILENAME;
|
global $matrixtype, $participants, $owner, $phpgw, $grants, $rights, $SCRIPT_FILENAME;
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
// Delete all records for a user
|
// Delete all records for a user
|
||||||
if (floor($PHP_VERSION ) == 4)
|
if (floor(phpversion()) == 4)
|
||||||
{
|
{
|
||||||
global $account_id, $new_owner;
|
global $account_id, $new_owner;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
if ($phpgw_info['server']['mcrypt_enabled'] && extension_loaded('mcrypt')) {
|
if ($phpgw_info['server']['mcrypt_enabled'] && extension_loaded('mcrypt')) {
|
||||||
if ($phpgw_info['server']['versions']['mcrypt'] == 'old') {
|
if ($phpgw_info['server']['versions']['mcrypt'] == 'old') {
|
||||||
$this->td = false;
|
$this->td = false;
|
||||||
if (PHP_VERSION > '4.0.2pl1') {
|
if (phpversion() > '4.0.2pl1') {
|
||||||
$keysize = mcrypt_get_key_size(MCRYPT_TRIPLEDES);
|
$keysize = mcrypt_get_key_size(MCRYPT_TRIPLEDES);
|
||||||
$ivsize = mcrypt_get_iv_size(MCRYPT_TRIPLEDES,MCRYPT_MODE_CBC);
|
$ivsize = mcrypt_get_iv_size(MCRYPT_TRIPLEDES,MCRYPT_MODE_CBC);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user