From 028e89d0dc1aa52033d2a16cb17946abfe09e909 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Wed, 8 Oct 2025 06:59:43 -0700 Subject: play nicer with MantisCoreFormatting; put cl/ syntax behind config there had been an issue where plugin load order was inconsistent; that's fixed. also, there's now a config page for the plugin. Force-Push: initial development in a new repo Change-Id: I654eba97fe6fbb12d4e97630be79b9e3c8b21404 --- pages/config.php | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++ pages/config_edit.php | 38 +++++++++++++++++++++ 2 files changed, 129 insertions(+) create mode 100644 pages/config.php create mode 100644 pages/config_edit.php (limited to 'pages') diff --git a/pages/config.php b/pages/config.php new file mode 100644 index 0000000..109e4aa --- /dev/null +++ b/pages/config.php @@ -0,0 +1,91 @@ + + +
+
+
+ +
+ + +
+
+

+ + +

+
+
+
+
+ + + + + + + +
+ +
+ + + +
+ + + +
+
+
+
+ +
+
+
+
+
+
+ +. + +/** + * Edit Core Formatting Configuration + * @package MantisBT + * @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org + * @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net + * @link http://www.mantisbt.org + */ + +form_security_validate( 'plugin_smalltech_config_edit' ); + +auth_reauthenticate(); +access_ensure_global_level( config_get( 'manage_plugin_threshold' ) ); + +$f_process_gerrit_links = gpc_get_int( 'process_gerrit_links', ON ); + +if( plugin_config_get( 'process_gerrit_links' ) != $f_process_gerrit_links ) { + plugin_config_set( 'process_gerrit_links', $f_process_gerrit_links ); +} + +form_security_purge( 'plugin_smalltech_config_edit' ); + +print_header_redirect( plugin_page( 'config', true ) ); -- cgit 1.4.1