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