more inline updates & cleaned up tags
[plewww.git] / planetlab / tags / index.php
index 1bc59d1..bb3b849 100644 (file)
@@ -1,31 +1,11 @@
 <?php
 
+// $Id: index.php 11603 2009-01-19 16:44:53Z thierry $
+
 // Require login
 require_once 'plc_login.php';
 
-// Get session and API handles
-require_once 'plc_session.php';
-global $plc, $api;
-
-// Print header
-require_once 'plc_drupal.php';
-include 'plc_header.php';
-
-// Common functions
-require_once 'plc_functions.php';
-
-// add or update
-if ( $_GET['action'] ) {
-  include 'tag_form.php';
-// list all
- } else if ( ! $_GET['add'] ) {
-  include 'tags.php';
-// actually set a tag on an object
- } else {
-  include 'tag_set.php';
- }
-
-// Print footer
-include 'plc_footer.php';
+if ($_GET['id']) require ('tag.php') ;
+else             require ('tags.php');
 
 ?>