Blame Scripts/Php/Webenv/config.php

878a2b
878a2b
/***
878a2b
 * CentOS-News configuration files.
878a2b
 * 
878a2b
 */
878a2b
878a2b
    /* HTTP */
878a2b
    define('BASEURL',           'http://localhost/~al/cnus/trunk/');
878a2b
878a2b
    /* HTML */
878a2b
    define('HTML_TITLE',        'CentOS EspaƱol');
878a2b
878a2b
    /* LANGUAGE */
878a2b
    define('LANGUAGE',          'es');
878a2b
    
878a2b
    /* LDAP */
878a2b
    define('LDAP_HOST',         'localhost');
878a2b
    define('LDAP_PORT',         '389');
878a2b
    define('LDAP_DN',           'ou=people,dc=example,dc=com');
878a2b
    define('LDAP_ROOTDN',       'cn=manager,dc=example,dc=com');
878a2b
    define('LDAP_ROOTPW',       'ldap.Example28.InLife');
878a2b
    define('LDAP_PASSHASH',     '{MD5}'); // Ex. {MD5}, {SHA}
878a2b
    define('LDAP_FILTER_ATT',   'preferredlanguage');
878a2b
    define('LDAP_FILTER_TYPE',  '=');
878a2b
    define('LDAP_FILTER_VALUE', LANGUAGE);
878a2b
878a2b
    /* DATABASE
878a2b
878a2b
    In order to this configuration to take effect, you need to commit the
878a2b
    following steps:
878a2b
878a2b
      1. Get into PostgreSQL as superuser and create a database to store the
878a2b
         tables used by this application.
878a2b
878a2b
      2. Build database from predifined SQL commands.
878a2b
878a2b
      3. Create the user you'll use to connect to PostgreSQL. 
878a2b
         (Ex. createuser -P -d cnus )
878a2b
878a2b
      4. Add, to the created user, access to authenticate in the PostgreSQL
878a2b
         host base authentication file (var/lib/pgsql/pg_hba.conf). 
878a2b
878a2b
         For example:
878a2b
878a2b
         # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
878a2b
         local   cnus        cnus                              md5
878a2b
878a2b
      5. Reload PostgreSQL service (Ex. service postgresql reload)
878a2b
878a2b
    */
878a2b
    define('DB_USERNAME',       'cnus');        // Username
878a2b
    define('DB_PASSWORD',       'www.Cnus');    // Password
878a2b
    define('DB_DBNAME',         'cnus');        // Database name
878a2b
    
878a2b
878a2b
//--- stop editing here!
878a2b
878a2b
define('ABSPATH', dirname(__FILE__) . '/');
878a2b
?>