include '../../../include/general.php'; include '../../../include/resource_functions.php'; include 'model/db.php'; // Specify the name of this plugin and the heading to display for the page. $plugin_name = 'xlsimport'; //$plugin_page_heading = $lang['test_configuration1']; // Build the $page_def array of descriptions of each configuration variable the plugin uses. // Do the page generation ritual -- don't change this section. include '../../../include/header.php'; include 'controllers/config.php'; include 'views/view.php'; if (isset($_REQUEST['store'])) { if (isset($_REQUEST['maxCols'])) { $maxCols = $_REQUEST['maxCols']; putConfig("maxCols", $maxCols); } if (isset($_REQUEST['maxRows'])) { $maxRows = $_REQUEST['maxRows']; putConfig("maxRows", $maxRows); } if (isset($_REQUEST['template'])) { $template = $_REQUEST['template']; putConfig("template", $template); } if (isset($_REQUEST['mediaPath'])) { $mediaPath = $_REQUEST['mediaPath']; putConfig("mediaPath", $mediaPath); } } View::configure(); include '../../../include/footer.php';
/** * Init the theme * * @param string $theme selected theme */ function init_theme($theme = null) { // Init the view class require_once LIBRARY_DIR . "View.php"; // if theme dir is a directory if (is_dir($theme_dir = VIEWS_DIR . $theme . ((!$theme or substr($theme, -1, 1)) == "/" ? null : "/"))) { define("THEME_DIR", $theme_dir); View::configure("tpl_dir", THEME_DIR); View::configure("cache_dir", CACHE_DIR); View::configure("base_url", URL); } else { $this->_draw_page_not_found("theme_not_found"); } }