/[locfinder]/locfinder/action/links.php
ViewVC logotype

Diff of /locfinder/action/links.php

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

revision 1.2 by yob, Mon Jan 20 09:09:38 2003 UTC revision 1.3 by yob, Fri Jan 24 10:47:53 2003 UTC
# Line 27  Line 27 
27   *   *
28   ***************************************************************************/   ***************************************************************************/
29    
30  if (!isset($_SESSION["logged_in"])) {  if (!$opt_links) {
31    
32        $_SESSION["msg"] = "This feature has been disabled. Sorry.";
33        $_SESSION["msg_type"] = 0;
34        header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=edit&node_id=" . $node_id);
35    
36    } elseif (!isset($_SESSION["logged_in"])) {
37    
38      $_SESSION["msg"] = "You must be logged in to edit node" . $node_id;      $_SESSION["msg"] = "You must be logged in to edit node" . $node_id;
39      $_SESSION["msg_type"] = 0;      $_SESSION["msg_type"] = 0;
# Line 43  if (!isset($_SESSION["logged_in"])) { Line 49  if (!isset($_SESSION["logged_in"])) {
49    
50      if ($option == "new") {      if ($option == "new") {
51    
52         create_link($interface_1, $interface_2);         create_link($interface_1, $interface_2, $class, $bandwidth);
53    
54         header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=edit&node_id=" . $node_id);         header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=edit&node_id=" . $node_id);
55    

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