} if (defined('ENABLE_RESEARCH_STUDY')) { echo "\n\tInitializing Research Tables\n"; // Create object for the research table $manageResearchObj = new dbManage(false); $manageResearchObj->db->selectDB('research'); // set up system status table for research database // to do - move this to a dbrowobject model $manageObj->addTable("SystemStatus", "id", "INT(4) unsigned NOT NULL auto_increment", "MyISAM"); $manageObj->addColumn("SystemStatus", "name", "VARCHAR(35) default ''"); $manageObj->addColumn("SystemStatus", "strValue", "TEXT default ''"); $manageObj->addColumn("SystemStatus", "numValue", "BIGINT(20) default 0"); if ($manageObj->modifyLibrary(PATH_CORE . '/classes/', 'researchRawSession.class.php')) { // Create Research -- RawSessions table for the contact us functions require_once PATH_CORE . '/classes/researchRawSession.class.php'; RawSessionTable::createTable($manageResearchObj); $rawSessionTable = new RawSessionTable($manageResearchObj->db); echo "\n\tInserting full data for RawSession table.\n"; } if ($manageObj->modifyLibrary(PATH_CORE . '/classes/', 'researchSessionLength.class.php')) { // Create Research -- SessionLengths table for the contact us functions require_once PATH_CORE . '/classes/researchSessionLength.class.php'; SessionLengthTable::createTable($manageResearchObj); $sessionLengthTable = new SessionLengthTable($manageResearchObj->db); } if ($manageObj->modifyLibrary(PATH_CORE . '/classes/', 'researchRawExtLink.class.php')) { // Create Research -- RawExtLinks table for the contact us functions require_once PATH_CORE . '/classes/researchRawExtLink.class.php'; RawExtLinkTable::createTable($manageResearchObj); $rawExtLinkTable = new RawExtLinkTable($manageResearchObj->db); }