mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
More preliminary work on the new variable. Still non-functional.
This commit is contained in:
parent
14c389810d
commit
af49ad610e
2 changed files with 19 additions and 7 deletions
17
core.php
17
core.php
|
@ -7,18 +7,25 @@ $start_time = time(true);
|
|||
/////////////// Do not edit below this line unless you know what you are doing! ///////////////
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
$version = "{version}";
|
||||
/// Environment ///
|
||||
$env = new stdClass();
|
||||
$env->action = $settings->defaultaction;
|
||||
$env->page = "";
|
||||
$env->user = "Anonymous";
|
||||
$env->is_logged_in = false;
|
||||
$env->is_admin = false;
|
||||
|
||||
/// Paths ///
|
||||
$paths = new stdClass();
|
||||
$paths->pageindex = "pageindex.json";
|
||||
$paths->searchindex = "invindex.json";
|
||||
$paths->idindex = "idindex.json";
|
||||
$paths->upload_file_prefix = "Files/";
|
||||
$paths->pageindex = "pageindex.json"; // The pageindex
|
||||
$paths->searchindex = "invindex.json"; // The inverted indx used for searching
|
||||
$paths->idindex = "idindex.json"; // The index that converts ids to page names
|
||||
|
||||
// Prepend the storage data directory to all the defined paths.
|
||||
foreach ($paths as &$path) {
|
||||
$path = $settings->data_storage_dir . DIRECTORY_SEPARATOR . $path;
|
||||
}
|
||||
|
||||
$paths->upload_file_prefix = "Files/"; // The prefix to append to uploaded files
|
||||
|
||||
session_start();
|
||||
///////// Login System /////////
|
||||
|
|
|
@ -33,14 +33,19 @@ $settings->logo_position = "left";
|
|||
// branch If there is sufficient demand, a separate stable branch will be
|
||||
// created. Note that if you use the automatic updater currently it won't save
|
||||
// your module choices.
|
||||
// MAKE SURE THAT THIS POINTS TO A *HTTPS* URL, OTHERWISE SOMEONE COULD INJECT A VIRUS INTO YOUR WIKI
|
||||
// MAKE SURE THAT THIS POINTS TO A *HTTPS* URL, OTHERWISE SOMEONE COULD INJECT
|
||||
// A VIRUS INTO YOUR WIKI
|
||||
$settings->updateurl = "https://raw.githubusercontent.com/sbrl/pepperminty-wiki/master/index.php";
|
||||
|
||||
// The secret key used to perform 'dangerous' actions, like updating the wiki,
|
||||
// and deleting pages. It is strongly advised that you change this!
|
||||
$settings->sitesecret = "ed420502615bac9037f8f12abd4c9f02";
|
||||
|
||||
|
||||
// The directory in which to store all files, except this main index.php.
|
||||
// A single dot ('.') denotes the current directory.
|
||||
// Remember to leave the trailing slash from the directory name, as it is added
|
||||
// automatically by Pepperminty Wiki.
|
||||
// Note that this setting is currently experimental.
|
||||
$settings->data_storage_dir = ".";
|
||||
|
||||
// Determined whether edit is enabled. Set to false to disable disting for all
|
||||
|
|
Loading…
Reference in a new issue