/conf/config.php

Description

General configuration (constants and variables)

DO NOT MODIFY THIS FILE, USE 'local_config.php' TO TUNE PREFERENCES.

Includes
require_once ('conf/svn_release.php') (line 32)
require_once ('conf/local_config.php') (line 320)

Include local settings (database connection, default language, ...)

Constants
AIR_CST_ENERGY = 0.00205 (line 100)

Constant (c * speed^2) to compute air friction in cal / meter, sport specific

AVG_CYCLING_EFFICIENCY = 0.75 (line 88)
AVG_RUNNING_EFFICIENCY = 0.25 (line 87)

Average efficiency (fraction of physilogical energy transformed in

mechanical energy, sport-specific)

  • todo: Tune in [0-1], use scientific studies
CALORY_2_JOULE = 4.184 (line 49)

One calory in Joules, to compute energy in cal or Kcal

DEF_MAX_HR = 180 (line 61)

Default maximum heart rate if not in user files / database

DEF_REST_HR = 60 (line 57)

Default rest heart rate if not in user files / database

GRAVI_CST = 9.810 (line 73)

Gravitational constant (m/s-2), to compute optential energy

GROUND_CST_ENERGY = 0.18483 (line 96)

Constant (c/speed) to compute ground friction in cal / meter, sport specific

ICON_LARGE_SIZE = 32 (line 117)

Width and heigth of large icons in pixels

ICON_MEDIUM_SIZE = 22 (line 113)

Width and heigth of medium icons in pixels

ICON_SMALL_SIZE = 16 (line 109)

Width and heigth of small icons in pixels

MIN_DELTA_ALTITUDE = 4 (line 69)

Minimum difference of altitude (meters), to detect ascend

MOVE_CST_ENERGY = 0.94810 (line 92)

Constant to compute move energy in cal / meter, sport specific

OFFICIAL_WEB = 'www.php-endurance.org' (line 44)

Official web site

PACKAGE_FULLNAME = PACKAGE_NAME.' v'.PACKAGE_VERSION (line 29)

Package full name (name version)

PACKAGE_FULLNAME_SVN = PACKAGE_FULLNAME.' (SVN release : '.SVN_VERSION.')' (line 36)

Package full name + SVN release (name version SVN-release)

PACKAGE_NAME = 'PHP-Endurance' (line 21)

Package name (as displayed)

PACKAGE_VERSION = '1.0.4' (line 25)

Package version

PHYSIO_CST_POWER = 0.0000992 (line 81)

Constant to compute physiological energy = F(HR) in Kcal (all sports)

PHYSIO_CST_REST = 0.850 (line 77)

Constant to compute body energy (energy consumed at resting HR, all sports)

POT_DOWN_USED_CST_ENERGY = 0.67 (line 104)

Fraction of potential energy which is reused while descending, sport specific

STRIDE_MAX = 400 (line 65)

Maximum stride length (cm), in case of too high value

VO2MAX_VMA_RATIO = 3.50 (line 53)

Constant to convert VO2max (general) <--> MAS (running specific)

Variables
string $GLOBALS['all_lang'] (line 213)

Available languages for display, comma separated list.

Languages will be listed in this order in language select.

integer $GLOBALS['browser_default_width'] (line 229)

Default browser width (if cannot be obtained through 'browser_width' cookie) Value must be >= 600 and <= 2000.

integer $GLOBALS['calendar_hr_bar_max_width'] (line 302)

Maximum width in pixels for heart rate bar in calendar (longest duration).

Value must be >= 32 and <= 256.

integer $GLOBALS['calendar_week_fwd_nb'] (line 296)

Number of weeks to go forward (>>) / backward () in calendar.

Value must be >= $GLOBALS['calendar_week_nb'] and <= 52.

integer $GLOBALS['calendar_week_nb'] (line 290)

Number of weeks displayed in calendar. Value must be >= 1.

string $GLOBALS['data_dir'] (line 200)

Data directory to store users data files. Must end with '/'.

APACHE USER MUST HAVE READ / WRITE / EXECUTE ACCESS ON THIS DIRECTORY. It can be either a path relative to server root or an absolute path.

