// IBM_DB2 if (zbx_is_callable(array('db2_connect', 'db2_set_option', 'db2_prepare', 'db2_execute', 'db2_fetch_assoc'))) { $ZBX_CONFIG['allowed_db']['IBM_DB2'] = 'IBM DB2'; } // SQLITE3. The false is here to avoid autoloading of the class. if (class_exists('SQLite3', false) && zbx_is_callable(array('ftok', 'sem_acquire', 'sem_release', 'sem_get'))) { $ZBX_CONFIG['allowed_db']['SQLITE3'] = 'SQLite3'; } if (count($ZBX_CONFIG['allowed_db']) == 0) { $ZBX_CONFIG['allowed_db']['no'] = 'No'; } /* * Setup wizard */ global $ZBX_SETUP_WIZARD; $ZBX_SETUP_WIZARD = new CSetupWizard($ZBX_CONFIG); zbx_set_post_cookie('ZBX_CONFIG', serialize($ZBX_CONFIG)); require_once dirname(__FILE__) . '/include/page_header.php'; include 'include/views/js/setup.js.php'; /* * Check configuration */ global $ZBX_CONFIGURATION_FILE; if (file_exists($ZBX_CONFIGURATION_FILE)) { if (isset($_REQUEST['message'])) { show_error_message($_REQUEST['message']); } } $ZBX_SETUP_WIZARD->show(); unset($_POST); require_once dirname(__FILE__) . '/include/page_footer.php';
} /* POSTGRESQL */ if (zbx_is_callable(array('pg_pconnect', 'pg_fetch_array', 'pg_fetch_row', 'pg_exec', 'pg_getlastoid'))) { $ZBX_CONFIG['allowed_db']['POSTGRESQL'] = 'PostgreSQL'; } /* ORACLE */ if (zbx_is_callable(array('ocilogon', 'ocierror', 'ociparse', 'ociexecute', 'ocifetchinto'))) { $ZBX_CONFIG['allowed_db']['ORACLE'] = 'Oracle'; } /* SQLITE3 */ if (zbx_is_callable(array('sqlite3_open', 'sqlite3_close', 'sqlite3_query', 'sqlite3_error', 'sqlite3_fetch_array', 'sqlite3_query_close', 'sqlite3_exec'))) { $ZBX_CONFIG['allowed_db']['SQLITE3'] = 'SQLite3'; } if (count($ZBX_CONFIG['allowed_db']) == 0) { $ZBX_CONFIG['allowed_db']['no'] = 'No'; } global $ZBX_SETUP_WIZARD; $ZBX_SETUP_WIZARD = new CSetupWizard($ZBX_CONFIG); zbx_set_post_cookie('ZBX_CONFIG', serialize($ZBX_CONFIG)); include_once 'include/page_header.php'; global $ZBX_CONFIGURATION_FILE; if (file_exists($ZBX_CONFIGURATION_FILE)) { if (isset($_REQUEST['message'])) { show_error_message($_REQUEST['message']); } } insert_showhint_javascript(); echo SBR; $ZBX_SETUP_WIZARD->Show(); unset($_POST); include_once 'include/page_footer.php';