Bugfix su problemi di importazione
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/*
|
||||
Author: Riccardo Di Dato
|
||||
Creation Date: 14/nov/2013
|
||||
*/
|
||||
|
||||
|
||||
// $dbconn = new DatabaseConnection();
|
||||
// $dbconn->dbname = "cbs";
|
||||
// $dbconn->dbtype = "mysql";
|
||||
// $dbconn->location = "localhost";
|
||||
// $dbconn->username = "root";
|
||||
// $dbconn->password = "root";
|
||||
|
||||
$currentSystem = new stdClass();
|
||||
$currentSystem->storageBaseDir = "/home"; // Il path con storage ecc in cui mettere immagini, file temporanei ecc
|
||||
$currentSystem->privateBaseDir = "/home/asdynamics"; // Il path in cui inserire la cartella con lib, task, binari ecc
|
||||
$currentSystem->logBaseDir = "/var/log"; // Il path dei log....
|
||||
$currentSystem->xSendFileDir = "/tmp/xsend";
|
||||
|
||||
$currentSystem->safeStorage = "/home/cbs/storage";
|
||||
|
||||
$currentSystem->apache = new StdClass();
|
||||
$currentSystem->apache->user = "var-www";
|
||||
$currentSystem->apache->group = "var-www";
|
||||
$currentSystem->apache->workdir = "/var/www"; // Il path in cui inserire la cartella con le pagine html
|
||||
|
||||
$currentSystem->remoteLocation = "http://$_SERVER[HTTP_HOST]";
|
||||
|
||||
|
||||
|
||||
// $config->locations = new stdClass();
|
||||
|
||||
// $config->application->applicationInterfacePath = "/tnc15";
|
||||
|
||||
// $config->application->systemTmp = "/tmp";
|
||||
?>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/*
|
||||
Author: Riccardo Di Dato
|
||||
Creation Date: 07/gen/2016
|
||||
*/
|
||||
|
||||
// $dbconn = new DatabaseConnection();
|
||||
// $dbconn->dbname = "cbs";
|
||||
// $dbconn->dbtype = "mysql";
|
||||
// $dbconn->location = "localhost";
|
||||
// $dbconn->username = "root";
|
||||
// $dbconn->password = "root";
|
||||
|
||||
$currentSystem = new stdClass();
|
||||
$currentSystem->storageBaseDir = "/home"; // Il path con storage ecc in cui mettere immagini, file temporanei ecc
|
||||
$currentSystem->privateBaseDir = "/home/asdynamics"; // Il path in cui inserire la cartella con lib, task, binari ecc
|
||||
$currentSystem->logBaseDir = "/var/log"; // Il path dei log....
|
||||
$currentSystem->xSendFileDir = "/tmp/xsend";
|
||||
|
||||
$currentSystem->safeStorage = "/home/cbs/storage";
|
||||
|
||||
$currentSystem->apache = new StdClass();
|
||||
$currentSystem->apache->user = "var-www";
|
||||
$currentSystem->apache->group = "var-www";
|
||||
$currentSystem->apache->workdir = "/var/www"; // Il path in cui inserire la cartella con le pagine html
|
||||
|
||||
$currentSystem->remoteLocation = "http://$_SERVER[HTTP_HOST]";
|
||||
|
||||
|
||||
|
||||
// $config->locations = new stdClass();
|
||||
|
||||
// $config->application->applicationInterfacePath = "/tnc15";
|
||||
|
||||
// $config->application->systemTmp = "/tmp";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,67 @@
|
||||
<?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->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->index = $config->remoteLocation . "/index.php";
|
||||
$config->pages->login = $config->remoteLocation . "/login.php";
|
||||
$config->pages->logout = $config->remoteLocation . "/logout.php";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/*
|
||||
Author: Riccardo Di Dato
|
||||
Creation Date: 19/nov/2013
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// $dbconn = new DatabaseConnection();
|
||||
// $dbconn->dbname = "cbs";
|
||||
// $dbconn->dbtype = "mysql";
|
||||
// $dbconn->location = "localhost";
|
||||
// $dbconn->username = "root";
|
||||
// $dbconn->password = "root";
|
||||
|
||||
$currentSystem = new stdClass();
|
||||
$currentSystem->storageBaseDir = "/home"; // Il path con storage ecc in cui mettere immagini, file temporanei ecc
|
||||
$currentSystem->privateBaseDir = "/home/asdynamics"; // Il path in cui inserire la cartella con lib, task, binari ecc
|
||||
$currentSystem->logBaseDir = "/var/log"; // Il path dei log....
|
||||
$currentSystem->xSendFileDir = "/tmp/xsend";
|
||||
|
||||
$currentSystem->safeStorage = "/home/cbs/storage";
|
||||
|
||||
$currentSystem->apache = new StdClass();
|
||||
$currentSystem->apache->user = "var-www";
|
||||
$currentSystem->apache->group = "var-www";
|
||||
$currentSystem->apache->workdir = "/var/www"; // Il path in cui inserire la cartella con le pagine html
|
||||
|
||||
$currentSystem->remoteLocation = "http://$_SERVER[HTTP_HOST]";
|
||||
|
||||
|
||||
|
||||
// $config->locations = new stdClass();
|
||||
|
||||
// $config->application->applicationInterfacePath = "/tnc15";
|
||||
|
||||
// $config->application->systemTmp = "/tmp";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user