Inclusi js essenziali BugFix LoginManager Creata classe MenuGenerator per ottenere le voci menu in base ai ruoli Incluso sistema di inclusione header in GUIHandler
74 lines
2.5 KiB
PHP
74 lines
2.5 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.env.php") ){
|
|
require_once (dirname(__FILE__)."/config.env.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->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->pubImages = $config->paths->public . "/style/images";
|
|
|
|
$config->paths->media = $config->paths->storage . "/media";
|
|
// $config->paths->defMedia = $config->paths->pubImages . "/defaults";
|
|
$config->paths->tmp = $config->paths->storage . "/tmp";
|
|
$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";
|
|
|
|
// Pages
|
|
$config->pages = new StdClass();
|
|
$config->pages->remoteLocationPath = $currentSystem->remoteLocationPath;
|
|
// $config->pages->index = $currentSystem->remoteLocation . "/index.php";
|
|
// $config->pages->login = $currentSystem->remoteLocation . "/login.php";
|
|
// $config->pages->logout = $currentSystem->remoteLocation . "/logout.php";
|
|
|
|
?>
|