string $GLOBALS['def_lang'] (line 218)

Default language for display (stored in $_SESSIONS['lang'])

integer $GLOBALS['fs_block_size'] (line 158)

File system block size (used to measure data files disk space) Value must be >= 1 and <= 65536.

Set to 512 on a windows system ?

integer $GLOBALS['garbage_collect_proba'] (line 206)

Garbage collector probility (percent) to del files from tmp and upload dirs.

Value must be >= 1 and <= 100.

integer $GLOBALS['home_exe_stats_max_sport'] (line 266)

Maximum number of sports displayed in global statistics on home page If = 0, only total will be displed.

Value must be >= 0.

boolean $GLOBALS['home_exe_stats_show'] (line 259)

Flag to show or not exercises global statistics on home page

boolean $GLOBALS['home_global_counters'] (line 235)

Flag to show or not global counters (members and exercises) on home page

integer $GLOBALS['home_max_exe_age'] (line 278)

Do not display exercises older than <home_max_exe_age> days in home page Value must be >= 1.

integer $GLOBALS['home_max_exe_nb'] (line 272)

Maximum number of exercises displayed in home page (most recent ones).

Value must be >= 0. (0 means recent exercices are not displayed in home page)

integer $GLOBALS['home_max_member_nb'] (line 241)

Maximum number of public members displayed in home page (most recent ones).

Value must be >= 0. (0 means recent members are not displayed in home page)

integer $GLOBALS['home_max_member_reg_age'] (line 247)

Do not display members older than <home_max_member_reg_age> days in home page Value must be >= 1.

integer $GLOBALS['home_min_exe_duration'] (line 284)

Do not display exercises having duration < <home_min_exe_duration> minutes in home page. Value must be >= 0 and <= 180.

integer $GLOBALS['home_min_member_exe_nb'] (line 254)

Do not display members having less than <home_min_member_exe_nb> online exes in home page. Value must be >= 0 and <= 100.

If value = 0, members with no data are also displayed.

integer $GLOBALS['import_max_note_length'] (line 315)

Maximum number of characters for notes in import tables (truncate if larger).

Value must be >= 20 and <= 100.

string $GLOBALS['noreply_from'] (line 130)

Sender of email for user registration / change password.

You should set it to a value accepted by your ISP. If not set, default is : 'no-reply@<package-name>.org'

integer $GLOBALS['session_gc_maxlifetime'] (line 164)

PHP session timeout in seconds Value must be >= 180 and <= 86400.

string $GLOBALS['site_name'] (line 142)

Site name used in emails and page titles

If not set, default is : '<package-name>'

string $GLOBALS['site_url'] (line 148)

Site base url used in emails

If not set, default is : 'http://<http_host>dirname(<request_uri>)'

string $GLOBALS['tmp_dir'] (line 171)

Temporary directory to store generated files (graphics). Must end with '/'.

APACHE USER MUST HAVE READ / WRITE / EXECUTE ACCESS ON THIS DIRECTORY. IT MUST BE A PATH RELATIVE TO SERVER ROOT.

integer $GLOBALS['tmp_files_duration'] (line 178)

Cleanup files in $GLOBALS['tmp_dir'] which are older than $GLOBALS['tmp_files_duration'] seconds.

Value must be >= 30 and <= 86400.

string $GLOBALS['upload_dir'] (line 186)

Upload directory to store files uploaded by users before they are moved to data directory. Must end with '/'.

APACHE USER MUST HAVE READ / WRITE / EXECUTE ACCESS ON THIS DIRECTORY. It can be either a path relative to server root or an absolute path.

integer $GLOBALS['upload_files_duration'] (line 193)

Cleanup files in $GLOBALS['upload_dir'] which are older than $GLOBALS['upload_files_duration'] seconds.

Value must be >= 120 and <= 86400.

string $GLOBALS['webmaster_email'] (line 136)

Webmaster email used as contact in HTML footer

If empty string (default) : No contact displayed in footer

Documentation generated on Sat, 28 Mar 2009 23:15:16 +0000 by phpDocumentor 1.4.1