Configs
From Documentation of ABK-Soft Products
| Languages: |
English Русский |
Contents |
[edit] The list of config files
The config files can be found in the folder _include/config/
_include config db.php filter.php image.php lang.php main.php main_page.php options.php path.php pay.php tmpls.php user_const.php user_set.php
[edit] DB Configuration in the dating software
MySQL DB configuration of the dating software is kept in _include/config/db.php. You can not edit this file in the admin cp on purpose, so that only those who can access the server could edit it. The file is created when the script is being installed.
<? $g["db"]["host"] = "localhost"; # server of MySQL, localhost or, your_server.com:3306 $g["db"]["db"] = "database_name"; # db name $g["db"]["user"] = "database_user"; # db user $g["db"]["password"] = "user_password"; # user password MySQL ?>
[edit] The configuration file main.php
This file includes some most important parameters. All these parameters can be edited from admin cp, but sometimes you will need to edit this directly, for example you may have lost the dating software admin password, but you will find it in this file.
$g['main']['title'] = "My dating and community site!"; # site title $g['main']['admin_password'] = "test"; # admin password $g['main']['info_mail'] = "info@abledating.abk-soft.com"; # E-mail address from which the dating script sends messages $g['main']['text_on_main'] = ""; # Additional parameter used in some unique designs
[edit] Using the full URL of your dating or community site
By default the script uses relative URLs. But you can use full paths, after changing the file path.php. By default it includes this code:
<?php $g['path']['url_main'] = ""; ?>
The variable $g['path']['url_main'] has the value "". In this case all URLs ({url_main}, {url_page}, {url_tmpl_main}) will begin with './'. If you change the vamue say to "http://your_site.com/" all paths will begin with this value. Your url should begin with 'http://' and end with '/'.
[edit] Other dating software configuration files
All other configuration files can be easily edited directly from the admin CP.