From 014d3ad823d653eed424ac95cac454b5ca6d06f3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 Mar 2011 19:16:44 +0300 Subject: use CURL when it is available, remove option USE_CURL --- sanity_check.php | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'sanity_check.php') diff --git a/sanity_check.php b/sanity_check.php index e6e58b2ab..c9d0fe922 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -5,7 +5,7 @@ define('SCHEMA_VERSION', 81); if (!file_exists("config.php")) { - print "Fatal Error: You forgot to copy + print "Fatal Error: You forgot to copy config.php-dist to config.php and edit it.\n"; exit; } @@ -41,7 +41,7 @@ if (file_exists("xml-export.php") || file_exists("xml-import.php")) { print "Fatal Error: XML Import/Export tools (xml-export.php - and xml-import.php) could be used maliciously. Please remove them + and xml-import.php) could be used maliciously. Please remove them from your TT-RSS instance.\n"; exit; } @@ -52,12 +52,6 @@ exit; } - if (USE_CURL && ! function_exists("curl_init")) { - print "Fatal Error: You have enabled USE_CURL, but your PHP - doesn't seem to support CURL functions."; - exit; - } - if (!defined('SESSION_EXPIRE_TIME')) { $err_msg = "config: SESSION_EXPIRE_TIME is undefined"; } @@ -89,7 +83,7 @@ if ($link) { $result = db_query($link, "SELECT id FROM ttrss_users WHERE id = 1"); - if (db_num_rows($result) != 1) { + if (db_num_rows($result) != 1) { $err_msg = "config: SINGLE_USER_MODE is enabled but default admin account (UID=1) is not found."; } } @@ -114,7 +108,7 @@ if (!defined('DEFAULT_UPDATE_METHOD') || (DEFAULT_UPDATE_METHOD != 0 && DEFAULT_UPDATE_METHOD != 1)) { - $err_msg = "config: DEFAULT_UPDATE_METHOD should be either 0 or 1."; + $err_msg = "config: DEFAULT_UPDATE_METHOD should be either 0 or 1."; } if (!is_writable(ICONS_DIR)) { @@ -149,10 +143,6 @@ $err_msg = "php.ini: Safe mode is not supported. If you wish to continue, remove this test from sanity_check.php and proceeed at your own risk. Please note that your bug reports will not be accepted or reviewed."; } - if (defined('USE_CURL_FOR_ICONS')) { - $err_msg = "config: USE_CURL_FOR_ICONS has been renamed to USE_CURL."; - } - if ($err_msg) { print "Fatal Error: $err_msg\n"; exit; -- cgit v1.2.3