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