[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] Enhance tiki filter
"Elifeleti Mukisa Dan \(@Danelif\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <68e610272a1f9_2ce008894581@gitlab-sidekiq-low-urgency-cpu-bound-v2-8b69f8fc4-v7ggf.mail> |
Elifeleti Mukisa Dan pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
8b36bfca by Espoir Baraka at 2025-10-08T07:09:59+00:00
[ENH] Enhance tiki filter
---
* [ENH] Enhance tiki filter in tiki-admin_contribution.php
* [ENH] Enhance tiki filter in tiki-admin_content_templates.php
* [ENH] Enhance tiki filter in tiki-admin_categories.php
* [ENH] Enhance tiki filter in tiki-admin_calendars.php
* [ENH] Enhance tiki filter in tiki-admin_banning.php
* [ENH] Enhance tiki filter in tiki-admin_actionlog.php
* [ENH] Enhance tiki filter in tiki-admin_integrator.php
See merge request tikiwiki/tiki!8730
- - - - -
7 changed files:
- tiki-admin_actionlog.php
- tiki-admin_banning.php
- tiki-admin_calendars.php
- tiki-admin_categories.php
- tiki-admin_content_templates.php
- tiki-admin_contribution.php
- tiki-admin_integrator.php
Changes:
=====================================
tiki-admin_actionlog.php
=====================================
@@ -14,21 +14,23 @@ use Tiki\Lib\GraphEngine\GDGRenderer;
$inputConfiguration = [
[
'staticKeyFilters' => [
- 'save' => 'bool', //post
- 'saveAction' => 'bool', //post
+ 'save' => 'alpha', //post
+ 'saveAction' => 'alpha', //post
+ 'unset' => 'alpha', //post
'action_log_type' => 'striptags', //post
'action_log_ip' => 'striptags', //post
'action_log_action' => 'striptags', //post
'find' => 'striptags', //post
'offset' => 'digits', //post
- 'export' => 'bool', //post
+ 'export' => 'alpha', //post
'max' => 'digits', //post
'actionId' => 'digits', //post
'contributions' => 'striptags', //post
'startDate' => 'digits', //post
+ 'startDate_Year' => 'digits', //post
'endDate' => 'digits', //post
- 'list' => 'bool', //post
- 'graph' => 'bool', //post
+ 'list' => 'alpha', //post
+ 'graph' => 'alpha', //post
'categId' => 'int', //post
'startDate_Month' => 'digits', //post
'Time_Hour' => 'digits', //post
@@ -41,22 +43,23 @@ $inputConfiguration = [
'end_Second' => 'digits', //post
'endDate_Day' => 'digits', //post
'endDate_Year' => 'digits', //post
- 'export_bbb' => 'bool', //post
- 'unit' => 'striptags', //post
- 'sort_mode' => 'striptags', //get
- 'contribTime' => 'striptags', //post
- 'barPlot' => 'striptags', //post
- 'bgcolor' => 'striptags', //post
- 'legendBgcolor' => 'striptags', //post
+ 'export_bbb' => 'alpha', //post
+ 'unit' => 'alpha', //post
+ 'sort_mode' => 'alnumdash', //get
+ 'contribTime' => 'alpha', //post
+ 'barPlot' => 'alpha', //post
+ 'bgcolor' => 'alpha', //post
+ 'legendBgcolor' => 'alpha', //post
'galleryId' => 'int', //post
'time' => 'digits', //post
'action' => 'striptags' //post
],
'staticKeyFiltersForArrays' => [
- 'cat_categories' => 'striptags', //post
+ 'cat_categories' => 'digits', //post
'selectedUsers' => 'username', //post
'selectedGroups' => 'groupname', //post
'contributors' => 'striptags', //post
+ 'checked' => 'digits', //post
],
],
];
=====================================
tiki-admin_banning.php
=====================================
@@ -11,16 +11,39 @@
$inputConfiguration = [
[
'staticKeyFilters' => [
- 'save' => 'bool', //post
- 'import' => 'bool', //post
+ 'save' => 'alpha', //post
+ 'import' => 'alpha', //post
+ 'del' => 'alpha', //post
+ 'banId' => 'int', //post
'title' => 'text', //post
+ 'mode' => 'alpha', //post
'userreg' => 'text', //post
'ip1' => 'int', //post
'ip2' => 'int', //post
'ip3' => 'int', //post
'ip4' => 'int', //post
- 'use_dates' => 'bool', //post
+ 'use_dates' => 'alpha', //post
+ 'date_fromMonth' => 'digits', //post
+ 'date_fromDay' => 'digits', //post
+ 'date_fromYear' => 'digits', //post
+ 'date_toMonth' => 'digits', //post
+ 'date_toDay' => 'digits', //post
+ 'date_toYear' => 'digits', //post
'message' => 'xss', //post
+ 'import_as_new' => 'alpha', //post
+ 'export' => 'alpha', //post
+ 'max' => 'digits', //post
+ 'sort_mode' => 'alnumdash', //post
+ 'offset' => 'digits', //post
+ 'find' => 'striptags', //post
+ 'mass_ban_ip' => 'striptags', //get
+ 'mass_ban_ip_actionlog' => 'striptags', //get
+ 'mass_ban_ip_users' => 'striptags', //get
+ ],
+ 'staticKeyFiltersForArrays' => [
+ 'delsec' => 'int',
+ 'section' => 'alpha',
+ 'multi_banned_ip' => 'alpha',
],
],
];
=====================================
tiki-admin_calendars.php
=====================================
@@ -12,46 +12,45 @@ $inputConfiguration = [
[
'staticKeyFilters' => [
'calendarId' => 'int', //post
- 'offset' => 'striptags', //get
- 'sort_mode' => 'striptags', //get
+ 'offset' => 'digits', //get
+ 'sort_mode' => 'alnumdash', //get
'description' => 'xss', //post
'drop' => 'int', //get
'remove_subscription' => 'int', //get
- 'save' => 'bool', //post
- 'customlanguages' => 'lang', //post
- 'customlocations' => 'striptags', //post
- 'customparticipants' => 'striptags', //post
- 'customcategories' => 'striptags', //post
- 'custompriorities' => 'striptags', //post
- 'customsubscription' => 'striptags', //post
- 'personal' => 'striptags', //post
- 'private' => 'striptags', //post
- 'customstatus' => 'striptags', //post
+ 'save' => 'alpha', //post
+ 'customlanguages' => 'alpha', //post
+ 'customlocations' => 'alpha', //post
+ 'customparticipants' => 'alpha', //post
+ 'customcategories' => 'alpha', //post
+ 'custompriorities' => 'alpha', //post
+ 'customsubscription' => 'alpha', //post
+ 'personal' => 'alpha', //post
+ 'private' => 'alpha', //post
+ 'customstatus' => 'alpha', //post
'startday_Meridian' => 'digits', //post
'startday_Hour' => 'digits', //post
'endday_Meridian' => 'digits', //post
'endday_Hour' => 'digits', //post
- 'allday' => 'striptags', //post
- 'nameoneachday' => 'striptags', //post
- 'copybuttononeachevent' => 'bool', //post
+ 'allday' => 'alpha', //post
+ 'nameoneachday' => 'alpha', //post
+ 'copybuttononeachevent' => 'alpha', //post
'name' => 'text', //post
'groupforAlert' => 'groupname', //post
- 'showeachuser' => 'bool', //post
- 'clean' => 'bool', //post
+ 'showeachuser' => 'alpha', //post
+ 'clean' => 'alpha', //post
'days' => 'int', //post
'find' => 'text', //post
- 'savesub' => 'bool', //post
- 'subscriptionId' => 'int', //post
+ 'savesub' => 'alpha', //post
+ 'subscriptionId' => 'int', //post/get
'sync_subscription' => 'int', //get
'newstatus' => 'text', //post
+ 'cookietab' => 'digits', //get
],
'staticKeyFiltersForArrays' => [
- 'options' => 'text', //post
'viewdays' => 'int', //post
- 'show' => 'bool', //post
- 'subscription' => 'none', //post
+ 'show' => 'alpha', //post
+ 'subscription' => 'text', //post
],
- 'save' => 'text',
],
];
$section = 'admin';
=====================================
tiki-admin_categories.php
=====================================
@@ -11,12 +11,49 @@
$inputConfiguration = [
[
'staticKeyFilters' => [
- 'save' => 'bool', //post
+ 'save' => 'alpha', //post
+ 'import' => 'alpha', //post
'parentId' => 'int', //get
+ 'categId' => 'int', //get/post
'cookietab' => 'int', //get
- 'sort_mode' => 'striptags', //get
+ 'sort_mode' => 'alnumdash', //get
'name' => 'striptags', //post
'description' => 'xss', //post
+ 'pollId' => 'int', //post
+ 'faqId' => 'int', //post
+ 'trackerId' => 'int', //post
+ 'quizId' => 'int', //post
+ 'forumId' => 'int', //post
+ 'galleryId' => 'int', //post
+ 'file_galleryId' => 'int', //post
+ 'articleId' => 'int', //post
+ 'blogId' => 'int', //post
+ 'directoryId' => 'int', //post
+ 'removeObject' => 'int', //get
+ 'removeCat' => 'int', //get
+ 'tplGroupContainer' => 'int', //post
+ 'tplGroupPattern' => 'text', //post
+ 'parentPerms' => 'alpha', //post
+ 'applyRoles' => 'alpha', //post
+ 'find' => 'text', //get
+ 'find_objects' => 'text', //get
+ 'offset' => 'int', //get
+ 'addpage' => 'alpha', //post
+ 'addpoll' => 'alpha', //post
+ 'addfaq' => 'alpha', //post
+ 'addtracker' => 'alpha', //post
+ 'addquiz' => 'alpha', //post
+ 'addforum' => 'alpha', //post
+ 'addgallery' => 'alpha', //post
+ 'addfilegallery' => 'alpha', //post
+ 'addarticle' => 'alpha', //post
+ 'addblog' => 'alpha', //post
+ 'adddirectory' => 'alpha', //post
+ ],
+ 'staticKeyFiltersForArrays' => [
+ 'pageName' => 'text', //post
+ 'categoryRole' => 'int', //post
+ 'rolesToApply' => 'int', //post
],
],
];
=====================================
tiki-admin_content_templates.php
=====================================
@@ -15,24 +15,24 @@ $inputConfiguration = [
'remove' => 'int', //post
'removesection' => 'string', //post
'rtemplateId' => 'int', //post
- 'preview' => 'bool', //post
- 'section_html' => 'bool', //post
+ 'preview' => 'alpha', //post
+ 'section_html' => 'alpha', //post
'name' => 'alpha', //post
- 'section_wiki' => 'bool', //post
- 'section_file_galleries' => 'bool', //post
- 'section_newsletters' => 'bool', //post
- 'section_events' => 'bool', //post
- 'section_cms' => 'bool', //post
+ 'section_wiki' => 'alpha', //post
+ 'section_file_galleries' => 'alpha', //post
+ 'section_newsletters' => 'alpha', //post
+ 'section_events' => 'alpha', //post
+ 'section_cms' => 'alpha', //post
'page_name' => 'pagename', //post
'template_type' => 'string', //post
- 'save' => 'bool', //post
- 'section_wiki_html' => 'bool', //post
+ 'save' => 'alpha', //post
+ 'section_wiki_html' => 'alpha', //post
'locked' => 'string', //post
'sort_mode' => 'string', //get
'offset' => 'digits', //get
'find' => 'string', //post
- 'mode_normal' => 'bool', //post
- 'mode_wysiwyg' => 'bool', //post
+ 'mode_normal' => 'alpha', //post
+ 'mode_wysiwyg' => 'alpha', //post
'content' => 'xss', //post
],
],
=====================================
tiki-admin_contribution.php
=====================================
@@ -18,11 +18,12 @@ $inputConfiguration = [
'feature_contribution_mandatory_forum' => 'bool', //post
'feature_contribution_mandatory_comment' => 'bool', //post
'feature_contribution_mandatory_blog' => 'bool', //post
+ 'feature_contribution_display_in_comment' => 'bool', //post
'feature_contributor_wiki' => 'bool', //post
- 'new_contribution_name' => 'alpha', //post
- 'description' => 'alpha', //post
+ 'new_contribution_name' => 'text', //post
+ 'description' => 'text', //post
'replace' => 'bool', //post
- 'name' => 'alpha', //post
+ 'name' => 'text', //post
'remove' => 'int', //post
'save' => 'bool', //post
],
=====================================
tiki-admin_integrator.php
=====================================
@@ -12,13 +12,14 @@ $inputConfiguration = [
[
'staticKeyFilters' => [
'repID' => 'int', //post
- 'name' => 'alpha', //post
- 'start' => 'alpha', //post
- 'cssfile' => 'alpha', //post
+ 'name' => 'text', //post
+ 'path' => 'text', //post
+ 'start' => 'text', //post
+ 'cssfile' => 'text', //post
'expiration' => 'int', //post
'description' => 'xss', //post
- 'vis' => 'bool', //post
- 'cacheable' => 'bool', //post
+ 'vis' => 'alpha', //post
+ 'cacheable' => 'alpha', //post
'action' => 'striptags', //post
'save' => 'striptags', //post
],
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8b36bfca5a71529cce2baa0cec6ed2760a3034a1
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8b36bfca5a71529cce2baa0cec6ed2760a3034a1
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs