Config.php configuration file is used for storing database, language and administrator's data settings. During the installation process one should create this file manually at the application root folder and fill it according to the instructions.
Config.php example:
<?php $db["host"] = "localhost"; $db["user"] = "root"; $db["password"] = "qpalzm"; $db["name"] = "cncat"; $db["prefix"] = "cncat_"; //$db["charset"] = "cp1251"; $db["alogin"] = "admin"; $db["apassword"] = "47720c1572866c9d9d9b46fe8ae88379"; $LANGUAGE="ru"; // "ru", "en", e.t.c. ?>
$db array contains database and administrator's settings:
| host | MySql server address |
| user | MySql login |
| password | MySql password |
| name | Database name |
| prefix | Prefix for database tables; it is used for division of the tables names for different applications within one database. It is recommended to use the default value, indicated in the installer. |
| charset | Character set for database connection. Keep the default value if you are not sure.
If Russian letters will be displayed as question-marks, you should comment this string or define other coding. Note: In case non-empty value is set, "SET NAMES <character set>" and "SET CHARACTER SET <character set>" commands are executed for connection with the database.. |
| alogin | Administrator's login |
| apassword | Administrator's password, ciphered by means of md5() function. |
The catalogue language is defined in $LANGUAGE variable (Russian, English etc.). Language files are located in lang folder and are selected according to the template "lang_$LANGUAGE.php". If there is no string for the given language in the language file, then the corresponding string from lang_en.php.file will be displayed.