From 0d0b7fb3bdff727e3d1ef8eddd0b88c7cd2960fa Mon Sep 17 00:00:00 2001 From: petko Date: Sun, 18 Aug 2024 09:14:23 +0000 Subject: Add $EnableCommonEnhancements. git-svn-id: svn://pmwiki.org/pmwiki/trunk@4769 524c5546-5005-0410-9a3e-e25e191bd360 --- scripts/stdconfig.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/scripts/stdconfig.php b/scripts/stdconfig.php index b7d33a91..079bacaa 100644 --- a/scripts/stdconfig.php +++ b/scripts/stdconfig.php @@ -42,6 +42,31 @@ while(count($PostConfig)) { elseif (file_exists($k)) include_once($k); } +if (IsEnabled($EnableCommonEnhancements,0)) { + # Security + review changes + SDV($EnableCookieHTTPOnly, 1); + SDVA($LinkFunctions, array('mailto:' => 'ObfuscateLinkIMap')); + SDV($EnableRCDiffBytes, 1); + SDV($EnableLocalTimes, 3); + + # Editing + SDV($EnablePreviewChanges, 1); + SDV($EnableMergeLastMinorEdit, 1); + SDV($EnableListIncludedPages, 1); + SDV($EnablePmSyntax, 2); + SDV($EnableEditAutoText, 1); + SDV($EnableGUIButtons, 1); + SDV($EnableGuiEditFixUrl, 220); + + # Documentation + SDVA($PmTOC, array('Enable'=>1, 'EnableBacklinks'=>1)); + SDV($EnableCopyCode, 1); + + # Uploads (if enabled) + SDV($EnableUploadDrop, 1); + SDV($EnableRecentUploads, 1); + SDV($EnableUploadVersions, 1); +} if (IsEnabled($EnableRobotControl,1)) -- cgit v1.2.3