コード例 #1
0
ファイル: nodb_config.php プロジェクト: philfree/radria
//  Change the default events parameters times out
//  $cfg_event_param_garbage_time_out = 3600;
//  $cfg_event_param_garbage_interval = 3400;
//Radria usage statistics:
$cfg_radria_stat_usage = true;
error_reporting(E_ERROR | E_WARNING | E_PARSE);
if (file_exists($GLOBALS['cfg_full_path'] . 'includes/extraconfig.inc.php')) {
    include_once $GLOBALS['cfg_full_path'] . 'includes/extraconfig.inc.php';
}
$cfg_web_path = dirname($_SERVER['PHP_SELF']);
if (!ereg("/\$", $cfg_web_path)) {
    $cfg_web_path .= "/";
}
session_set_cookie_params(0, $cfg_web_path);
session_start();
//include("includes/lang_".$cfg_lang.".inc.php") ;
//$_SESSION["cfg_lang"] = $cfg_lang ;
// Database connexions :
//Uncomment bellow if you plan to use a database
$conx = new sqlConnect("@login", "@password");
$conx->setHostname("@hostname");
$conx->setDatabase("@database");
// Directory where pas is located
$conx->setBaseDirectory($cfg_local_pasdir);
// Directory where the project is located unless your config.php file is outside your project tree is should be "./"
$conx->setProjectDirectory($cfg_full_path . "./");
//$conx->start() ;
include "includes/globalvar.inc.php";
if (file_exists("includes/extraconfig_postdb.inc.php")) {
    include_once "includes/extraconfig_postdb.inc.php";
}
コード例 #2
0
ファイル: config.php プロジェクト: philfree/radria
$cfg_notrefererequestkey = "XX5X5XC7C5CFF7FC7C65FCD7FGGFD7FR22462";
//Radria anonymous usage statistics:
$cfg_radria_stat_usage = true;
// Turn off errors display on production site
// or when using the pas pagebuilder
//error_reporting(0);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
if (file_exists($GLOBALS['cfg_full_path'] . 'includes/extraconfig.inc.php')) {
    include_once $GLOBALS['cfg_full_path'] . 'includes/extraconfig.inc.php';
}
$cfg_web_path = dirname($_SERVER['PHP_SELF']);
if (!ereg("/\$", $cfg_web_path)) {
    $cfg_web_path .= "/";
}
session_set_cookie_params(0, $cfg_web_path);
session_start();
//include("includes/lang_".$cfg_lang.".inc.php") ;
//$_SESSION["cfg_lang"] = $cfg_lang ;
// Database connexions :
$conx = new sqlConnect("radria", "sample");
$conx->setHostname("localhost");
$conx->setDatabase("RadriaSample");
// Directory where pas is located
$conx->setBaseDirectory($cfg_local_pasdir);
// Directory where the project is located unless your config.php file is outside your project tree is should be "./"
$conx->setProjectDirectory($cfg_full_path . "./");
$conx->start();
include "includes/globalvar.inc.php";
if (file_exists("includes/extraconfig_postdb.inc.php")) {
    include_once "includes/extraconfig_postdb.inc.php";
}