diff --git a/0.3/config.php b/0.3/config.php index a50fc8e..4f1a6ff 100755 --- a/0.3/config.php +++ b/0.3/config.php @@ -5,6 +5,7 @@ if(!defined('ROOT_DIR')) } define('LOCAL_URI', ''); if (!defined('RSS_FILE')) define('RSS_FILE', 'rss.xml'); +if (!defined('DOC_FOLDER')) define('DOC_FOLDER', 'docs/'); date_default_timezone_set('Europe/Paris'); setlocale(LC_TIME, 'fr_FR.UTF-8', 'fr_FR', 'fr'); diff --git a/0.3/docs/docs.txt b/0.3/docs/docs.txt new file mode 100644 index 0000000..a4c763e --- /dev/null +++ b/0.3/docs/docs.txt @@ -0,0 +1,4 @@ +You can manually add files in the /docs/ directory, such as PDF, docs, images, etc. +You can also add subfolders in /docs/ for website mirroring. Be sure that your subfolder contains a file named index.html. + +Delete this file to hide the 'Autres documents' block in your autoblogs homepage. diff --git a/0.3/index.php b/0.3/index.php index 7a484cd..4c911a5 100755 --- a/0.3/index.php +++ b/0.3/index.php @@ -837,6 +837,26 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY + '. substr($unit, (strrpos($unit, '/')) + 1 ) .''; + } + } + } + if(!empty( $docs )) { + echo '

Autres documents

'; + } + ?> +

Autoblogs hébergés rss