Configuration files

Site sections

Path Section
/ Website
/admin Administration panel
/admin/install Modules installation

 

 

 

 

config.php

This is the main configuration file. It defines the common constants that are used in the system.

Constant Values Purpose
INSTALL_DONE TRUE/FALSE TRUE when the product is 100% installed
SHOW_CONFIG_READ_ERROR TRUE/FALSE Not used in PG Dating Pro
SITE_SUBFOLDER String Site subdirectory where the product is installed, with the final slash
SITE_PATH String Absolute path to the site files in the OS, with the final slash
SITE_SERVER String Site URL with the final slash
MOBILE_SERVER String URL of the site’s mobile version with the final slash. You can put relative path here if the mobile version is installed in a subdirectory of the main site
COOKIE_SITE_SERVER String Cookie-server
DB_HOSTNAME String Database hostname
DB_USERNAME String Database username
DB_PASSWORD String Database password
DB_DATABASE String Product database
DB_PREFIX String Product tables prefix in the database
DB_DRIVER String Name of the database extension. Possible values: mysql, mysqli, pdo
UPLOAD_DIR String Relative path to the directory with uploads
DEFAULT_DIR String Not used in PG Dating Pro
DATASOURCE_ICONS_DIR String Not used in PG Dating Pro
GENERATE_BACKTRACE TRUE/FALSE Set to TRUE to display debugging output
USE_PROFILING TRUE/FALSE Set to TRUE to display database queries
DISPLAY_ERRORS TRUE/FALSE Set to TRUE to display PHP errors
ADD_LANG_MODE TRUE/FALSE Set to TRUE to display editor for the names used on the page
DEMO_MODE TRUE/FALSE Enables demo mode. When set to TRUE, a demo panel appears on top of all pages
CUSTOM_MODE String If files are added as part of customization, you can use inheriting classes for controllers. Possible values: custom_, demo_
USE_MEMCACHE TRUE/FALSE Use memcached server
TPL_FORCE_COMPILE TRUE/FALSE Template Lite templates are compiled every time they are called
TPL_PRINT_NAMES TRUE/FALSE Print names of templates blocks
USE_IMAGE_MAGIC TRUE/FALSE Use command line utility ImageMagic to process graphic files
PATH_TO_IMAGE_MAGIC String Path to command line utility ImageMagic
HIDE_INDEX_PAGE TRUE/FALSE Remove from the site URL the start file from $config[‘index_page’]. E.g.: to use /users/index instead of /index.php/users/index