1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
--- a/wiki.pl
+++ b/wiki.pl
@@ -67,9 +67,9 @@ use vars qw(%Page %Section %Text %InterS
$ConfigError $UploadPattern );
# == Configuration =====================================================
-$DataDir = "/tmp/mywikidb"; # Main wiki directory
+$DataDir = "/var/lib/usemod-wiki"; # Main wiki directory
$UseConfig = 1; # 1 = use config file, 0 = do not look for config
-$ConfigFile = "$DataDir/config"; # Configuration file
+$ConfigFile = "/etc/usemod-wiki/config"; # Default location of config
# Default configuration (used if UseConfig is 0)
$CookieName = "Wiki"; # Name for this wiki (for multi-wiki sites)
@@ -95,7 +95,7 @@ $FooterNote = ""; # HTML f
$EditNote = ""; # HTML notice above buttons on edit page
$MaxPost = 1024 * 210; # Maximum 210K posts (about 200K for pages)
$NewText = ""; # New page text ("" for default message)
-$HttpCharset = ""; # Charset for pages, like "iso-8859-2"
+$HttpCharset = "utf-8"; # Charset for pages, like "iso-8859-2"
$UserGotoBar = ""; # HTML added to end of goto bar
$InterWikiMoniker = ''; # InterWiki moniker for this wiki. (for RSS)
$SiteDescription = $SiteName; # Description of this wiki. (for RSS)
@@ -134,7 +134,7 @@ $DeletedPage = 'DeletedPage'; # 0 = di
$ReplaceFile = 'ReplaceFile'; # 0 = disable, 'PageName' = indicator tag
@ReplaceableFiles = (); # List of allowed server files to replace
$TableSyntax = 1; # 1 = wiki syntax tables, 0 = no table syntax
-$NewFS = 0; # 1 = new multibyte $FS, 0 = old $FS
+$NewFS = 1; # 1 = new multibyte $FS, 0 = old $FS
$UseUpload = 0; # 1 = allow uploads, 0 = no uploads
$UseEditHash = 0; # 1 = use EditHash, 0 = no EditHash
--- a/config
+++ b/config
@@ -1,11 +1,12 @@
# == Configuration =====================================================
# Original version from UseModWiki 1.2.2
+$DataDir = "/var/lib/usemod-wiki"; # Main wiki directory
$CookieName = "Wiki"; # Name for this wiki (for multi-wiki sites)
$SiteName = "Wiki"; # Name of site (used for titles)
$HomePage = "HomePage"; # Home page (change space to _)
$RCName = "RecentChanges"; # Name of changes page (change space to _)
-$LogoUrl = "/wiki.gif"; # URL for site logo ("" for no logo)
+$LogoUrl = "/usemod-wiki/debian-logo.png"; # URL for site logo ("" for no logo)
$ENV{PATH} = "/usr/bin/"; # Path used to find "diff"
$ScriptTZ = ""; # Local time zone ("" means do not print)
$RcDefault = 30; # Default number of RecentChanges days
@@ -24,7 +25,7 @@ $FooterNote = ""; # HTML f
$EditNote = ""; # HTML notice above buttons on edit page
$MaxPost = 1024 * 210; # Maximum 210K posts (about 200K for pages)
$NewText = ""; # New page text ("" for default message)
-$HttpCharset = ""; # Charset for pages, like "iso-8859-2"
+$HttpCharset = "utf-8"; # Charset for pages, like "iso-8859-2"
$UserGotoBar = ""; # HTML added to end of goto bar
$InterWikiMoniker = ''; # InterWiki moniker for this wiki. (for RSS)
$SiteDescription = $SiteName; # Description of this wiki. (for RSS)
@@ -63,7 +64,7 @@ $DeletedPage = 'DeletedPage'; # 0 = di
$ReplaceFile = 'ReplaceFile'; # 0 = disable, 'PageName' = indicator tag
@ReplaceableFiles = (); # List of allowed server files to replace
$TableSyntax = 1; # 1 = wiki syntax tables, 0 = no table syntax
-$NewFS = 0; # 1 = new multibyte $FS, 0 = old $FS
+$NewFS = 1; # 1 = new multibyte $FS, 0 = old $FS
$UseUpload = 0; # 1 = allow uploads, 0 = no uploads
$UseEditHash = 0; # 1 = use EditHash, 0 = no EditHash
@@ -74,16 +75,16 @@ $UseDiffLog = 1; # 1 = save diffs
$KeepMajor = 1; # 1 = keep major rev, 0 = expire all revisions
$KeepAuthor = 1; # 1 = keep author rev, 0 = expire all revisions
$ShowEdits = 0; # 1 = show minor edits, 0 = hide edits by default
-$HtmlLinks = 0; # 1 = allow A HREF links, 0 = no raw HTML links
+$HtmlLinks = 1; # 1 = allow A HREF links, 0 = no raw HTML links
$SimpleLinks = 0; # 1 = only letters, 0 = allow _ and numbers
-$NonEnglish = 0; # 1 = extra link chars, 0 = only A-Za-z chars
+$NonEnglish = 1; # 1 = extra link chars, 0 = only A-Za-z chars
$ThinLine = 0; # 1 = fancy <hr> tags, 0 = classic wiki <hr>
$BracketText = 1; # 1 = allow [URL text], 0 = no link descriptions
-$UseAmPm = 1; # 1 = use am/pm in times, 0 = use 24-hour times
+$UseAmPm = 0; # 1 = use am/pm in times, 0 = use 24-hour times
$UseIndex = 0; # 1 = use index file, 0 = slow/reliable method
$UseHeadings = 1; # 1 = allow = h1 text =, 0 = no header formatting
$NetworkFile = 1; # 1 = allow remote file:, 0 = no file:// links
-$BracketWiki = 0; # 1 = [WikiLnk txt] link, 0 = no local descriptions
+$BracketWiki = 1; # 1 = [WikiLnk txt] link, 0 = no local descriptions
$UseLookup = 1; # 1 = lookup host names, 0 = skip lookup (IP only)
$FreeUpper = 1; # 1 = force upper case, 0 = do not force case
$FastGlob = 1; # 1 = new faster code, 0 = old compatible code
@@ -137,7 +138,7 @@ $UserDir = "$DataDir/user"; # St
$KeepDir = "$DataDir/keep"; # Stores kept (old) page data
$TempDir = "$DataDir/temp"; # Temporary files and locks
$LockDir = "$TempDir/lock"; # DB is locked if this exists
-$InterFile = "$DataDir/intermap"; # Interwiki site->url map
+$InterFile = "/etc/usemod-wiki/intermap"; # Interwiki site->url map
$RcFile = "$DataDir/rclog"; # New RecentChanges logfile
$RcOldFile = "$DataDir/oldrclog"; # Old RecentChanges logfile
$IndexFile = "$DataDir/pageidx"; # List of all pages
|