====== Parameters ======
This page is for 1.x phpfreechat versions. For 2.x versions, check this [[:documentation:parameters.html|page]]
===== Changing the Parameters =====
Making changes to parameters is easy, and allows you to customize how your chat works. To change them, first open index.php in the root of your Php Free Chat folder. Look for several lines that start with $params; this is your parameters list. The parameters list is set into the $params array and passed into the class. To add a new parameter, simply follow the same syntax as the others:
$params['parameter_name'] = [parameter value, either as a string or array depending on the parameter];
After making a change to a parameter, the system may not reflect the new value. This is due to the PFC caching system. In order to tell PFC to correctly update to the new parameter values, you may need to [[rehash|rehash]]. The basic form of rehashing is to assure you have admin rights, and use the command "/rehash" in the chat. More information can be found on the [[rehash]] page.
===== Global parameters list ====
===== Containers parameters list ====
==== File container ====
This is the default container.
* ''container_cfg_server_dir'' : where the private files will be stored (should not be changed)
==== Mysql container ====
* ''container_cfg_mysql_host'' : the host of your Database. Default value is "localhost"
* ''container_cfg_mysql_port'' : the port of your database. default value is 3306
* ''container_cfg_mysql_database'' : your database's name. Default value is "phpfreechat"
* ''container_cfg_mysql_table'' : the table within your database. Default value is "phpfreechat"
* ''container_cfg_mysql_username'' : username to connect to your Database. Default value is "root"
* ''container_cfg_mysql_password'' : password to identify the username that connects to the database. Default value is ""
===== Proxies parameters list ====
Phpfreechat supports command proxies. These proxies can be compared to plugins. Some proxies are provided with the phpfreechat source code and can be configured. Please have a look to the [[proxies|proxies documentation]] to know the available parameters.