Show
Ignore:
Timestamp:
12/29/05 16:29:35 (7 years ago)
Author:
fproulx
Message:

2005-12-29 Fran�ois Proulx <francois.proulx@…>

  • Added Aidan's file_exists_incpath function to Dependencies class
  • Translated and standardized most of PostgreSQL abstraction class.
  • Removed blank lines at end of many files
  • Tested the new Phlickr package, which fixes URL on Flickr
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Node.php

    r874 r877  
    107107                $sql = "SELECT node_id, last_heartbeat_ip from nodes WHERE last_heartbeat_ip='$_SERVER[REMOTE_ADDR]' ORDER BY last_heartbeat_timestamp DESC"; 
    108108                $node_rows = null; 
    109                 $db->ExecSql($sql, $node_rows, false); 
     109                $db->execSql($sql, $node_rows, false); 
    110110                $num_match = count($node_rows); 
    111111                if ($num_match == 0) 
     
    134134                                        $_SERVER['REMOTE_ADDR']; 
    135135                                        $sql = "SELECT node_id, last_heartbeat_ip from connections NATURAL JOIN nodes WHERE user_id='$current_user_id' ORDER BY last_updated DESC "; 
    136                                         $db->ExecSql($sql, $node_rows, false); 
     136                                        $db->execSql($sql, $node_rows, false); 
    137137                                        $node_row = $node_rows[0]; 
    138138                                        if ($node_row != null && $node_row['last_heartbeat_ip'] == $_SERVER['REMOTE_ADDR']) 
     
    152152                { 
    153153                        global $db; 
    154                         $id = $db->EscapeString($this->getId()); 
    155                         if (!$db->ExecSqlUpdate("DELETE FROM nodes WHERE node_id='{$id}'", false)) 
     154                        $id = $db->escapeString($this->getId()); 
     155                        if (!$db->execSqlUpdate("DELETE FROM nodes WHERE node_id='{$id}'", false)) 
    156156                        { 
    157157                                $errmsg = _('Could not delete node!'); 
     
    185185                        $node_id = get_guid(); 
    186186                } 
    187                 $node_id = $db->EscapeString($node_id); 
     187                $node_id = $db->escapeString($node_id); 
    188188 
    189189                if (empty ($network)) 
     
    191191                        $network = Network :: getCurrentNetwork(); 
    192192                } 
    193                 $network_id = $db->EscapeString($network->getId()); 
    194  
    195                 $node_deployment_status = $db->EscapeString("IN_PLANNING"); 
     193                $network_id = $db->escapeString($network->getId()); 
     194 
     195                $node_deployment_status = $db->escapeString("IN_PLANNING"); 
    196196                $node_name = _("New node"); 
    197197                if (Node :: nodeExists($node_id)) 
     
    200200                $sql = "INSERT INTO nodes (node_id, network_id, creation_date, node_deployment_status, name) VALUES ('$node_id', '$network_id', NOW(),'$node_deployment_status', '$node_name')"; 
    201201 
    202                 if (!$db->ExecSqlUpdate($sql, false)) 
     202                if (!$db->execSqlUpdate($sql, false)) 
    203203                { 
    204204                        throw new Exception(_('Unable to insert new node into database!')); 
     
    221221                $sql = "SELECT node_id, name from nodes WHERE 1=1 $sql_additional_where ORDER BY node_id"; 
    222222                $node_rows = null; 
    223                 $db->ExecSql($sql, $node_rows, false); 
     223                $db->execSql($sql, $node_rows, false); 
    224224                if ($node_rows != null) 
    225225                { 
     
    316316                $name = "{$user_prefix}"; 
    317317                $status_list = null; 
    318                 $db->ExecSql("SELECT node_deployment_status FROM node_deployment_status", $status_list, false); 
     318                $db->execSql("SELECT node_deployment_status FROM node_deployment_status", $status_list, false); 
    319319                if ($status_list == null) 
    320320                        throw new Exception(_("No deployment statues  could be found in the database")); 
     
    344344                $this->mDb = & $db; 
    345345 
    346                 $node_id_str = $db->EscapeString($node_id); 
     346                $node_id_str = $db->escapeString($node_id); 
    347347                $sql = "SELECT * FROM nodes WHERE node_id='$node_id_str'"; 
    348348                $row = null; 
    349                 $db->ExecSqlUniqueRes($sql, $row, false); 
     349                $db->execSqlUniqueRes($sql, $row, false); 
    350350                if ($row == null) 
    351351                { 
     
    371371        function setId($id) 
    372372        { 
    373                 $id = $this->mDb->EscapeString($id); 
    374                 $retval = $this->mDb->ExecSqlUpdate("UPDATE nodes SET node_id = '{$id}' WHERE node_id = '{$this->getId()}'"); 
     373                $id = $this->mDb->escapeString($id); 
     374                $retval = $this->mDb->execSqlUpdate("UPDATE nodes SET node_id = '{$id}' WHERE node_id = '{$this->getId()}'"); 
    375375                if ($retval) 
    376376                { 
     
    401401                if (!empty ($pt)) 
    402402                { 
    403                         $lat = $this->mDb->EscapeString($pt->getLatitude()); 
    404                         $long = $this->mDb->EscapeString($pt->getLongitude()); 
     403                        $lat = $this->mDb->escapeString($pt->getLatitude()); 
     404                        $long = $this->mDb->escapeString($pt->getLongitude()); 
    405405 
    406406                        if (!empty ($lat) && !empty ($long)) 
    407                                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET latitude = $lat, longitude = $long WHERE node_id = '{$this->getId()}'"); 
     407                                $this->mDb->execSqlUpdate("UPDATE nodes SET latitude = $lat, longitude = $long WHERE node_id = '{$this->getId()}'"); 
    408408                        else 
    409                                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET latitude = NULL, longitude = NULL WHERE node_id = '{$this->getId()}'"); 
     409                                $this->mDb->execSqlUpdate("UPDATE nodes SET latitude = NULL, longitude = NULL WHERE node_id = '{$this->getId()}'"); 
    410410                        $this->refresh(); 
    411411                } 
     
    421421        function setName($name) 
    422422        { 
    423                 $name = $this->mDb->EscapeString($name); 
    424                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET name = '{$name}' WHERE node_id = '{$this->getId()}'"); 
     423                $name = $this->mDb->escapeString($name); 
     424                $this->mDb->execSqlUpdate("UPDATE nodes SET name = '{$name}' WHERE node_id = '{$this->getId()}'"); 
    425425                $this->refresh(); 
    426426        } 
     
    433433        function setCreationDate($creation_date) 
    434434        { 
    435                 $creation_date = $this->mDb->EscapeString($creation_date); 
    436                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET creation_date = '{$creation_date}' WHERE node_id = '{$this->getId()}'"); 
     435                $creation_date = $this->mDb->escapeString($creation_date); 
     436                $this->mDb->execSqlUpdate("UPDATE nodes SET creation_date = '{$creation_date}' WHERE node_id = '{$this->getId()}'"); 
    437437                $this->refresh(); 
    438438        } 
     
    445445        function setHomePageUrl($url) 
    446446        { 
    447                 $url = $this->mDb->EscapeString($url); 
    448                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET home_page_url = '{$url}' WHERE node_id = '{$this->getId()}'"); 
     447                $url = $this->mDb->escapeString($url); 
     448                $this->mDb->execSqlUpdate("UPDATE nodes SET home_page_url = '{$url}' WHERE node_id = '{$this->getId()}'"); 
    449449                $this->refresh(); 
    450450        } 
     
    457457        function setDescription($description) 
    458458        { 
    459                 $description = $this->mDb->EscapeString($description); 
    460                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET description = '{$description}' WHERE node_id = '{$this->getId()}'"); 
     459                $description = $this->mDb->escapeString($description); 
     460                $this->mDb->execSqlUpdate("UPDATE nodes SET description = '{$description}' WHERE node_id = '{$this->getId()}'"); 
    461461                $this->refresh(); 
    462462        } 
     
    469469        function setMapURL($url) 
    470470        { 
    471                 $url = $this->mDb->EscapeString($url); 
    472                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET map_url = '{$url}' WHERE node_id = '{$this->getId()}'"); 
     471                $url = $this->mDb->escapeString($url); 
     472                $this->mDb->execSqlUpdate("UPDATE nodes SET map_url = '{$url}' WHERE node_id = '{$this->getId()}'"); 
    473473                $this->refresh(); 
    474474        } 
     
    481481        public function setCivicNumber($civic_number) 
    482482        { 
    483                 $civic_number = $this->mDb->EscapeString($civic_number); 
    484                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET civic_number = '{$civic_number}' WHERE node_id = '{$this->getId()}'"); 
     483                $civic_number = $this->mDb->escapeString($civic_number); 
     484                $this->mDb->execSqlUpdate("UPDATE nodes SET civic_number = '{$civic_number}' WHERE node_id = '{$this->getId()}'"); 
    485485                $this->refresh(); 
    486486        } 
     
    493493        public function setStreetName($street_name) 
    494494        { 
    495                 $street_name = $this->mDb->EscapeString($street_name); 
    496                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET street_name = '{$street_name}' WHERE node_id = '{$this->getId()}'"); 
     495                $street_name = $this->mDb->escapeString($street_name); 
     496                $this->mDb->execSqlUpdate("UPDATE nodes SET street_name = '{$street_name}' WHERE node_id = '{$this->getId()}'"); 
    497497                $this->refresh(); 
    498498        } 
     
    505505        public function setCity($city) 
    506506        { 
    507                 $city = $this->mDb->EscapeString($city); 
    508                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET city = '{$city}' WHERE node_id = '{$this->getId()}'"); 
     507                $city = $this->mDb->escapeString($city); 
     508                $this->mDb->execSqlUpdate("UPDATE nodes SET city = '{$city}' WHERE node_id = '{$this->getId()}'"); 
    509509                $this->refresh(); 
    510510        } 
     
    517517        public function setProvince($province) 
    518518        { 
    519                 $province = $this->mDb->EscapeString($province); 
    520                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET province = '{$province}' WHERE node_id = '{$this->getId()}'"); 
     519                $province = $this->mDb->escapeString($province); 
     520                $this->mDb->execSqlUpdate("UPDATE nodes SET province = '{$province}' WHERE node_id = '{$this->getId()}'"); 
    521521                $this->refresh(); 
    522522        } 
     
    529529        protected function setCountry($country) 
    530530        { 
    531                 $country = $this->mDb->EscapeString($country); 
    532                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET country = '{$country}' WHERE node_id = '{$this->getId()}'"); 
     531                $country = $this->mDb->escapeString($country); 
     532                $this->mDb->execSqlUpdate("UPDATE nodes SET country = '{$country}' WHERE node_id = '{$this->getId()}'"); 
    533533                $this->refresh(); 
    534534        } 
     
    541541        public function setPostalCode($postal_code) 
    542542        { 
    543                 $postal_code = $this->mDb->EscapeString($postal_code); 
    544                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET postal_code = '{$postal_code}' WHERE node_id = '{$this->getId()}'"); 
     543                $postal_code = $this->mDb->escapeString($postal_code); 
     544                $this->mDb->execSqlUpdate("UPDATE nodes SET postal_code = '{$postal_code}' WHERE node_id = '{$this->getId()}'"); 
    545545                $this->refresh(); 
    546546        } 
     
    553553        function setTelephone($phone) 
    554554        { 
    555                 $phone = $this->mDb->EscapeString($phone); 
    556                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET public_phone_number = '{$phone}' WHERE node_id = '{$this->getId()}'"); 
     555                $phone = $this->mDb->escapeString($phone); 
     556                $this->mDb->execSqlUpdate("UPDATE nodes SET public_phone_number = '{$phone}' WHERE node_id = '{$this->getId()}'"); 
    557557                $this->refresh(); 
    558558        } 
     
    565565        function setTransitInfo($transit_info) 
    566566        { 
    567                 $transit_info = $this->mDb->EscapeString($transit_info); 
    568                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET mass_transit_info = '{$transit_info}' WHERE node_id = '{$this->getId()}'"); 
     567                $transit_info = $this->mDb->escapeString($transit_info); 
     568                $this->mDb->execSqlUpdate("UPDATE nodes SET mass_transit_info = '{$transit_info}' WHERE node_id = '{$this->getId()}'"); 
    569569                $this->refresh(); 
    570570        } 
     
    577577        function setEmail($email) 
    578578        { 
    579                 $email = $this->mDb->EscapeString($email); 
    580                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET public_email = '{$email}' WHERE node_id = '{$this->getId()}'"); 
     579                $email = $this->mDb->escapeString($email); 
     580                $this->mDb->execSqlUpdate("UPDATE nodes SET public_email = '{$email}' WHERE node_id = '{$this->getId()}'"); 
    581581                $this->refresh(); 
    582582        } 
     
    589589        function setDeploymentStatus($status) 
    590590        { 
    591                 $status = $this->mDb->EscapeString($status); 
    592                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET node_deployment_status = '{$status}' WHERE node_id = '{$this->getId()}'"); 
     591                $status = $this->mDb->escapeString($status); 
     592                $this->mDb->execSqlUpdate("UPDATE nodes SET node_deployment_status = '{$status}' WHERE node_id = '{$this->getId()}'"); 
    593593                $this->refresh(); 
    594594        } 
     
    601601        function setLastPaged($last_paged) 
    602602        { 
    603                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET last_paged = {$last_paged}::abstime WHERE node_id = '{$this->getId()}'"); 
     603                $this->mDb->execSqlUpdate("UPDATE nodes SET last_paged = {$last_paged}::abstime WHERE node_id = '{$this->getId()}'"); 
    604604                $this->refresh(); 
    605605        } 
     
    622622        function setLastHeartbeatTimestamp($timestamp) 
    623623        { 
    624                 $this->mDb->ExecSqlUpdate("UPDATE nodes SET last_heartbeat_timestamp = '{$timestamp}' WHERE node_id = '{$this->getId()}'"); 
     624                $this->mDb->execSqlUpdate("UPDATE nodes SET last_heartbeat_timestamp = '{$timestamp}' WHERE node_id = '{$this->getId()}'"); 
    625625                $this->refresh(); 
    626626        } 
     
    653653                        global $db; 
    654654                        $value ? $value = 'TRUE' : $value = 'FALSE'; 
    655                         $retval = $db->ExecSqlUpdate("UPDATE nodes SET is_splash_only_node = {$value} WHERE node_id = '{$this->getId()}'", false); 
     655                        $retval = $db->execSqlUpdate("UPDATE nodes SET is_splash_only_node = {$value} WHERE node_id = '{$this->getId()}'", false); 
    656656                        $this->refresh(); 
    657657                } 
     
    676676                { 
    677677                        global $db; 
    678                         $value = $db->EscapeString($value); 
    679                         $retval = $db->ExecSqlUpdate("UPDATE nodes SET custom_portal_redirect_url = '{$value}' WHERE node_id = '{$this->getId()}'", false); 
     678                        $value = $db->escapeString($value); 
     679                        $retval = $db->execSqlUpdate("UPDATE nodes SET custom_portal_redirect_url = '{$value}' WHERE node_id = '{$this->getId()}'", false); 
    680680                        $this->refresh(); 
    681681                } 
     
    12401240        { 
    12411241                global $db; 
    1242                 $content_id = $db->EscapeString($content->getId()); 
     1242                $content_id = $db->escapeString($content->getId()); 
    12431243                $sql = "INSERT INTO node_has_content (node_id, content_id) VALUES ('$this->id','$content_id')"; 
    1244                 $db->ExecSqlUpdate($sql, false); 
     1244                $db->execSqlUpdate($sql, false); 
    12451245                exit; 
    12461246        } 
     
    12501250        { 
    12511251                global $db; 
    1252                 $content_id = $db->EscapeString($content->getId()); 
     1252                $content_id = $db->escapeString($content->getId()); 
    12531253                $sql = "DELETE FROM node_has_content WHERE node_id='$this->id' AND content_id='$content_id'"; 
    1254                 $db->ExecSqlUpdate($sql, false); 
     1254                $db->execSqlUpdate($sql, false); 
    12551255        } 
    12561256 
     
    12711271                else 
    12721272                        $sql = "SELECT content_id FROM node_has_content WHERE node_id='{$this->id}' AND display_location='$display_location' ORDER BY subscribe_timestamp DESC"; 
    1273                 $db->ExecSql($sql, $content_rows, false); 
     1273                $db->execSql($sql, $content_rows, false); 
    12741274 
    12751275                if ($content_rows != null) 
     
    12911291                $sql = "SELECT * FROM content_group JOIN content ON (content.content_id = content_group.content_group_id) JOIN node_has_content ON (node_has_content.content_id = content_group.content_group_id AND node_has_content.node_id = '{$this->getId()}') WHERE is_persistent = true AND is_artistic_content = true AND is_locative_content = true ORDER BY subscribe_timestamp DESC"; 
    12921292                $content_rows = null; 
    1293                 $db->ExecSql($sql, $content_rows, false); 
     1293                $db->execSql($sql, $content_rows, false); 
    12941294                if ($content_rows != null) 
    12951295                { 
     
    13201320                $retval = array (); 
    13211321                $users = null; 
    1322                 $db->ExecSql("SELECT users.user_id FROM users,connections WHERE connections.token_status='".TOKEN_INUSE."' AND users.user_id=connections.user_id AND connections.node_id='{$this->id}'", $users, false); 
     1322                $db->execSql("SELECT users.user_id FROM users,connections WHERE connections.token_status='".TOKEN_INUSE."' AND users.user_id=connections.user_id AND connections.node_id='{$this->id}'", $users, false); 
    13231323                if ($users != null) 
    13241324                { 
     
    13391339                $retval = array (); 
    13401340                $row = null; 
    1341                 $db->ExecSqlUniqueRes("SELECT COUNT(DISTINCT users.user_id) as count FROM users,connections WHERE connections.token_status='".TOKEN_INUSE."' AND users.user_id=connections.user_id AND connections.node_id='{$this->id}'", $row, false); 
     1341                $db->execSqlUniqueRes("SELECT COUNT(DISTINCT users.user_id) as count FROM users,connections WHERE connections.token_status='".TOKEN_INUSE."' AND users.user_id=connections.user_id AND connections.node_id='{$this->id}'", $row, false); 
    13421342                return $row['count']; 
    13431343        } 
     
    13501350                $retval = array (); 
    13511351                $owners = null; 
    1352                 $db->ExecSql("SELECT user_id FROM node_stakeholders WHERE is_owner = true AND node_id='{$this->id}'", $owners, false); 
     1352                $db->execSql("SELECT user_id FROM node_stakeholders WHERE is_owner = true AND node_id='{$this->id}'", $owners, false); 
    13531353                if ($owners != null) 
    13541354                { 
     
    13701370                $retval = array (); 
    13711371                $officers = null; 
    1372                 $db->ExecSql("SELECT user_id FROM node_stakeholders WHERE is_tech_officer = true AND node_id='{$this->id}'", $officers, false); 
     1372                $db->execSql("SELECT user_id FROM node_stakeholders WHERE is_tech_officer = true AND node_id='{$this->id}'", $officers, false); 
    13731373                if ($officers != null) 
    13741374                { 
     
    13881388                global $db; 
    13891389                $rows = null; 
    1390                 $db->ExecSql("SELECT * FROM node_stakeholders WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}'", $rows, false); 
     1390                $db->execSql("SELECT * FROM node_stakeholders WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}'", $rows, false); 
    13911391                if (!$rows) 
    13921392                { 
    1393                         if (!$db->ExecSqlUpdate("INSERT INTO node_stakeholders (node_id, user_id, is_owner) VALUES ('{$this->getId()}','{$user->getId()}', true)", false)) 
     1393                        if (!$db->execSqlUpdate("INSERT INTO node_stakeholders (node_id, user_id, is_owner) VALUES ('{$this->getId()}','{$user->getId()}', true)", false)) 
    13941394                                throw new Exception(_('Could not add owner')); 
    13951395                } 
    13961396                else 
    1397                         if (!$db->ExecSqlUpdate("UPDATE node_stakeholders SET is_owner = true WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}';", false)) 
     1397                        if (!$db->execSqlUpdate("UPDATE node_stakeholders SET is_owner = true WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}';", false)) 
    13981398                                throw new Exception(_('Could not add owner')); 
    13991399        } 
     
    14061406                global $db; 
    14071407                $rows = null; 
    1408                 $db->ExecSql("SELECT * FROM node_stakeholders WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}'", $rows, false); 
     1408                $db->execSql("SELECT * FROM node_stakeholders WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}'", $rows, false); 
    14091409                if (!$rows) 
    14101410                { 
    1411                         if (!$db->ExecSqlUpdate("INSERT INTO node_stakeholders (node_id, user_id, is_tech_officer) VALUES ('{$this->getId()}','{$user->getId()}', true)", false)) 
     1411                        if (!$db->execSqlUpdate("INSERT INTO node_stakeholders (node_id, user_id, is_tech_officer) VALUES ('{$this->getId()}','{$user->getId()}', true)", false)) 
    14121412                                throw new Exception(_('Could not add tech officer')); 
    14131413                } 
    14141414                else 
    1415                         if (!$db->ExecSqlUpdate("UPDATE node_stakeholders SET is_tech_officer = true WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}';", false)) 
     1415                        if (!$db->execSqlUpdate("UPDATE node_stakeholders SET is_tech_officer = true WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}';", false)) 
    14161416                                throw new Exception(_('Could not set existing user as tech officer')); 
    14171417        } 
     
    14231423        { 
    14241424                global $db; 
    1425                 if (!$db->ExecSqlUpdate("UPDATE node_stakeholders SET is_owner = false WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}';", false)) 
     1425                if (!$db->execSqlUpdate("UPDATE node_stakeholders SET is_owner = false WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}';", false)) 
    14261426                        throw new Exception(_('Could not remove owner')); 
    14271427        } 
     
    14331433        { 
    14341434                global $db; 
    1435                 if (!$db->ExecSqlUpdate("UPDATE node_stakeholders SET is_tech_officer = false WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}';", false)) 
     1435                if (!$db->execSqlUpdate("UPDATE node_stakeholders SET is_tech_officer = false WHERE node_id = '{$this->getId()}' AND user_id = '{$user->getId()}';", false)) 
    14361436                        throw new Exception(_('Could not remove tech officer')); 
    14371437        } 
     
    14471447                        $retval = false; 
    14481448                        $row = null; 
    1449                         $db->ExecSqlUniqueRes("SELECT * FROM node_stakeholders WHERE is_owner = true AND node_id='{$this->id}' AND user_id='{$user_id}'", $row, false); 
     1449                        $db->execSqlUniqueRes("SELECT * FROM node_stakeholders WHERE is_owner = true AND node_id='{$this->id}' AND user_id='{$user_id}'", $row, false); 
    14501450                        if ($row != null) 
    14511451                        { 
     
    14661466                        $retval = false; 
    14671467                        $row = null; 
    1468                         $db->ExecSqlUniqueRes("SELECT * FROM node_stakeholders WHERE is_tech_officer = true AND node_id='{$this->id}' AND user_id='{$user_id}'", $row, false); 
     1468                        $db->execSqlUniqueRes("SELECT * FROM node_stakeholders WHERE is_tech_officer = true AND node_id='{$this->id}' AND user_id='{$user_id}'", $row, false); 
    14691469                        if ($row != null) 
    14701470                        { 
     
    14801480                global $db; 
    14811481                $retval = false; 
    1482                 $id_str = $db->EscapeString($id); 
     1482                $id_str = $db->escapeString($id); 
    14831483                $sql = "SELECT * FROM nodes WHERE node_id='{$id_str}'"; 
    14841484                $row = null; 
    1485                 $db->ExecSqlUniqueRes($sql, $row, false); 
     1485                $db->execSqlUniqueRes($sql, $row, false); 
    14861486                if ($row != null) 
    14871487                { 
     
    15071507 */ 
    15081508?> 
    1509