gmnifaq

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/gmnifaq.git
Log | Files | Refs | README | LICENSE

commit 0cfdd64ea47cf0d24b3280ba8b821dff01a849d9
parent 9ae9dd44d5e06347d29f28250d32a92fb1ad7725
Author: René Wagner <rwagner@rw-net.de>
Date:   Mon, 18 Jan 2021 20:23:28 +0100

update links

Diffstat:
DTODO.md | 7-------
Mfaqs.pl | 2+-
Mindex.pl | 4++--
Mlib/gmnifaq.pm | 4++--
Msearch.pl | 7++++---
Mtags.pl | 4++--
6 files changed, 11 insertions(+), 17 deletions(-)

diff --git a/TODO.md b/TODO.md @@ -1,7 +0,0 @@ -# initial todo -- avoid serving of data files?! -- search using FTS -- built admin interface -- consolidate things - - header generation - - footer generation diff --git a/faqs.pl b/faqs.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl # Copyright René Wagner 2020 # licenced under BSD 3-Clause licence -# https://git.sr.ht/~rwa/gmnifaq +# https://src.clttr.info/rwa/gmnifaq use strict; use DBI; diff --git a/index.pl b/index.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl # Copyright René Wagner 2020 # licenced under BSD 3-Clause licence -# https://git.sr.ht/~rwa/gmnifaq +# https://src.clttr.info/rwa/gmnifaq use strict; use DBI; @@ -30,7 +30,7 @@ exit; sub body { - return ('## Meta', '', '=> search.pl Search', '=> tags.pl Tags', '=> faqs.pl View all', ''); + return ('## Meta', '', '=> ./search.pl search', '=> ./tags.pl browse tags', '=> ./faqs.pl view all', ''); } sub header diff --git a/lib/gmnifaq.pm b/lib/gmnifaq.pm @@ -1,7 +1,7 @@ #!/usr/bin/perl # Copyright René Wagner 2020 # licenced under BSD 3-Clause licence -# https://git.sr.ht/~rwa/gmnifaq +# https://src.clttr.info/rwa/gmnifaq package gmnifaq; use strict; @@ -51,7 +51,7 @@ sub config sub footer { - return ('', '=> index.pl Home', '=> https://git.sr.ht/~rwa/gmnifaq powered by gmnifaq'); + return ('', '=> ./index.pl Home', '=> https://src.clttr.info/rwa/gmnifaq powered by gmnifaq'); } sub write_response diff --git a/search.pl b/search.pl @@ -1,7 +1,8 @@ #!/usr/bin/perl # Copyright René Wagner 2020 # licenced under BSD 3-Clause licence -# https://git.sr.ht/~rwa/gmni-perl-cgi-demo +# https://src.clttr.info/rwa/gmnifaq + use strict; use DBI; @@ -49,7 +50,7 @@ sub search push @result, '## matching tags'; push @result, ''; foreach (@matchingtags) { - push @result, sprintf("=> faqs.pl?tag=%d %s (%d entrys)", @$_[0], @$_[1], @$_[2]); + push @result, sprintf("=> ./faqs.pl?tag=%d %s (%d entrys)", @$_[0], @$_[1], @$_[2]); } push @result, ''; } @@ -58,7 +59,7 @@ sub search push @result, '## matching FAQs'; push @result, ''; foreach (@matchingfaqs) { - push @result, sprintf("=> faqs.pl?faq=%d %s", @$_[0], @$_[1]); + push @result, sprintf("=> ./faqs.pl?faq=%d %s", @$_[0], @$_[1]); } } push @result, ''; diff --git a/tags.pl b/tags.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl # Copyright René Wagner 2020 # licenced under BSD 3-Clause licence -# https://git.sr.ht/~rwa/gmnifaq +# https://src.clttr.info/rwa/gmnifaq use strict; use DBI; @@ -42,7 +42,7 @@ sub tags } else { foreach (@rows) { - push @result, sprintf("=> faqs.pl?tag=%d %s (%d entrys)", @$_[0], @$_[1], @$_[2]); + push @result, sprintf("=> ./faqs.pl?tag=%d %s (%d entrys)", @$_[0], @$_[1], @$_[2]); } } push @result, '';