<?php /** * @since 8.3.2 * @version 10.4.9 */ $pathToIndex = '..'; require_once $pathToIndex . '/lib/Loggix/Application.php'; $app = new Loggix_Application(); $sessionState = $app->getSessionState(); $item = $app->setMenuItems($sessionState); // Session if ($sessionState == 'on') { $app->insertTagSafe(); // Save Changes if (isset($_POST['root_dir'], $_POST['loggix_title'], $_POST['page_max'], $_POST['language'], $_POST['xml_version'], $_POST['tz'], $_POST['show_date_title'], $_POST['title_date_format'], $_POST['post_date_format'], $_POST['upload_file_max'], $_POST['menu_list'], $_POST['css_cookie_name'], $_POST['css_cookie_time'], $_POST['css_list'], $_POST['recent_comment_max'], $_POST['recent_trackback_max'], $_POST['block_tags'], $_POST['block_keywords'], $_POST['block_ascii_only_text'], $_POST['save_settings'])) { if ($_POST['save_settings'] == 'save') { // Set new value $root_dir = $_POST['root_dir']; $loggix_title = $_POST['loggix_title']; $page_max = $_POST['page_max']; $language = $_POST['language']; $xml_version = $_POST['xml_version']; $tz = $_POST['tz']; $maxlifetime = '60'; //$_POST['maxlifetime']; $show_date_title = $_POST['show_date_title']; $title_date_format = $_POST['title_date_format']; $post_date_format = $_POST['post_date_format']; $upload_file_max = $_POST['upload_file_max']; $menu_list = str_replace('\\r', PHP_EOL, str_replace("\n", PHP_EOL, $_POST['menu_list']));