This commit is contained in:
Oros 2013-01-23 21:35:47 +01:00
parent d3ba5c55a7
commit 30831392e9
2 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,8 @@
<?php
define('ROOT_DIR', dirname($_SERVER['SCRIPT_FILENAME']));
if(!defined('ROOT_DIR'))
{
define('ROOT_DIR', dirname($_SERVER['SCRIPT_FILENAME']));
}
define('LOCAL_URI', '');
date_default_timezone_set('Europe/Paris');
setlocale(LC_TIME, 'fr_FR.UTF-8', 'fr_FR', 'fr');

View file

@ -2,12 +2,11 @@
/* modtime 2013-01-23 */
define('ROOT_DIR', __DIR__);
if(file_exists("config.php")){
include "config.php";
}else{
define('ROOT_DIR', __DIR__);
}
echo ROOT_DIR;
function get_title_from_feed($url)
{
// get site title from feed