/[locfinder]/locfinder/functions/func_node.php
ViewVC logotype

Diff of /locfinder/functions/func_node.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by yob, Sun Jan 19 14:41:11 2003 UTC revision 1.3 by yob, Fri Jan 24 10:47:53 2003 UTC
# Line 517  if($in_locfinder) { Line 517  if($in_locfinder) {
517       *       *
518       */       */
519    
520      function create_link($interface_1, $interface_2) {      function create_link($interface_1, $interface_2, $class, $bandwidth) {
521    
522          // create DB class          // create DB class
523          $loc_db = new locDatabase;          $loc_db = new locDatabase;
524    
525          // build the SQL statement to insert the link into the DB          // build the SQL statement to insert the link into the DB
526          $sql = "INSERT INTO links(interface_1, interface_2) VALUES('$interface_1', '$interface_2')";          $sql = "INSERT INTO links(interface_1, interface_2, class, bandwidth) VALUES('$interface_1', '$interface_2', '$class', $bandwidth)";
527    
528          $loc_db->query( $sql );          $loc_db->query( $sql );
529    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26