Example #1
0
 *
 * Copyright (C) 2004-2007 Stephen Minutillo
 * steve@minutillo.com - http://minutillo.com/steve/
 *
 * Distributed under the GPL - see LICENSE
 *
 */
fof_repair_drain_bamage();
if (!file_exists(dirname(__FILE__) . '/fof-config.php')) {
    echo "You will first need to create a fof-config.php file.  Please copy fof-config-sample.php to fof-config.php and then update the values to match your database settings.";
    die;
}
require_once "fof-config.php";
require_once "fof-db.php";
require_once "classes/fof-prefs.php";
fof_db_connect();
if (!$fof_installer) {
    if (!$fof_no_login) {
        require_user();
        $fof_prefs_obj =& FoF_Prefs::instance();
    } else {
        $fof_user_id = 1;
        $fof_prefs_obj =& FoF_Prefs::instance();
    }
    ob_start();
    fof_init_plugins();
    ob_end_clean();
}
require_once 'simplepie/simplepie.inc';
function fof_set_content_type()
{
Example #2
0
$fof_logall -- forces logging on
$fof_tracelog -- enables ridiculous logging for debugging
*/
defined('FEED_IMAGE_CACHE_REFRESH_SECS') || define('FEED_IMAGE_CACHE_REFRESH_SECS', 7 * 24 * 60 * 60);
/* quiet warnings, default to UTC */
date_default_timezone_set('UTC');
fof_repair_drain_bamage();
if (@(include_once 'fof-config.php') === false) {
    echo "You will first need to create a fof-config.php file.  Please copy fof-config.php.dist to fof-config.php and then update the values to match your database settings.\n";
    die;
}
require_once 'fof-asset.php';
require_once 'fof-db.php';
require_once 'classes/fof-prefs.php';
fof_db_connect(empty($fof_installer) ? false : $fof_installer);
if (empty($fof_installer)) {
    if (empty($fof_no_login)) {
        require_user();
    } else {
        $fof_user_id = 1;
    }
    $fof_prefs_obj =& FoF_Prefs::instance();
    ob_start();
    fof_init_plugins();
    ob_end_clean();
}
require_once 'autoloader.php';
require_once 'simplepie/SimplePie.php';
function fof_set_content_type($type = 'text/html')
{