CNCat 3.1 / User manual

© "CN-Software" Ltd. 2002-2007
cncat@cn-software.com
www.cn-software.com

Administration - Settings

Config.php

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:

hostMySql server address
userMySql login
passwordMySql password
nameDatabase name
prefixPrefix 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.
charsetCharacter 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..
aloginAdministrator's login
apasswordAdministrator'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.


Back | Manual index | Next