Location: PHPKode > projects > Basic Announce > Basic Announce Version 4.0/install/config.tpl
<?php
    
// SITE MODES
//------------------------------------------------------------------------------
define("_SITE_MODE",    "production"); // debug|demo|production 

// SITE CONSTANTS
//------------------------------------------------------------------------------
define("_PANEL_NAME",            "Admin Panel");
define("_SITE_NAME",             "My Site");
define("_SITE_ADDRESS",          "www.mysite.com");
define("_SITE_LANGUAGE",         "en");
define("_DB_TYPE",               "mysql"); // "mysql" - MySQL, "pgsql" - PostgreSQL
define("_CSS_STYLE",             "blue");        
define("_DATAGRID_CSS_STYLE",    "x-blue"); 
define("_MENU_STYLE",            "side"); // side|top
define("_SIDE_PANEL_SCROLLING",  true);   // true|false
define("_ALERT_PANEL_STATUS",    true);  // true - opened | false - closed
define("_HOME_PANEL_STATUS",     true);  // true - opened | false - closed
define("_DASHBOARD_ICONS",       "0");    // "0" - categorized, "1" - heap
define("_SHOW_BREADCRUMBS",      true);   // true|false
define("_PASSWORD_RECOVERY",     true);   // true|false
define("_EXCESSIVE_LOGINS_TIMEOUT", "2"); // in minutes
define("_USER_PASSWORD_EDITING", false);  // true|false
define("_USER_EXCESSIVE_LOGINS",  "3");   // attempts
define("_ADMIN_PASSWORD_EDITING", false); // true|false
define("_ADMIN_EXCESSIVE_LOGINS", "3");   // attempts
define("_ADMIN_EMAIL",           "hide@address.com");
define("_MAILER",                "phpmail"); // phpmail|smtpmail
define("_DB_PREFIX",             "<DB_PREFIX>");
define("_PHP_AP_VERSION",        "<AP_VERSION>"); 
define("_SESSION_TIMEOUT",       "20");
define("_PASSWORDS_ENCRYPTION_TYPE",  '<ENCRYPTION_TYPE>');  // AES|MD5
define("_PASSWORDS_ENCRYPTION",  <ENCRYPTION>); // true|false
define("_PASSWORDS_ENCRYPT_KEY", '<ENCRYPT_KEY>');
define("_ALLOW_REMEMBER_ME",     true);  // true|false
define("_FORCE_HTTPS_PROTOCOL",  false); // true|false
define("_TIME_ZONE_NAME",        'Atlantic/Azores'); // UTC
define("_LANGUAGE_DIR",          'ltr'); // ltr|rtl

//------------------------------------------------------------------------------
if(_SITE_MODE == "debug"){
    ini_set('error_reporting', E_ALL);
    ini_set('display_errors','1');
    ini_set('display_startup_errors','1');
    error_reporting (E_ALL);    
}

//------------------------------------------------------------------------------
class Config
{

    private $host = '';
    private $user = ''; 
    private $password = '';
    private $database = '';
	private $database_type = '';

    private $ftp_host = '';
    private $ftp_user = ''; 
    private $ftp_password = '';

    function __construct()
    {
        $this->host = '<DB_HOST>';  
        $this->user = '<DB_USER>';
        $this->password = '<DB_PASSWORD>';
        $this->database = '<DB_NAME>';
        $this->database_type = '<DB_TYPE>';
    
        $this->ftp_host = "";  
        $this->ftp_user = "";
        $this->ftp_password = "";
    }

    function __destruct()
	{
		// echo 'this object has been destroyed';
    }

    public function getHost()
    {
		return $this->host;
    }
	
    public function getUser()
    {
		return $this->user;
    }
	
    public function getPassword()
    {
		return $this->password;
    }
	
    public function getDatabase()
    {
		return $this->database;
    }

    public function getDatabaseType()
    {
		return $this->database_type;
    }

    function langsArray()
    {
		$fill_from_array_languages = array(
            "ar"=>"Arabic",
            "bg"=>"Bulgarian",
            "ca"=>"Catala",
            "ch"=>"Chinese",
            "cz"=>"Czech",
            "de"=>"German",
            "en"=>"English",
            "es"=>"Espanol",
            "fr"=>"Francais", 
            "gk"=>"Greek",
            "he"=>"Hebrew", 
            "hu"=>"Hungarian",
            "hr"=>"Bosnian/Croatian",
            "it"=>"Italiano",
            "ja_utf8"=>"Japanese",
            "nl"=>"Netherlands",
            "pl"=>"Polish",  
            "pb"=>"Brazilian Portuguese",
            "ro_utf8"=>"Romanian",
            "ru_utf8"=>"Russian",
            "se"=>"Swedish",
            "sr"=>"Serbian",
            "tr"=>"Turkish"
        );
        return $fill_from_array_languages;	
    }
}
    
?>
Return current item: Basic Announce