2023-01-31 22:34:58 +01:00
|
|
|
<?php if (!defined('W2APP')){ die('No direct access.'); }
|
2023-01-25 22:29:19 +01:00
|
|
|
/*
|
|
|
|
* W2
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007-2009 Steven Frank <http://stevenf.com/>
|
|
|
|
* Code may be re-used as long as the above copyright notice is retained.
|
2023-01-31 22:34:58 +01:00
|
|
|
* See README.md for full details.
|
2023-01-25 22:29:19 +01:00
|
|
|
*
|
|
|
|
* Written with Coda: <http://panic.com/coda/>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------
|
|
|
|
// Site layout settings
|
|
|
|
// --------------------
|
|
|
|
|
2023-01-31 22:34:58 +01:00
|
|
|
// PAGES_PATH
|
2023-01-25 22:29:19 +01:00
|
|
|
//
|
2023-01-31 22:34:58 +01:00
|
|
|
// The path to the raw text documents maintained by W2
|
2023-01-25 22:29:19 +01:00
|
|
|
// You should not use a trailing slash.
|
|
|
|
|
2023-01-31 22:34:58 +01:00
|
|
|
define('PAGES_PATH', dirname(__FILE__). '/pages');
|
2023-01-25 22:29:19 +01:00
|
|
|
|
2023-01-31 22:34:58 +01:00
|
|
|
// UPLOAD_FOLDER
|
2023-01-25 22:29:19 +01:00
|
|
|
//
|
2023-01-31 22:34:58 +01:00
|
|
|
// 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');
|
2023-01-25 22:29:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
// 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']);
|
|
|
|
|
2023-06-20 00:58:42 +02:00
|
|
|
// VIEW
|
2023-01-25 22:29:19 +01:00
|
|
|
//
|
|
|
|
// 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', 'index.css');
|
|
|
|
|
2023-01-31 22:34:58 +01:00
|
|
|
// SIDEBAR_FILE
|
|
|
|
//
|
|
|
|
// The name of the page to be shown as sidebar (leave empty to disable sidebar feature)
|
|
|
|
|
2023-06-20 00:58:42 +02:00
|
|
|
define ('SIDEBAR_PAGE', 'Sidebar');
|
2023-01-31 22:34:58 +01:00
|
|
|
|
|
|
|
// PAGE_TITLE
|
|
|
|
//
|
|
|
|
// A title prepended to the title head tag of all pages of the wiki
|
|
|
|
|
2023-06-20 00:58:42 +02:00
|
|
|
define ('PAGE_TITLE', 'spmenu wiki: ');
|
2023-01-25 22:29:19 +01:00
|
|
|
|
|
|
|
// ------------------
|
|
|
|
// 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
|
2023-01-31 22:34:58 +01:00
|
|
|
// Note that these settings are overridden by the
|
|
|
|
// date_format/date_format_no_time in the used locale!
|
2023-01-25 22:29:19 +01:00
|
|
|
|
|
|
|
define('TITLE_DATE', 'j-M-Y g:i A');
|
|
|
|
define('TITLE_DATE_NO_TIME', 'j-M-Y');
|
|
|
|
|
2023-01-31 22:34:58 +01:00
|
|
|
// -----------------------------
|
|
|
|
// 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);
|
|
|
|
|
|
|
|
|
|
|
|
// -----------------------------
|
|
|
|
// Locale and encoding settings
|
|
|
|
// -----------------------------
|
|
|
|
|
|
|
|
// W2_CHARSET
|
|
|
|
//
|
|
|
|
// Value for meta charset.
|
|
|
|
|
|
|
|
define('W2_CHARSET', 'UTF-8');
|
|
|
|
|
|
|
|
// W2_LOCALE
|
|
|
|
//
|
|
|
|
// Name for locale.
|
|
|
|
|
|
|
|
define('W2_LOCALE', 'en');
|