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:30:04 +0000 (12:30 +0100)
commit7ea9b24a75204afa33a032ed976481a71f99495a
treea71897143da2780204416d0e51a97d43b7868f6c
parent819b93251246c512fc1b85b00bfbf5d3d0a10f6e
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