// Request this file passing it a web page or feed URL in the querystring: makefulltextfeed.php?url=example.org/article\r
// For more request parameters, see http://help.fivefilters.org/customer/portal/articles/226660-usage\r
\r
-error_reporting(E_ALL ^ E_NOTICE);\r
+//error_reporting(E_ALL ^ E_NOTICE);\r
ini_set("display_errors", 1);\r
@set_time_limit(120);\r
\r
die(_('Oops, it seems you don\'t have PHP 5.'));
}
- error_reporting(E_ALL);
-
function stripslashesDeep($value) {
return is_array($value)
? array_map('stripslashesDeep', $value)
if (strpos($host, ':') !== false) {
$serverport = '';
}
-
+
return 'http' . ($https ? 's' : '') . '://'
. $host . $serverport . $scriptname;
}
@define ('MODE_DEMO', FALSE);
@define ('DEBUG_POCHE', FALSE);
+
+//default level of error reporting in application. Developers should override it in their config.inc.php: set to E_ALL.
+@define ('ERROR_REPORTING', E_ALL & ~E_NOTICE);
+
@define ('DOWNLOAD_PICTURES', FALSE); # This can slow down the process of adding articles
@define ('REGENERATE_PICTURES_QUALITY', 75);
@define ('CONVERT_LINKS_FOOTNOTES', FALSE);
require 'check_setup.php';
require_once 'inc/poche/global.inc.php';
+# Set error reporting level
+if (defined('ERROR_REPORTING')) {\r
+ error_reporting(ERROR_REPORTING);\r
+}
+
# Start session
Session::$sessionName = 'poche';
Session::init();