debugging = TRUE; $map->ReadConfig($mapfile); if(1==0) { $nodename = "Centre"; $newnodename = "dave"; $newnode = $map->nodes[$nodename]; $newnode->name = $newnodename; $map->nodes[$newnodename] = $newnode; unset($map->nodes[$nodename]); foreach ($map->links as $link) { if($link->a->name == $nodename) { $map->links[$link->name]->a = $newnode; } if($link->b->name == $nodename) { $map->links[$link->name]->b = $newnode; } } // print_r($map->nodes['main']); } $map->WriteConfig("output.conf"); print "Wrote config\n"; // print_r($map); // vim:ts=4:sw=4: ?>
weathermap |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|