Change to phpversion()

This commit is contained in:
Miles Lott 2001-04-21 12:43:00 +00:00
parent 9bf8708b25
commit 56f405cd7a
5 changed files with 5 additions and 5 deletions

View File

@ -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;
} }

View File

@ -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;

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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 {