Commit 5a2712c9 authored by jonnybradley's avatar jonnybradley

[MOD] files-revamp: Move recently the created new lib/setup dir to _custom as...

[MOD] files-revamp: Move recently the created new lib/setup dir to _custom as these files, along with custom themes etc should not be web writable, unlike the files & dirs in storage which are for tiki generated, mostly regeneratable content (thanks Chealer).
Also add a readme.txt - see https://dev.tiki.org/File-and-directory-structure-revamp for more
parent befac0b6
* text=auto !eol
/INSTALL -text
/README -text
_custom/readme.txt -text
/_htaccess -text
/about.php -text
addons/index.php -text
......
......@@ -10,6 +10,7 @@
/.well-known
/ZendPlatform
/ZendStudioServer
_custom/lib/setup/custom.php
/bin
db/*.ini
db/.htaccess
......@@ -45,7 +46,6 @@ modules/cache/*
/node_modules
/phpmyadmin
/project.index
storage/lib/setup/custom.php
storage/public/*
/svn-commit.tmp
temp/*
......
Tiki Custom Files
-----------------
Part of the planned file and directory revamp, this directory will eventually contain all custom files specific to your Tiki install.
I.E. Custom themes, JavaScript, plugins and configuration files.
Currently any custom PHP code required for your site can now be added to _custom/lib/setup/custom.php.
N.B. this directory and all files within it should NOT be web writable.
Work in progress for Tiki 18, more fundemental changes planned for Tiki 19 in 2018.
See (and contribute to) https://dev.tiki.org/File-and-directory-structure-revamp for more information.
......@@ -772,8 +772,8 @@ if ($prefs['print_pdf_from_url'] != 'none') {
$headerlib->add_jsfile('lib/jquery_tiki/pdf.js');
}
if (file_exists('storage/lib/setup/custom.php')) {
include_once('storage/lib/setup/custom.php');
if (file_exists('_custom/lib/setup/custom.php')) {
include_once('_custom/lib/setup/custom.php');
}
// any furher $headerlib->add_js() call not using rank = 'external' will be put into rank 'late'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment