  |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2006 osCommerce |
| |
| 8 | + | Copyright (c) 2007 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | Released under the GNU General Public License |
| |
11 | 11 | | */ |
| |
|
|
 |
… |
|
80 | 80 | | |
| |
81 | 81 | | $Qadmin->bindTable(':table_administrators', TABLE_ADMINISTRATORS); |
| |
82 | 82 | | $Qadmin->bindValue(':user_name', $data['username']); |
  |
| 83 | + | $Qadmin->setLogging($_SESSION['module'], $id); |
|
83 | 84 | | $Qadmin->execute(); |
| |
84 | 85 | | |
| |
85 | 86 | | if ( !$osC_Database->isError() ) { |
| |
|
|
 |
… |
|
108 | 109 | | $Qinsert->bindTable(':table_administrators_access', TABLE_ADMINISTRATORS_ACCESS); |
| |
109 | 110 | | $Qinsert->bindInt(':administrators_id', $id); |
| |
110 | 111 | | $Qinsert->bindValue(':module', $module); |
  |
| 112 | + | $Qinsert->setLogging($_SESSION['module'], $id); |
|
111 | 113 | | $Qinsert->execute(); |
| |
112 | 114 | | |
| |
113 | 115 | | if ( $osC_Database->isError() ) { |
| |
|
|
 |
… |
|
129 | 131 | | |
| |
130 | 132 | | $Qdel->bindTable(':table_administrators_access', TABLE_ADMINISTRATORS_ACCESS); |
| |
131 | 133 | | $Qdel->bindInt(':administrators_id', $id); |
  |
| 134 | + | $Qdel->setLogging($_SESSION['module'], $id); |
|
132 | 135 | | $Qdel->execute(); |
| |
133 | 136 | | |
| |
134 | 137 | | if ( $osC_Database->isError() ) { |
| |
|
|
 |
… |
|
158 | 161 | | $Qdel = $osC_Database->query('delete from :table_administrators_access where administrators_id = :administrators_id'); |
| |
159 | 162 | | $Qdel->bindTable(':table_administrators_access', TABLE_ADMINISTRATORS_ACCESS); |
| |
160 | 163 | | $Qdel->bindInt(':administrators_id', $id); |
  |
| 164 | + | $Qdel->setLogging($_SESSION['module'], $id); |
|
161 | 165 | | $Qdel->execute(); |
| |
162 | 166 | | |
| |
163 | 167 | | if ( !$osC_Database->isError() ) { |
| |
164 | 168 | | $Qdel = $osC_Database->query('delete from :table_administrators where id = :id'); |
| |
165 | 169 | | $Qdel->bindTable(':table_administrators', TABLE_ADMINISTRATORS); |
| |
166 | 170 | | $Qdel->bindInt(':id', $id); |
  |
| 171 | + | $Qdel->setLogging($_SESSION['module'], $id); |
|
167 | 172 | | $Qdel->execute(); |
| |
168 | 173 | | |
| |
169 | 174 | | if ( !$osC_Database->isError() ) { |
| |
|
|
 |
… |
|
217 | 222 | | $Qinsert->bindTable(':table_administrators_access', TABLE_ADMINISTRATORS_ACCESS); |
| |
218 | 223 | | $Qinsert->bindInt(':administrators_id', $id); |
| |
219 | 224 | | $Qinsert->bindValue(':module', $module); |
  |
| 225 | + | $Qinsert->setLogging($_SESSION['module'], $id); |
|
220 | 226 | | $Qinsert->execute(); |
| |
221 | 227 | | |
| |
222 | 228 | | if ( $osC_Database->isError() ) { |
| |
|
|
 |
… |
|
245 | 251 | | |
| |
246 | 252 | | $Qdel->bindTable(':table_administrators_access', TABLE_ADMINISTRATORS_ACCESS); |
| |
247 | 253 | | $Qdel->bindInt(':administrators_id', $id); |
  |
| 254 | + | $Qdel->setLogging($_SESSION['module'], $id); |
  |
248 | 255 | | $Qdel->execute(); |
| |
249 | 256 | | |
| |
250 | 257 | | if ( $osC_Database->isError() ) { |