/usr/lib/cgi-bin/wiliki.cgi is in wiliki 0.6.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 | #!/usr/bin/gosh
(use wiliki)
;; Customization:
;;
;; (1) Change the #!-line on top to point gosh's path at your site.
;; (2) Tailor keyword arguments after 'make <wiliki>'.
;;
;; :db-path - A path to the dbm database. If it's relative, it's
;; relative to the directory the CGI script exists.
;; I recommend to put the database outside the directory
;; tree accessible via http.
;; The database is automatically created when accessed
;; first time; make sure the data directory is writable
;; by the CGI script only for the first time.
;;
;; :top-page - The name of the top page. If the named page doesn't
;; exist, it is created for the first time it accessed.
;;
;; :title - The name of your WiLiKi site. A string given here
;; is used in some places, like in the title of the
;; "Search results" or "Recent changes" pages.
;;
;; :description - A short description of this Wiki site. This is
;; used in RDF site summary.
;;
;; :editable? - If #f, editing is prohibited.
;;
;; :language - default language, either 'jp or 'en
;;
;; :style-sheet - If a path to the css is given, it is used as a
;; style sheet. #f to use the default style.
;;
;; :charsets - specify assoc list of character encodings to be
;; used to generate webpage.
;;
;; :image-urls - specify which URL is allowed as an in-line image.
;;
;; :db-type - A class that implements database functions;
;; Default is <gdbm>. I think <odbm> and <ndbm> should
;; work, although they might have a problem in locking
;; the database. You can also define your database class
;; and implement wdb* methods (see wiliki.scm).
;; Don't add this argument if you're not sure about these stuff.
;;
;; :debug-level - if more than 0, wiliki shows diagnostic messages when
;; it encounters an error during processing (including macro
;; expansion error). Useful while debugging, but should be
;; turned off for the sites open to public.
(define (main args)
(wiliki-main
(make <wiliki>
:db-path "/var/lib/wiliki/wikidata.dbm"
:log-file "wikidata.log"
:top-page "WiLiKi"
:title "Debian WiLiKi"
:description "Debian's Default WiLiKi Site"
:style-sheet "/wiliki/wiliki.css"
:language 'en
:charsets '((jp . utf-8) (en . utf-8))
:image-urls '((#/^http:\/\/sourceforge.net\/sflogo/ allow))
:debug-level 0
)))
;; Local variables:
;; mode: scheme
;; end:
|