You should have received a copy of the GNU General Public License along with Routetables. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; if (!isset($_GET["id"])) { $_GET["id"] = ""; } if (!isset($_GET["withtemplate"])) { $_GET["withtemplate"] = ""; } $route = new PluginRoutetablesRoutetable(); $route_item = new PluginRoutetablesRoutetable_Item(); if (isset($_POST["add"])) { $route->check(-1, 'w', $_POST); $newID = $route->add($_POST); Html::back(); } else { if (isset($_POST["delete"])) { $route->check($_POST['id'], 'w'); $route->delete($_POST); $route->redirectToList(); } else { if (isset($_POST["restore"])) { $route->check($_POST['id'], 'w'); $route->restore($_POST); $route->redirectToList(); } else { if (isset($_POST["purge"])) { $route->check($_POST['id'], 'w'); $route->delete($_POST, 1);