Fixes as posted by Stefan Winter
authorAlan T. DeKok <aland@freeradius.org>
Fri, 7 Jan 2011 11:28:56 +0000 (12:28 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 7 Jan 2011 11:28:56 +0000 (12:28 +0100)
commit53ce0e0f09834ea11d18921422d6bed6abadfa67
tree247812024bf0410dc9893b39e264445c6de46a3b
parent0399375870d8bf7af400717c12345d74dfbc0da6
Fixes as posted by Stefan Winter

just now I have had to upgrade my dialup_admin installation to a machine running PHP5.3, and also noticed numerous PHP errors.

I have fixed the code, see attached patch. It solves the following bugs/deprecated code warnings:

* replace ereg -> preg_match, ereg_replace -> preg_replace, split -> preg_split for PHP5.3 compatibility
* fix LIMIT not working when using MySQL
* add configuration item "timezone" to make PHP 5.1+ happy

and adds one (trivial, one-liner) feature:

* add comparison operators "!=" and "not like" to Accounting

Now, I have an almost error/warning/notice free installation. There is still something bogus around the use of mktime() someplace, but I don't use that part of dialup_admin, so I'll leave that alone.
19 files changed:
dialup_admin/Changelog
dialup_admin/conf/admin.conf
dialup_admin/conf/config.php3
dialup_admin/htdocs/accounting.php3
dialup_admin/htdocs/user_accounting.php3
dialup_admin/htdocs/user_edit.php3
dialup_admin/htdocs/user_test.php3
dialup_admin/lib/acctshow.php3
dialup_admin/lib/attrshow.php3
dialup_admin/lib/defaults.php3
dialup_admin/lib/functions.php3
dialup_admin/lib/lang/el/utf8.php3
dialup_admin/lib/ldap/attrmap.php3
dialup_admin/lib/ldap/change_info.php3
dialup_admin/lib/ldap/create_user.php3
dialup_admin/lib/ldap/personattrs.php3
dialup_admin/lib/sql/attrmap.php3
dialup_admin/lib/sql/drivers/mysql/functions.php3
dialup_admin/lib/sql/nas_list.php3