handles urls with settings
[plewww.git] / planetlab / tags / index.php
1 <?php
2
3 // Require login
4 require_once 'plc_login.php';
5
6 // Get session and API handles
7 require_once 'plc_session.php';
8 global $plc, $api;
9
10 // Print header
11 require_once 'plc_drupal.php';
12 include 'plc_header.php';
13
14 // Common functions
15 require_once 'plc_functions.php';
16
17 // add or update
18 if ( $_GET['action'] ) {
19   include 'tag_form.php';
20 // list all
21  } else if ( ! $_GET['add'] ) {
22   include 'tags.php';
23 // actually set a tag on an object
24  } else {
25   include 'tag_set.php';
26  }
27
28 // Print footer
29 include 'plc_footer.php';
30
31 ?>