<?php
+// $Id$
+
// 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';
-
-if ( $_GET['action'] ) {
- include 'tag_edit.php';
- } else if ( ! $_GET['add'] ) {
- include 'tags.php';
- } else {
- include 'tag_set.php';
- }
-
-// Print footer
-include 'plc_footer.php';
+if ($_GET['id']) require ('tag.php') ;
+else require ('tags.php');
?>