106 lines
3.8 KiB
PHP
106 lines
3.8 KiB
PHP
<?php
|
|
/*
|
|
Author: Riccardo Di Dato
|
|
Creation Date: 07/gen/2016
|
|
*/
|
|
|
|
$project = new stdClass();
|
|
$project->name = "I Fatti di Napoli 2.0";
|
|
$project->buildName = "fdn2";
|
|
|
|
$project->defaultLocale = "it";
|
|
|
|
|
|
if (file_exists(dirname(__FILE__)."/config.local.php") ){
|
|
require_once (dirname(__FILE__)."/config.local.php");
|
|
}
|
|
else if (file_exists(dirname(__FILE__)."/config.test.php") ){
|
|
require_once (dirname(__FILE__)."/config.test.php");
|
|
}
|
|
else{
|
|
require_once (dirname(__FILE__)."/config.prod.php");
|
|
}
|
|
|
|
// Generic voices
|
|
$config = new stdClass();
|
|
|
|
$config->info = new stdClass();
|
|
$config->info->projectName = "I Fatti di Napoli";
|
|
$config->info->projectDescription = "Giornale quotidiano di Napoli con ultime notizie di politica, cultura, sport e spettacolo. Informazioni ed interviste su calcio e municipalità Informazioni su tutti i paesi e quartieri di Napoli";
|
|
$config->info->owner = "Antonio Pianelli";
|
|
$config->info->author = "Antonio Pianelli";
|
|
|
|
$config->locale = new stdClass();
|
|
$config->locale->gui = $project->defaultLocale;
|
|
$config->locale->system = $project->defaultLocale;
|
|
|
|
// PATHS
|
|
$config->paths = new StdClass();
|
|
$config->paths->storage = $currentSystem->storageBaseDir . "/" . $project->buildName;
|
|
$config->paths->private = $currentSystem->privateBaseDir . "/" . $project->buildName;
|
|
$config->paths->public = $currentSystem->apache->workdir . "/" . $project->buildName;
|
|
$config->paths->log = $currentSystem->logBaseDir . "/" . $project->buildName;
|
|
$config->paths->tmp = $currentSystem->tmpBaseDir . "/" . $project->buildName;
|
|
|
|
|
|
$config->paths->backup = $config->paths->storage . "/backup";
|
|
$config->paths->binaries = $config->paths->private . "/bin";
|
|
$config->paths->common = $config->paths->private . "/common";
|
|
$config->paths->libraries = $config->paths->private . "/lib";
|
|
$config->paths->task = $config->paths->private . "/task";
|
|
$config->paths->cbsQueue = $config->paths->tmp . "/cbsQueue";
|
|
$config->paths->backupTmp = $config->paths->tmp . "/bak";
|
|
|
|
$config->paths->imageCache = $config->paths->tmp . "/imageCache";
|
|
|
|
$config->paths->pubImages = $config->paths->public . "/style/images";
|
|
|
|
$config->paths->media = $config->paths->storage . "/media";
|
|
// $config->paths->defMedia = $config->paths->pubImages . "/defaults";
|
|
$config->paths->xsendfile = $currentSystem->xSendFileDir . "/" . $project->buildName;
|
|
|
|
|
|
// FILES
|
|
$config->files = new StdClass();
|
|
|
|
$config->files->core_log = $config->paths->log . "/core.log";
|
|
$config->files->dao_log = $config->paths->log . "/dao.log";
|
|
$config->files->task_log = $config->paths->log . "/task.log";
|
|
$config->files->general_log = $config->paths->log . "/general.log";
|
|
$config->files->gui_log = $config->paths->log . "/gui.log";
|
|
$config->files->mail_log = $config->paths->log . "/mail.log";
|
|
$config->files->api_log = $config->paths->log . "/api.log";
|
|
|
|
$config->files->meteoCache = $config->paths->tmp . "/meteo.json";
|
|
|
|
// Pages
|
|
$config->pages = new StdClass();
|
|
$config->pages->remoteLocationPath = $currentSystem->remoteLocationPath;
|
|
|
|
|
|
// Emails
|
|
$config->emails = new StdClass();
|
|
$config->emails->newsletter = "newsletter@ifattidinapoli.it";
|
|
$config->emails->techSupport = "tecnicalSupport@ifattidinapoli.it";
|
|
$config->emails->info = "info@ifattidinapoli.it";
|
|
$config->emails->system = "system@ifattidinapoli.it";
|
|
$config->emails->postmaster = "postmaster@ifattidinapoli.it";
|
|
|
|
// $config->pages->index = $currentSystem->remoteLocation . "/index.php";
|
|
// $config->pages->login = $currentSystem->remoteLocation . "/login.php";
|
|
// $config->pages->logout = $currentSystem->remoteLocation . "/logout.php";
|
|
|
|
|
|
$config->api = new stdClass();
|
|
$config->api->account = $backupSystem->account;
|
|
$config->api->passphrase = $backupSystem->passphrase;
|
|
|
|
// CBS 2
|
|
$config->cbs2 = new stdClass();
|
|
$config->cbs2->keyFile = $config->paths->common . "/" . $cbs2->keyfile;
|
|
$config->cbs2->serverPort = $cbs2->serverPort;
|
|
|
|
$config->database = $database;
|
|
|
|
?>
|