cvs: pear /Perm_LiveUser/Admin/Perm DB_Common.php
| From: | Arnaud Limbourg | Date: | Mon, 08 Sep 2003 21:18:39 +0000 |
| Subject: | cvs: pear /Perm_LiveUser/Admin/Perm DB_Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-12561@lists.php.net to get a copy of this message | ||
arnaud Mon Sep 8 17:18:39 2003 EDT
Modified files:
/pear/Perm_LiveUser/Admin/Perm DB_Common.php
Log:
* fix queries, comments are managed in the translations
Index: pear/Perm_LiveUser/Admin/Perm/DB_Common.php
diff -u pear/Perm_LiveUser/Admin/Perm/DB_Common.php:1.2
pear/Perm_LiveUser/Admin/Perm/DB_Common.php:1.3
--- pear/Perm_LiveUser/Admin/Perm/DB_Common.php:1.2 Mon Sep 8 08:51:55 2003
+++ pear/Perm_LiveUser/Admin/Perm/DB_Common.php Mon Sep 8 17:18:39 2003
@@ -33,7 +33,7 @@
* DB based containers used to maintain
* the permission database.
*
- * @version $Id: DB_Common.php,v 1.2 2003/09/08 12:51:55 arnaud Exp $
+ * @version $Id: DB_Common.php,v 1.3 2003/09/08 21:18:39 arnaud Exp $
* @package LiveUser
*/
class LiveUser_Admin_Perm_DB_Common extends LiveUser_Admin_Perm_Common
@@ -518,12 +518,11 @@
// Register new application
$query = 'INSERT INTO
' . $this->prefix . 'applications
- (application_id, application_define_name, application_comment)
+ (application_id, application_define_name)
VALUES
(
' . (int)$application_id . ',
- ' . $this->dbc->quote($define_name) . ',
- ' . $this->dbc->quote($application_comment) . '
+ ' . $this->dbc->quote($define_name) . '
)';
$result = $this->dbc->query($query);
@@ -570,13 +569,12 @@
// Register new area
$query = 'INSERT INTO
' . $this->prefix . 'areas
- (area_id, area_define_name, application_id, area_comment)
+ (area_id, area_define_name, application_id)
VALUES
(
' . (int)$area_id . ',
' . $this->dbc->quote($define_name) . ',
- ' . (int)$application_id . ',
- ' . $this->dbc->quote($area_comment) . '
+ ' . (int)$application_id . '
)';
$result = $this->dbc->query($query);
@@ -743,8 +741,7 @@
$query = 'UPDATE
' . $this->prefix . 'applications
SET
- application_define_name = ' . $this->dbc->quote($define_name) .
',
- application_comment = ' . $this->dbc->quote($application_comment)
. '
+ application_define_name = ' . $this->dbc->quote($define_name) . '
WHERE
application_id = ' . (int)$application_id;
@@ -788,8 +785,7 @@
$query = 'UPDATE
' . $this->prefix . 'areas
SET
- area_define_name = ' . $this->dbc->quote($define_name) . ',
- area_comment = ' . $this->dbc->quote($area_comment) . '
+ area_define_name = ' . $this->dbc->quote($define_name) . '
WHERE
area_id = ' . (int)$area_id;
@@ -836,13 +832,12 @@
// Register right
$query = 'INSERT INTO
' . $this->prefix . 'rights
- (right_id, area_id, right_define_name, right_comment)
+ (right_id, area_id, right_define_name)
VALUES
(
' . (int)$right_id . ',
' . (int)$area_id . ',
- ' . $this->dbc->quote($define_name) . ',
- ' . $this->dbc->quote($right_comment) . '
+ ' . $this->dbc->quote($define_name) . '
)';
$result = $this->dbc->query($query);
@@ -940,8 +935,7 @@
' . $this->prefix . 'rights
SET
area_id = ' . (int)$area_id . ',
- right_define_name = ' . $this->dbc->quote($define_name) . ',
- right_comment = ' . $this->dbc->quote($right_comment) . '
+ right_define_name = ' . $this->dbc->quote($define_name) . '
WHERE
right_id = ' . (int)$right_id;