forked from codeberg/usemod.usemod
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd7e6df0b5 | ||
|
|
b61e62aafe | ||
|
|
bdb6f9ec37 | ||
|
|
1afaf63ec6 |
@@ -1,4 +1,7 @@
|
||||
|
||||
Changes for bugfix release 1.2.3 (August 16, 2025):
|
||||
* fix warnings
|
||||
|
||||
Changes for release 1.2.2 (November 10, 2023):
|
||||
* fix HTML markup, no XHTML
|
||||
* domain has changed to usemod.org
|
||||
|
||||
4
config
4
config
@@ -1,5 +1,5 @@
|
||||
# == Configuration =====================================================
|
||||
# Original version from UseModWiki 1.2.2
|
||||
# Original version from UseModWiki 1.2.3
|
||||
|
||||
$CookieName = "Wiki"; # Name for this wiki (for multi-wiki sites)
|
||||
$SiteName = "Wiki"; # Name of site (used for titles)
|
||||
@@ -43,7 +43,7 @@ $StartUID = 1001; # Starting number for user IDs
|
||||
$UploadDir = ''; # Full path (like /foo/www/uploads) for files
|
||||
$UploadUrl = ''; # Full URL (like http://foo.com/uploads)
|
||||
@ImageSites = qw(); # Url prefixes of good image sites: ()=all
|
||||
$Salt = 'pepper'; # Salt for generating an EditHash,
|
||||
$Salt = 'pepper123'; # Salt for generating an EditHash,
|
||||
# please choose something other here!
|
||||
|
||||
# Major options:
|
||||
|
||||
19
wiki.pl
19
wiki.pl
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/perl -wT
|
||||
# UseModWiki version 1.2.2 (November 10, 2023)
|
||||
# UseModWiki version 1.2.3 (August 16, 2025)
|
||||
# Copyright (C) 2000-2003 Clifford A. Adams <caadams@usemod.com>
|
||||
# Copyright (C) 2002-2003 Sunir Shah <sunir@sunir.org>
|
||||
# with some changes from Markus Lude <markus.lude@gmx.de>
|
||||
# with some changes from Markus Lude <markus@usemod.org>
|
||||
#
|
||||
# Based on the GPLed AtisWiki 0.3 (C) 1998 Markus Denker
|
||||
# <marcus@ira.uka.de>
|
||||
@@ -2335,11 +2335,12 @@ sub GetDiffHTML {
|
||||
|
||||
sub GetCacheDiff {
|
||||
my ($type) = @_;
|
||||
my ($diffText);
|
||||
my $diffType;
|
||||
my $diffText = "";
|
||||
|
||||
$diffText = &GetPageCache("diff_default_$type");
|
||||
$diffText = &GetCacheDiff('minor') if ($diffText eq "1");
|
||||
$diffText = &GetCacheDiff('major') if ($diffText eq "2");
|
||||
$diffType = &GetPageCache("diff_default_$type") || "";
|
||||
$diffText = &GetCacheDiff('minor') if ($diffType eq "1");
|
||||
$diffText = &GetCacheDiff('major') if ($diffType eq "2");
|
||||
return $diffText;
|
||||
}
|
||||
|
||||
@@ -4058,10 +4059,10 @@ sub GetFullLinkList {
|
||||
if (($unique > 0) && ($seen{$link} != 1)) {
|
||||
next;
|
||||
}
|
||||
if (($exists == 0) && ($pgExists{$link} == 1)) {
|
||||
if (($exists == 0) && ($pgExists{$link})) {
|
||||
next;
|
||||
}
|
||||
if (($exists == 1) && ($pgExists{$link} != 1)) {
|
||||
if (($exists == 1) && (not $pgExists{$link})) {
|
||||
next;
|
||||
}
|
||||
if (($search ne "") && !($link =~ /$search/)) {
|
||||
@@ -5122,7 +5123,7 @@ sub RenamePage {
|
||||
|
||||
sub DoShowVersion {
|
||||
print &GetHeader('', T('Displaying Wiki Version'), '');
|
||||
print "<p>UseModWiki version 1.2.2</p>\n";
|
||||
print "<p>UseModWiki version 1.2.3</p>\n";
|
||||
print &GetCommonFooter();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user