Zitat von "Muenz, Michael" <[EMAIL PROTECTED]>:

I would say the developement is frozen, as there are bugs
inside web-cyradm (both 0.54 an 0.55 cvs).
I agree with your opinion that it works, but there are some
things that are discouraging to use a
0.54 for customers (no possibility to change password, bug
when adding admin ...) and some
shortcomings of the cvs version such as incomplete
translations, display bug aso.

I don't think that translation belongs to development.

I would love to see those fixed or to see some developement
like doing design by cascading style
sheets.

I'm very thankful for every patch! :)


Okay ....

The patch is against CVS validate.inc.php. It is needed to get it work with PostgreSQL. Someone with MySQL knowledge should check if there is a strong reason why the quotes are there at all.

Regards

Andreas


--- ./validate.inc.php  2006-03-16 13:43:08.000000000 +0100
+++ ../web-cyradm/validate.inc.php      2006-05-16 10:44:11.000000000 +0200
@@ -288,7 +288,7 @@ function ValidAdminType($type) {
                                $authorized = FALSE;
                                $err_msg = _("New passwords are not equal. Password 
not changed");
                        } else {
- $query = "SELECT `type` FROM adminuser WHERE username='".$_POST['username']."'"; + $query = "SELECT type FROM adminuser WHERE username='".$_POST['username']."'";
                                $result = $handle->query($query);
                                if (DB::isError($result)) {
                                        die (_("Database error"));
@@ -302,7 +302,7 @@ function ValidAdminType($type) {
                                                # Web-cyradm again

                                                # Query to get the count of 
superusers
-                                               $query = "SELECT `type` FROM 
adminuser WHERE type='0'";
+                                               $query = "SELECT type FROM adminuser 
WHERE type='0'";
                                                $result = 
$handle->query($query);
                                                if (DB::isError($result)) {
                                                        die (_("Database 
error"));
@@ -378,7 +378,7 @@ function ValidAdminType($type) {
$err_msg = _("Security violation detected, action cancelled. Your attempt has been logged.");
                        } else {
                                #Determine what type of admin should be deleted
- $query = "SELECT `type` FROM adminuser WHERE username='".$_GET['username']."'"; + $query = "SELECT type FROM adminuser WHERE username='".$_GET['username']."'";
                                $result = $handle->query($query);
                                if (DB::isError($result)) {
                                        die (_("Database error"));
@@ -387,7 +387,7 @@ function ValidAdminType($type) {
                                $type = $row['type'];

                                # Query to get the count of superusers
-                               $query = "SELECT `type` FROM adminuser WHERE 
type='0'";
+                               $query = "SELECT type FROM adminuser WHERE 
type='0'";
                                $result = $handle->query($query);
                                if (DB::isError($result)) {
                                        die (_("Database error"));
@@ -684,7 +684,7 @@ function ValidAdminType($type) {
$err_msg = _("Security violation detected, action cancelled. Your attempt has been logged.");
                        } else {
                                if (!empty($_GET['confirmed']) && 
empty($_GET['cancel'])) {
- $query = "SELECT `freeaddress` FROM `domain` WHERE `domain_name`='".$_GET['domain']."'"; + $query = "SELECT freeaddress FROM domain WHERE domain_name='".$_GET['domain']."'";
                                        $result = $handle->query($query);
                                        if (DB::isError($result)) {
                                                die (_("Database error"));


_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to