Example #1
0
    if (is_array($curl = curl_version())) {
        $curl = $curl['version'];
    } else {
        if (preg_match('/curl\\/(\\S+)(\\s|$)/', $curl, $match)) {
            $curl = $match[1];
        } else {
            $curl = 0;
        }
    }
    return $curl;
}
$php_ok = function_exists('version_compare') && version_compare(phpversion(), '4.3.2', '>=');
$xml_ok = extension_loaded('xml');
$pcre_ok = extension_loaded('pcre');
$mysql_ok = extension_loaded('mysql');
$curl_ok = extension_loaded('curl') && version_compare(get_curl_version(), '7.10.5', '>=');
$zlib_ok = extension_loaded('zlib');
$mbstring_ok = extension_loaded('mbstring');
$iconv_ok = extension_loaded('iconv');
?>
<!DOCTYPE html>
<html>

<head><title>feed on feeds - installation</title>
		<link rel="stylesheet" href="fof.css" media="screen" />
		<script src="fof.js" type="text/javascript"></script>
		<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
        <style>
        body
        {
            font-family: georgia;
Example #2
0
    fof_log("install started");
    ?>
<h2>Checking compatibility...</h2>
<?php 
    $compat_fatal = 0;
    $php_ok = function_exists('version_compare') && version_compare(phpversion(), VERSION_REQUIRED_PHP, '>=');
    $compat_fatal |= fof_install_compat_notice($php_ok, "PHP", "Your PHP version is too old!", "Feed on Feeds requires at least PHP version " . VERSION_REQUIRED_PHP, 1);
    $compat_fatal |= fof_install_compat_notice(extension_loaded('xml'), "XML", "Your PHP installation is missing the XML extension!", "This is required by Feed on Feeds.", 1);
    $compat_fatal |= fof_install_compat_notice(extension_loaded('pcre'), "PCRE", "Your PHP installation is missing the PCRE extension!", "This is required by Feed on Feeds.", 1);
    $compat_fatal |= fof_install_compat_notice(extension_loaded('pdo'), "PDO", "Your PHP installation is missing the PDO extension!", "This is required by Feed on Feeds.", 1);
    $mysql_ok = extension_loaded('pdo_mysql');
    $sqlite_ok = extension_loaded('pdo_sqlite');
    $compat_fatal |= fof_install_compat_notice($sqlite_ok, "SQLite", "Your PHP installation does not support the SQLite database" . (defined('USE_SQLITE') ? ", but you have configured Feed on Feeds to use this database!" : "."), defined('USE_SQLITE') ? "PHP will need to support this database, or you must configure a different one." : "This is not required if another database is available.", defined('USE_SQLITE'));
    $compat_fatal |= fof_install_compat_notice($mysql_ok, "MySQL", "Your PHP installation does not support the MySQL database" . (defined('USE_MYSQL') ? ", but you have configured Feed on Feeds to use this database!" : "."), defined('USE_MYSQL') ? "PHP will need to support this database, or you must configure a different one." : "This is not required if another database is available.", defined('USE_MYSQL'));
    $compat_fatal |= fof_install_compat_notice($sqlite_ok || $mysql_ok, "PDO database", "Your PHP installation is missing a supported PDO database extension!", "This is required by Feed on Feeds.", 1);
    $curl_ok = extension_loaded('curl') && version_compare(get_curl_version(), VERSION_REQUIRED_CURL, '>=');
    $compat_fatal |= fof_install_compat_notice($curl_ok, "cURL", "Your PHP installation is either missing the cURL extension, or it is too old!", "cURL version " . VERSION_REQUIRED_CURL . " or later is required to be able to subscribe to https or digest authenticated feeds.");
    $compat_fatal |= fof_install_compat_notice(extension_loaded('zlib'), "zlib", "Your PHP installation is missing the zlib extension!", "Feed on Feeds will not be able to save bandwidth by requesting compressed feeds.");
    $compat_fatal |= fof_install_compat_notice(extension_loaded('iconv'), "iconv", "Your PHP installation is missing the iconv extension!", "The number of international languages that Feed on Feeds can handle will be reduced.");
    $compat_fatal |= fof_install_compat_notice(extension_loaded('mbstring'), "mbstring", "Your PHP installation is missing the mbstring extension!", "The number of international languages that Feed on Feeds can handle will be reduced.");
    $compat_fatal |= fof_install_compat_notice(class_exists('finfo'), 'fileinfo', 'Your PHP installation is missing the fileinfo extension!', 'Some feed\'s icons may not be displayed.');
    if ($compat_fatal) {
        echo "</div></body></html>";
        exit;
    }
    ?>
<br>Minimum requirements met!
<hr>

<h2>Checking cache directory...</h2>
<?php