r1430 + trac#85 --- got rid of the following functions:
[racktables] / inc / pagehandlers.php
index d2a7783632b2dc8d54890cc43a417f2752cccb57..f346a9ad97d12d2014e9de4d3fb6460d7952d1eb 100644 (file)
@@ -71,135 +71,12 @@ function assertBoolArg ($argname, $ok_if_empty = FALSE)
        }
 }
 
-function handler_row ($tabno)
-{
-       assertUIntArg ('row_id');
-       switch ($tabno)
-       {
-               case 'default':
-                       renderRow ($_REQUEST['row_id']);
-                       break;
-               case 'newrack':
-                       renderNewRackForm ($_REQUEST['row_id']);
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_row().");
-       }
-}
-
-function handler_rack ($tabno)
-{
-       assertUIntArg ('rack_id');
-       switch ($tabno)
-       {
-               case 'default':
-                       // FIXME: add tab renderer instead of table generator
-                       renderRackPage ($_REQUEST['rack_id']);
-                       break;
-               case 'problems':
-                       renderRackProblems ($_REQUEST['rack_id']);
-                       break;
-               case 'design':
-                       renderRackDesign ($_REQUEST['rack_id']);
-                       break;
-               case 'edit':
-                       renderEditRackForm ($_REQUEST['rack_id']);
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_rack().");
-       }
-}
-
-function handler_objects ($tabno)
-{
-       switch ($tabno)
-       {
-               case 'default':
-                       renderObjectGroupSummary();
-                       break;
-               case 'newobj':
-                       renderNewObjectForm();
-                       break;
-               case 'newmulti':
-                       renderAddMultipleObjectsForm();
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_objects().");
-       }
-}
-
 function handler_objgroup ()
 {
        assertUIntArg ('group_id');
        renderObjectGroup ($_REQUEST['group_id']);
 }
 
-function handler_rackspace ($tabno)
-{
-       switch ($tabno)
-       {
-               case 'default':
-                       renderRackspace();
-                       break;
-               case 'history':
-                       renderRackspaceHistory ();
-                       break;
-               case 'firstrow':
-                       renderFirstRowForm ();
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_rackspace().");
-       }
-}
-
-function handler_ipv4space ($tabno)
-{
-       switch ($tabno)
-       {
-               case 'default':
-                       renderAddressspace();
-                       break;
-               case 'newrange':
-                       renderAddNewRange();
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_ipv4space().");
-       }
-}
-
-function handler_iprange ($tabno)
-{
-       switch ($tabno)
-       {
-               case 'default':
-                       renderIPRange();
-                       break;
-               case 'properties':
-                       renderIPRangeProperties();
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_iprange().");
-       }
-}
-
-function handler_ipaddress ($tabno)
-{
-       switch ($tabno)
-       {
-               case 'default':
-                       renderIPAddress();
-                       break;
-               case 'properties':
-                       renderIPAddressProperties();
-                       break;
-               case 'assignment':
-                       renderIPAddressAssignment();
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_ipaddress().");
-       }
-}
-
 function handler_search ($tabno)
 {
        renderSearchResults();
@@ -217,54 +94,6 @@ function handler_config ($tabno)
        }
 }
 
-function handler_accounts ($tabno)
-{
-       switch ($tabno)
-       {
-               case 'default':
-                       renderAccounts();
-                       break;
-               case 'edit':
-                       renderAccountsEditForm();
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_accounts().");
-       }
-}
-
-function handler_perms ($tabno)
-{
-       switch ($tabno)
-       {
-               case 'default':
-                       renderPermissions();
-                       break;
-               case 'edit':
-                       renderPermissionsEditForm();
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_perms().");
-       }
-}
-
-function handler_ui ($tabno)
-{
-       switch ($tabno)
-       {
-               case 'default':
-                       renderUIConfig();
-                       break;
-               case 'edit':
-                       renderUIConfigEditForm();
-                       break;
-               case 'reset':
-                       renderUIResetForm();
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_ui().");
-       }
-}
-
 function handler_portmap ($tabno)
 {
        switch ($tabno)
@@ -280,57 +109,4 @@ function handler_portmap ($tabno)
        }
 }
 
-function handler_dict ($tabno)
-{
-       switch ($tabno)
-       {
-               case 'default':
-                       renderDictionary();
-                       break;
-               case 'edit':
-                       renderDictionaryEditor();
-                       break;
-               case 'chapters':
-                       renderChaptersEditor();
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_dict().");
-       }
-}
-
-function handler_attrs ($tabno)
-{
-       switch ($tabno)
-       {
-               case 'default':
-                       renderAttributes();
-                       break;
-               case 'editattrs':
-                       renderEditAttributesForm ();
-                       break;
-               case 'editmap':
-                       renderEditAttrMapForm ();
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_attrs().");
-       }
-}
-
-function handler_reports ($tabno)
-{
-       switch ($tabno)
-       {
-               case 'default':
-                       renderReportSummary();
-                       break;
-               default:
-                       showError ("Invalid tab '${tabno}' requested in handler_reports().");
-       }
-}
-
-function handler_help ($tabno)
-{
-       renderHelpTab ($tabno);
-}
-
 ?>