Update index.php

This commit is contained in:
Knah Tsaeb 2015-07-24 10:52:56 +02:00 committed by Knah Tsaeb
parent c6a6780a89
commit 8b2d826eb1

View file

@ -5,6 +5,7 @@
// Licence: http://www.opensource.org/licenses/zlib-license.php // Licence: http://www.opensource.org/licenses/zlib-license.php
// Requires: php 5.1.x (but autocomplete fields will only work if you have php 5.2.x) // Requires: php 5.1.x (but autocomplete fields will only work if you have php 5.2.x)
// ----------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------
ini_set('display_errors', false); // Full Path Disclosure https://github.com/sebsauvage/Shaarli/issues/222
// NEVER TRUST IN PHP.INI // NEVER TRUST IN PHP.INI
// Some hosts do not define a default timezone in php.ini, // Some hosts do not define a default timezone in php.ini,
// so we have to do this for avoid the strict standard error. // so we have to do this for avoid the strict standard error.
@ -79,7 +80,6 @@
ini_set('upload_max_filesize', '16M'); ini_set('upload_max_filesize', '16M');
checkphpversion(); checkphpversion();
error_reporting(E_ALL^E_WARNING); // See all error except warnings. error_reporting(E_ALL^E_WARNING); // See all error except warnings.
ini_set('display_errors', false); // Full Path Disclosure https://github.com/sebsauvage/Shaarli/issues/222
//error_reporting(-1); // See all errors (for debugging only) //error_reporting(-1); // See all errors (for debugging only)
if($GLOBALS['config']['ENABLE_MARKDOWN'] === TRUE){ if($GLOBALS['config']['ENABLE_MARKDOWN'] === TRUE){
include 'inc/Parsedown.php'; include 'inc/Parsedown.php';