| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- if (!defined('IN_ONLINE')) {
- exit('Access Denied');
- }
- if ($_SESSION['USAI_USER']['is_demo'] == "t") {
- $_DB['host'] = '127.0.0.1';
- $_DB['username'] = 'root';
- $_DB['password'] = '123456';
- $_DB['dbname'] = 'usai_website';
- $_DB['port'] = '5433';
- $_DB['type'] = 'postgres';
- } else {
- $_DB['host'] = '192.168.0.177';
- $_DB['username'] = 'root';
- $_DB['password'] = '123456';
- if (!empty($_GET['_schemas'])) {
- $_DB['dbname'] = 'redant_online_new2';
- } else {
- $_DB['dbname'] = 'redant_online_new2';
- }
- $_DB['port'] = '5433';
- $_DB['type'] = 'postgres';
- }
- $db_url = "host=" . $_DB['host'] . " port=" . $_DB['port'] . " dbname=" . $_DB['dbname'] . " user=" . $_DB['username'] . " password=" . $_DB['password'];
- $db = NewADOConnection($_DB['type']);
- $db->Connect($db_url) or die('Connect Database Error');
- $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
- $_VERSION = 'RAO 1.0.0.8';
- $_COPYRIGHT = 'Copyright @ 2009 United Software Applications,Inc.';
- ?>
|