|
|
Internet cursussen en tutorials
|
|
Gesponsorde links
// ZebraFeeds - copyright (c) 2006 Laurent Cazalet
// http://www.cazalet.org/zebrafeeds
//
/* initialization for both admin and user areas */
global $zf_path;
error_reporting(0);
set_magic_quotes_runtime(0);
$zf_path = str_replace("\\", "/", dirname(__FILE__)) . "/";
require_once($zf_path . 'config.php');
if (ZF_USEOPML == 'yes') {
require_once($zf_path . 'includes/opml.php');
}
require_once($zf_path . 'includes/common.php');
setlocale(LC_ALL, ZF_LOCALE);
define('ZF_VER', '1.0');
define('ZF_USERAGENT',"ZebraFeeds/".ZF_VER." (http://www.cazalet.org/zebrafeeds)");
define("ZF_DATADIR",'data');
define("ZF_OPMLDIR",'categories');
define("ZF_CACHEDIR",ZF_DATADIR.'/cache');
define('MAGPIE_OUTPUT_ENCODING', ZF_ENCODING);
define('MAGPIE_USER_AGENT', ZF_USERAGENT);
define('MAGPIE_CACHE_DIR', $zf_path.ZF_CACHEDIR);
define('MAGPIE_DEBUG',0);
define('ZF_DEBUG', 0);
define('ZF_SHOWCREDITS', 'yes');
//Defaults
function defaultConfig($name,$value) {
if (!defined($name)) {
define($name,$value);
}
}
defaultConfig('ZF_LOGINTYPE', 'server');
defaultConfig('ZF_LOCALE', 'english');
defaultConfig('ZF_OWNEREMAIL', '');
defaultConfig('ZF_OWNERNAME', '');
defaultConfig('ZF_PUBDATEFORMAT', '%x, %X');
defaultConfig('ZF_DATEFORMAT', '%x');
defaultConfig('ZF_DYNAMICNEWSLENGTH', 500);
defaultConfig('ZF_REFRESHMODE','automatic');
defaultConfig('ZF_RENDERMODE','automatic');
defaultConfig('ZF_NOFUTURE','no');
defaultConfig('ZF_HOMEURL','');
defaultConfig('ZF_USEOPML', 'yes');
defaultConfig('ZF_ENCODING', 'UTF-8');
defaultConfig('ZF_DISPLAYERROR', 'no');
defaultConfig('ZF_TEMPLATE', 'infojunkie');
defaultConfig('ZF_HOMELIST', 'sample');
//error_reporting(E_ERROR | E_WARNING | E_PARSE);
//error_reporting (E_ALL ^ E_NOTICE);
if (ZF_DEBUG) {
error_reporting (E_ALL);
global $zf_debug;
$zf_debug['clock'][] = microtime();
if (function_exists('getrusage')) {
$dat = getrusage();
$zf_debug['utime_before'] = $dat["ru_utime.tv_sec"].$dat["ru_utime.tv_usec"];
$zf_debug['stime_before'] = $dat["ru_stime.tv_sec"].$dat["ru_stime.tv_usec"];
}
}
?>
| |