-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.inc.php
41 lines (34 loc) · 1.43 KB
/
config.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Created by PhpStorm.
* User: SemenetsA
* Date: 22.02.15
* Time: 11:31
*/
//define path
define ('DS', DIRECTORY_SEPARATOR);
define ('HOME', dirname(__FILE__));
define('VIEW_DIR', HOME . DS.'View'.DS);
define('MODEL_DIR', HOME . DS.'Model'.DS);
//define form general
define("FORM_NAME", "Pregnancy CDSS Form");
define("FORM_FOLDER", "pregnancy_cdss");
define("GAE_SCRIPT_NAME", "decisiontreegae.php");
//define database table names
define("SYMPTCATEGORY_DBTABLE", "form_pregnancycdss_sympt_category");
define("SYMPTOMS_DBTABLE", "form_pregnancycdss_symptoms");
define("SYMPTOPTIONS_DBTABLE", "form_pregnancycdss_sympt_options");
define("SYMPTBYPATIENT_DBTABLE", "form_pregnancycdss_symptopt_by_patient");
define("PATIENTEXAM_DBTABLE", "form_pregnancycdss_patient_exam");
define("DISEASESSYMPTOMOPTIONS_DBTABLE", "form_pregnancycdss_diseases_sympt_opt");
define("DISEASES_DBTABLE", "form_pregnancycdss_diseases");
define("FIRSTPREGNACYTXT","Перша");
define("NEXTPREGNACYTXT","Повторна");
define("UNDEFINED","Не вказано!");
//print_r('<br>DB connect througt ADOdb_Active_Record');
//establish persistent database connection
//include_once("$srcdir/adodb/adodb-active-record.inc.php");
require_once(dirname(__FILE__) . "/../../../vendor/adodb/adodb-php/adodb-active-record.inc.php");
$form_db = get_db();
ADOdb_Active_Record::SetDatabaseAdapter($form_db);
ADODB_Active_Record::$_changeNames = FALSE;//??????? but required