Esempio n. 1
0
File: conf.php Progetto: stripTM/acd
    public static $PERMISSION_PATH;
    public static $USE_AUTHENTICATION;
    public static $AUTH_PERSITENT_EXPIRATION_TIME;
    public static $PATH_AUTH_CREDENTIALS_FILE;
    public static $PATH_AUTH_PREMANENT_LOGIN_DIR;
    public static $ROL_DEVELOPER;
    public static $ROL_EDITOR;
    public static $MYSQL_SERVER;
    public static $MYSQL_USER;
    public static $MYSQL_PASSWORD;
    public static $MYSQL_SCHEMA;
    public static $MONGODB_SERVER;
}
conf::$DIR_TEMPLATES = DIR_BASE . '/app/view';
conf::$DATA_PATH = '/mnt/contenido/acd/structures.json';
conf::$DATA_DIR_PATH = '/mnt/contenido/acd/structures';
conf::$DATA_CONTENT_PATH = '/mnt/contenido/acd/contents';
conf::$STORAGE_TYPE_TEXTPLAIN = 'text/plain';
conf::$STORAGE_TYPE_MONGODB = 'mongodb';
conf::$STORAGE_TYPE_MYSQL = 'mysql';
conf::$STORAGE_TYPES = [conf::$STORAGE_TYPE_TEXTPLAIN => ['name' => 'text/plain', 'disabled' => true], conf::$STORAGE_TYPE_MONGODB => ['name' => 'Mongo DB', 'disabled' => false], conf::$STORAGE_TYPE_MYSQL => ['name' => 'MySql', 'disabled' => true]];
conf::$DEFAULT_STORAGE = conf::$STORAGE_TYPE_MONGODB;
conf::$PERMISSION_PATH = '/mnt/contenido/acd/permission.json';
conf::$USE_AUTHENTICATION = true;
conf::$AUTH_PERSITENT_EXPIRATION_TIME = 31536000;
// 1 year
conf::$PATH_AUTH_CREDENTIALS_FILE = '/mnt/contenido/acd/auth.json';
conf::$PATH_AUTH_PREMANENT_LOGIN_DIR = '/mnt/contenido/acd/auth_permanent_login';
conf::$ROL_DEVELOPER = 'developer';
conf::$ROL_EDITOR = 'editor';
conf::$MYSQL_SERVER = 'localhost';