107 lines
2.5 KiB
PHP
Executable file
107 lines
2.5 KiB
PHP
Executable file
<?php
|
|
/*
|
|
* spmenu-wiki
|
|
* Copyright (C) 2007-2009 Steven Frank <http://stevenf.com/>
|
|
* Copyright (C) 2023 speedie <speedie@speedie.site>
|
|
*
|
|
* See LICENSE file for copyright and license details.
|
|
*/
|
|
|
|
// --------------------
|
|
// Site layout settings
|
|
// --------------------
|
|
|
|
// PAGES_PATH
|
|
//
|
|
// The path to the raw text documents maintained by W2
|
|
// You should not use a trailing slash.
|
|
|
|
define('PAGES_PATH', dirname(__FILE__). '/pages');
|
|
|
|
// UPLOAD_FOLDER
|
|
//
|
|
// The subfolder in PAGES_PATH that uploads get stored to
|
|
define('UPLOAD_FOLDER', 'images');
|
|
|
|
// PAGES_EXT
|
|
//
|
|
// The extension of the Markdown files in the PAGES_PATH
|
|
// folder which are displayed by W2
|
|
define('PAGES_EXT', 'md');
|
|
|
|
|
|
// BASE_URI
|
|
//
|
|
// The base URI for this W2 installation. You only need to change this if we guess wrong.
|
|
// You should not use a trailing slash.
|
|
|
|
define('BASE_URI', str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']));
|
|
|
|
// SELF
|
|
//
|
|
// The path component of the URL to the main script, such as: /w2/index.php
|
|
|
|
define('SELF', $_SERVER['SCRIPT_NAME']);
|
|
|
|
// VIEW
|
|
//
|
|
// Needed only if your web server spawns PHP as a CGI instead of an internal module.
|
|
// For example: define('VIEW', '?action=view&page=');
|
|
|
|
define('VIEW', '');
|
|
|
|
// DEFAULT_PAGE
|
|
//
|
|
// The name of the page to show as the "Home" page.
|
|
// Value is a string, the title of a page (case-sensitive!)
|
|
|
|
define('DEFAULT_PAGE', 'Home');
|
|
|
|
// CSS_FILE
|
|
//
|
|
// The CSS file to load to style the wiki, relative to BASE_URI
|
|
|
|
define('CSS_FILE', 'css/index.css');
|
|
|
|
// SIDEBAR_FILE
|
|
//
|
|
// The name of the page to be shown as sidebar (leave empty to disable sidebar feature)
|
|
|
|
define ('SIDEBAR_PAGE', 'Sidebar');
|
|
|
|
// PAGE_TITLE
|
|
//
|
|
// A title prepended to the title head tag of all pages of the wiki
|
|
|
|
define ('PAGE_TITLE', 'spmenu wiki: ');
|
|
|
|
// ------------------
|
|
// Interface settings
|
|
// ------------------
|
|
|
|
// TITLE_DATE
|
|
//
|
|
// The format to use when displaying page modification times.
|
|
// See the manual for the PHP 'date()' function for the specification:
|
|
// http://php.net/manual/en/function.date.php
|
|
// Note that these settings are overridden by the
|
|
|
|
define('TITLE_DATE', 'j M Y g:i A');
|
|
define('TITLE_DATE_NO_TIME', 'j M Y');
|
|
|
|
// -----------------------------
|
|
// Git Integration
|
|
// -----------------------------
|
|
|
|
// GIT_COMMIT_ENABLED
|
|
//
|
|
// Enable/Disable committing changes in page folder to local git repository
|
|
|
|
define('GIT_COMMIT_ENABLED', false);
|
|
|
|
// GIT_PUSH_ENABLED
|
|
//
|
|
// Enable/Disable pushing changes in page folder to a remote git repository
|
|
|
|
define('GIT_PUSH_ENABLED', false);
|