@@ -251,14 +251,6 @@ function onBeforeUpdate() {
251251 // we need remote access rights for this server, so get it's ip address
252252 $ server_config = $ app ->getconf ->get_server_config ($ tmp ['server_id ' ], 'server ' );
253253 if ($ server_config ['ip_address ' ]!='' ) {
254- /*
255- if($this->dataRecord['remote_access'] != 'y') $this->dataRecord['remote_ips'] = '';
256- $this->dataRecord['remote_access'] = 'y';
257- if(preg_match('/(^|,)' . preg_quote($server_config['ip_address'], '/') . '(,|$)/', $this->dataRecord['remote_ips']) == false) {
258- $this->dataRecord['remote_ips'] .= ($this->dataRecord['remote_ips'] != '' ? ',' : '') . $server_config['ip_address'];
259- }
260- */
261-
262254 if ($ this ->dataRecord ['remote_access ' ] != 'y ' ){
263255 $ this ->dataRecord ['remote_ips ' ] = $ server_config ['ip_address ' ];
264256 $ this ->dataRecord ['remote_access ' ] = 'y ' ;
@@ -338,14 +330,6 @@ function onBeforeInsert() {
338330 // we need remote access rights for this server, so get it's ip address
339331 $ server_config = $ app ->getconf ->get_server_config ($ tmp ['server_id ' ], 'server ' );
340332 if ($ server_config ['ip_address ' ]!='' ) {
341- /*
342- if($this->dataRecord['remote_access'] != 'y') $this->dataRecord['remote_ips'] = '';
343- $this->dataRecord['remote_access'] = 'y';
344- if(preg_match('/(^|,)' . preg_quote($server_config['ip_address'], '/') . '(,|$)/', $this->dataRecord['remote_ips']) == false) {
345- $this->dataRecord['remote_ips'] .= ($this->dataRecord['remote_ips'] != '' ? ',' : '') . $server_config['ip_address'];
346- }
347- */
348-
349333 if ($ this ->dataRecord ['remote_access ' ] != 'y ' ){
350334 $ this ->dataRecord ['remote_ips ' ] = $ server_config ['ip_address ' ];
351335 $ this ->dataRecord ['remote_access ' ] = 'y ' ;
@@ -390,10 +374,6 @@ function onBeforeInsert() {
390374 function onInsertSave ($ sql ) {
391375 global $ app , $ conf ;
392376
393- $ app ->uses ('sites_database_plugin ' );
394-
395- //$app->sites_database_plugin->processDatabaseInsert($this);
396-
397377 $ app ->db ->query ($ sql );
398378 if ($ app ->db ->errorMessage != '' ) die ($ app ->db ->errorMessage );
399379 $ new_id = $ app ->db ->insertID ();
0 commit comments