treeview is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. treeview is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with treeview. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; $config = new PluginTreeviewConfig(); if (isset($_POST["update"])) { $config->update($_POST); Html::back(); } else { $plugin = new Plugin(); if ($plugin->isInstalled("treeview") && $plugin->isActivated("treeview")) { Html::header(__('Tree view', 'treeview'), $_SERVER["PHP_SELF"], "config", "plugins"); $config->showForm(1); } else { Html::header(__('Setup'), $_SERVER['PHP_SELF'], "config", "plugins"); // Get the configuration from the database and show it echo " <script type='text/javascript'>\n if (top != self)\n top.location = self.location;\n </script>"; } } Html::footer();