Files
fdn2/private/common/config.php
T
2016-03-17 20:43:51 +01:00

97 lines
3.4 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 = "Il giornale della terza metropoli italiana";
$config->info->owner = "Antonio Pianelli";
$config->info->author = "ASDynamics";
$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->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;
?>