Changeset 7858 for trunk/src/inc/KMLFile.class.php
- Timestamp:
- Apr 22, 2010, 11:06:55 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/inc/KMLFile.class.php
r7788 r7858 197 197 // Looking for "location" of the node 198 198 if (!$location = $this->findInLocationFile($file, 'location = ', $nodes[0][$i][1])) { 199 trigger_log(SYSLOG_ WARNING, 'Could not find the "location" of node "' . $i . '", skipping to next', __FILE__, __LINE__);199 trigger_log(SYSLOG_ERROR, 'Could not find the "location" of node "' . $i . '", skipping to next', __FILE__, __LINE__); 200 200 continue; 201 201 } 202 202 // Looking for "status" of the node 203 203 if (!$status = $this->findInLocationFile($file, 'status = ', $nodes[0][$i][1])) { 204 trigger_log(SYSLOG_ WARNING, 'Could not find the "status" of node "' . $i . '", skipping to next', __FILE__, __LINE__);204 trigger_log(SYSLOG_ERROR, 'Could not find the "status" of node "' . $i . '", skipping to next', __FILE__, __LINE__); 205 205 continue; 206 206 } 207 207 // Looking for "latitude" of the node 208 208 if (!$latitude = $this->findInLocationFile($file, 'latitude = ', $nodes[0][$i][1])) { 209 trigger_log(SYSLOG_ WARNING, 'Could not find the "latitude" of node "' . $i . '", skipping to next', __FILE__, __LINE__);209 trigger_log(SYSLOG_ERROR, 'Could not find the "latitude" of node "' . $i . '", skipping to next', __FILE__, __LINE__); 210 210 continue; 211 211 } 212 212 // Looking for "longitude" of the node 213 213 if (!$longitude = $this->findInLocationFile($file, 'longitude = ', $nodes[0][$i][1])) { 214 trigger_log(SYSLOG_ WARNING, 'Could not find the "longitude" of node "' . $i . '", skipping to next', __FILE__, __LINE__);214 trigger_log(SYSLOG_ERROR, 'Could not find the "longitude" of node "' . $i . '", skipping to next', __FILE__, __LINE__); 215 215 continue; 216 216 } 217 217 // Looking for "interfaces" of the node 218 218 if (!$interfaces = $this->findInLocationFile($file, 'interfaces = ', $nodes[0][$i][1])) { 219 trigger_log(SYSLOG_ WARNING, 'Could not find the "interfaces" of node "' . $i . '", skipping to next', __FILE__, __LINE__);219 trigger_log(SYSLOG_ERROR, 'Could not find the "interfaces" of node "' . $i . '", skipping to next', __FILE__, __LINE__); 220 220 continue; 221 221 } 222 222 // Looking for "masterip" of the node 223 223 if (!$masterip = $this->findInLocationFile($file, 'masterip = ', $nodes[0][$i][1])) { 224 trigger_log(SYSLOG_ WARNING, 'Could not find the "masterip" of node "' . $i . '", skipping to next', __FILE__, __LINE__);224 trigger_log(SYSLOG_ERROR, 'Could not find the "masterip" of node "' . $i . '", skipping to next', __FILE__, __LINE__); 225 225 continue; 226 226 } 227 227 // Looking for "nodetype" of the node 228 228 if (!$nodetype = $this->findInLocationFile($file, 'nodetype = ', $nodes[0][$i][1])) { 229 trigger_log(SYSLOG_ WARNING, 'Could not find the "nodetype" of node "' . $i . '", skipping to next', __FILE__, __LINE__);229 trigger_log(SYSLOG_ERROR, 'Could not find the "nodetype" of node "' . $i . '", skipping to next', __FILE__, __LINE__); 230 230 continue; 231 231 } 232 232 // Looking for "name" of the node 233 233 if (!$name = $this->findInLocationFile($file, 'name = ', $nodes[0][$i][1])) { 234 trigger_log(SYSLOG_ WARNING, 'Could not find the "name" of node "' . $i . '", skipping to next', __FILE__, __LINE__);234 trigger_log(SYSLOG_ERROR, 'Could not find the "name" of node "' . $i . '", skipping to next', __FILE__, __LINE__); 235 235 continue; 236 236 }
Note:
See TracChangeset
for help on using the changeset viewer.