Mediawiki修改記錄

出自 南怀瑾讲解儒释道视频音频下载 国学经典在线全文阅读
前往: 導覽搜尋

模版頁

  • MediaWiki:Common.css
  • MediaWiki:Mobile.css
  • MediaWiki:Common.js
  • MediaWiki:Mobile.js
  • mediawiki:sidebar
  • mediawiki:conversiontable/zh-hant
  • mediawiki:conversiontable/zh-hans

插件

MsUpload 圖片批量上傳:https://www.mediawiki.org/wiki/Extension:MsUpload

TimedMediaHandler 音頻視頻播放器:https://www.mediawiki.org/wiki/Extension:TimedMediaHandler/en (依賴插件:https://www.mediawiki.org/wiki/Extension:MwEmbedSupport)

LocalSettings.php

$wgSitename = "南怀瑾讲解儒释道视频音频下载 国学经典在线全文阅读"; wfLoadExtension( 'MsUpload' ); $wgMSU_useDragDrop = false; $wgArticlePath = "/wiki/$1"; $wgExternalLinkTarget = "_blank"; $wgDisabledVariants = array ('zh-cn','zh-hk','zh-tw','zh-sg','zh-mo','zh-my'); $wgGroupPermissions['*']['edit'] = false; $wgVectorResponsive = true; $wgNoFollowLinks = false; $wgUseImageResize = true; $wgResponsiveImages = false; $wgUseFileCache = true; $wgUseGzip = true; #$wgEnableSidebarCache = true; $wgUseImageMagick = true; $wgImageLimits = [[ 1280, 1024 ]]; $wgDefaultUserOptions['imagesize'] = 0; $wgThumbLimits = [120]; $wgDefaultUserOptions['thumbsize'] = 0; $wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg' ]; wfLoadExtension( 'MwEmbedSupport' ); require_once "$IP/extensions/TimedMediaHandler/TimedMediaHandler.php"; $wgFFmpegLocation = '/usr/bin/ffmpeg'; $wgEnableTranscode = false; #$wgShowExceptionDetails = true;$wgShowDBErrorBacktrace = true;

.htaccess

# Enable the rewrite engine RewriteEngine On # Short url for wiki pages RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L] # Redirect / to Main Page RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]

crontab

25 */3 * * * /usr/share/awstats/tools/awstats_buildstaticpages.pl -config=ed29.com -update -lang=cn -awstatsprog=/usr/share/awstats/wwwroot/cgi-bin/awstats.p -dir=/home/ed/ed29.com/cache/ 0 3 * * 1 php /home/ed/ed29.com/maintenance/generateSitemap.php --skip-redirects --compress no --fspath /home/ed/ed29.com/cache/ --server https://ed29.com --urlpath https://ed29.com