r2072 + more changes to make compact URLs work
[racktables] / process.php
CommitLineData
b325120a 1<?php
e673ee24
DO
2
3require 'inc/init.php';
da958e52 4fixContext();
e673ee24 5
da958e52 6if (empty ($op) or !isset ($ophandler[$pageno][$tabno][$op]))
e673ee24
DO
7{
8 showError ("Invalid request in operation broker: page '${pageno}', tab '${tabno}', op '${op}'");
9 die();
10}
11
12// We have a chance to handle an error before starting HTTP header.
46f92ff7
DO
13if (!isset ($delayauth[$pageno][$tabno][$op]) and !permitted())
14 $location = buildRedirectURL_ERR ('Operation not permitted!');
15else
16 $location = $ophandler[$pageno][$tabno][$op]();
e673ee24
DO
17header ("Location: " . $location);
18
19?>