You should have received a copy of the GNU General Public License along with Databases. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; if (!isset($_GET["id"])) { $_GET["id"] = ""; } if (!isset($_GET["withtemplate"])) { $_GET["withtemplate"] = ""; } if (!isset($_GET["plugin_databases_databases_id"])) { $_GET["plugin_databases_databases_id"] = ""; } $script = new PluginDatabasesScript(); if (isset($_POST["add"])) { if ($script->canCreate()) { $script->add($_POST); } Html::back(); } else { if (isset($_POST["update"])) { if ($script->canCreate()) { $script->update($_POST); } Html::back(); } else { if (isset($_POST["delete"])) { if ($script->canCreate()) { $script->delete($_POST, 1);