PHP Classes

File: public/install/assets/config-sample.txt

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  public/install/assets/config-sample.txt  >  Download  
File: public/install/assets/config-sample.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Updating installation due the problem found under UNIX environment

1. Refine the statement to check the rewrite module both Apache and load balancer;
2. Changes of migrations configuration call that it's turns out case sensitive;
3. Updating the sample module extraction notification when modules path isn't writable.
Date: 6 days ago
Size: 2,165 bytes
 

Contents

Class file image Download
%OPENTAG%
/**
 * Configuration file
 * Parameter commented with UPPERCASE must be followed
 *
 * @author			Aby Dahana
 * @profile			abydahana.github.io
 * @website			www.aksaracms.com
 * @since			version 4.0.0
 * @copyright		(c) 2021 - Aksara Laboratory
 * -------------------------------------------------------------------
 * Sometimes you need a fool to complete a complicated job :)
 * -------------------------------------------------------------------
 */

/**
 * Set the default timezone
 */
define('TIMEZONE', '%TIMEZONE%');

/**
 * Set the environment
 * Available option: development, production
 */
define('ENVIRONMENT', 'production');

/**
 * Set the default site url
 */
define('BASE_URL', ((isset($_SERVER['HTTP_MOD_REWRITE']) && strtolower($_SERVER['HTTP_MOD_REWRITE']) == 'on') || (function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules())) || (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) === 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https') ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']));

/**
 * Set the application mode
 */
define('DEMO_MODE', false);

/**
 * Set the security hash
 * Make it secret!
 */
define('ENCRYPTION_KEY', '%ENCRYPTION_KEY%');

/**
 * Cookie name
 * Prevent conflicts between applications built with Aksara
 */
define('COOKIE_NAME', '%COOKIE_NAME%');

/**
 * Default database connection
 */
define('DB_DSN', '%DSN%');
define('DB_DRIVER', '%DB_DRIVER%');
define('DB_HOSTNAME', '%DB_HOSTNAME%');
define('DB_PORT', '%DB_PORT%');
define('DB_USERNAME', '%DB_USERNAME%');
define('DB_PASSWORD', '%DB_PASSWORD%');
define('DB_DATABASE', '%DB_DATABASE%');

/**
 * Upload config
 */
define('UPLOAD_PATH', 'uploads'); // NO TRAILING SLASH
define('MAX_UPLOAD_SIZE', %MAX_UPLOAD_SIZE%);
define('DOCUMENT_FORMAT_ALLOWED', '%DOCUMENT_EXTENSION%');
define('IMAGE_FORMAT_ALLOWED', '%IMAGE_EXTENSION%');
define('IMAGE_DIMENSION', %IMAGE_DIMENSION%);
define('THUMBNAIL_DIMENSION', %THUMBNAIL_DIMENSION%);
define('ICON_DIMENSION', %ICON_DIMENSION%);
For more information send a message to info at phpclasses dot org.