From 13e15ec1a9ab39a363bd12f59c8dfd26708b5a38 Mon Sep 17 00:00:00 2001 From: kkalev Date: Fri, 8 Feb 2002 14:55:41 +0000 Subject: [PATCH] * Add support for the rest of the operators. Created the lib/operators.php3 file containing helper functions --- Changelog | 1 + htdocs/user_edit.php3 | 12 +++++++++--- htdocs/user_new.php3 | 12 +++++++++--- lib/operators.php3 | 38 ++++++++++++++++++++++++++++++++++++++ lib/sql/change_attrs.php3 | 26 ++++++++++++++++++-------- lib/sql/create_user.php3 | 16 +++++++++++++--- 6 files changed, 88 insertions(+), 17 deletions(-) create mode 100644 lib/operators.php3 diff --git a/Changelog b/Changelog index 9d0b751..afd005e 100644 --- a/Changelog +++ b/Changelog @@ -11,6 +11,7 @@ Ver 1.29: sql_use_operators configuration directive. Hope everything works. * Fixed a bug in sql/change_attrs which did not allow multi valued attributes in sql. * unset item_vals before adding info in ldap and sql user_info files. +* Add support for the rest of the operators. Created the lib/operators.php3 file containing helper functions Ver 1.28: * Make user_delete.php3 print something when a user is deleted * Cache nas hostname lookups in user_accounting diff --git a/htdocs/user_edit.php3 b/htdocs/user_edit.php3 index 765e2f9..bd8bf68 100644 --- a/htdocs/user_edit.php3 +++ b/htdocs/user_edit.php3 @@ -7,9 +7,7 @@ if (is_file("../lib/$config[general_lib_type]/user_info.php3")) if ($config[general_lib_type] == 'sql' && $config[sql_use_operators] == 'true'){ $colspan=2; $show_ops = 1; - $op_eq = '='; - $op_set = ':='; - $op_add = '+='; + include("../lib/operators.php3"); } else{ $show_ops = 0; @@ -132,6 +130,14 @@ EOM;