define("QTSERIAL","DOF_0918621771_DOF");
if (!extension_loaded('xsl')) {
dl('xsl.so');
}
if (!extension_loaded('dom')) {
dl('dom.so');
}
if (!function_exists('ctype_digit')) {
function ctype_digit($num) {
return is_numeric($num);
}
}
function DataLista($epoca)
{
return date("d.m.y / H:i:s ",$epoca);
}
function DataCorta($epoca)
{
return date("d.m.y-H:i ",$epoca);
}
function DataRss($epoca)
{
return date("D M j G:i:s T Y",$epoca);
}
function NowDate()
{
return date("D M j G:i:s T Y");
}
$zipbin = `which unzip`;
if (!eregi('unzip', $zipbin)) {
echo "
Basic application not found -> unzip bin not found! apt-get install unzip on your server!\n
";
exit;
}
function DecompressValue($cmd) {
$zipbin = `which unzip`;
if (!eregi('unzip', $zipbin)) {
return NULL;
}
return @passthru(escapeshellcmd($zipbin." ".$cmd));
}
define ("PAGEAPI","api");
define ("mmmmmmmmmDEBUGMODAL",1);
if(!defined('DIR_SEP')) {
define('DIR_SEP', DIRECTORY_SEPARATOR); /* os indipendent dir separator / or \\ */
}
if(!defined('ROOT_WWW_DIR')) {
define('ROOT_WWW_DIR',dirname(__FILE__).DIR_SEP);
}
define("INCLUDE_DIR",ROOT_WWW_DIR."pop".DIR_SEP);
define("INCLUDE_PEAR",ROOT_WWW_DIR."inc".DIR_SEP);
define("INC_SITEMAP",ROOT_WWW_DIR."map".DIR_SEP);
define("BASEWEBHOST","http://".$_SERVER['HTTP_HOST']."/");
define("CACHEWEBS",ROOT_WWW_DIR."tmp".DIR_SEP);
define ("DEFAULT_LANG", "it");
define ("HOST", "localhost");
define ("USER", "biasca");
define ("PASS", "44biasca44");
define ("DBTYPE", "mysql");
define ("DBASE_0", "biasca_cms");
define("SQLDNS","mysql://".USER.":".PASS."@".HOST."/".DBASE_0);
define('DATUMSERVER',utf8_encode(gmstrftime("%A %d-%b-%y %T")));
$INC_Path[]=INCLUDE_PEAR;
$INC_Path[]=INCLUDE_DIR;
$INC_Path[]=INC_SITEMAP;
$INC_Path[]=INCLUDE_PEAR."XML".DIR_SEP;
$INC_Path[]=INCLUDE_PEAR."DB".DIR_SEP;
$INC_Path[]=INCLUDE_PEAR."CMS".DIR_SEP; /* cms subclass */
$INC_Path[]=INCLUDE_PEAR."OS".DIR_SEP;
$INC_Path[]=INCLUDE_PEAR."MDB2".DIR_SEP;
ini_set('arg_separator.output','&');
ini_set ("upload_max_filesize","8M");
ini_set("display_errors","1");
ini_set("html_errors","1");
ini_set("memory_limit","20M");
ini_set("post_max_size","20M"); /////
error_reporting(E_ALL);
ini_set('display_errors','On');
foreach ($INC_Path as $Includes_Dir) {
set_include_path(get_include_path().PATH_SEPARATOR.$Includes_Dir) or die("Error set inlude path ".$Includes_Dir);
}
include_once("PEAR.php");
include_once("MDB2.php");
include_once("autoload.php");
include_once("DB_Service.php");
$path = "/".DEFAULT_LANG."/index";
if (isset($_GET['path'])) {
$path = "/".$_GET['path'];
}
define ("PATH_REQUEST",$path);
$sitemap = new popoon (ROOT_WWW_DIR."sitemap.xml",$path);
?>