config.ini.php 1009 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. if (!defined('IN_ONLINE')) {
  3. exit('Access Denied');
  4. }
  5. if ($_SESSION['USAI_USER']['is_demo'] == "t") {
  6. $_DB['host'] = '127.0.0.1';
  7. $_DB['username'] = 'root';
  8. $_DB['password'] = '123456';
  9. $_DB['dbname'] = 'usai_website';
  10. $_DB['port'] = '5433';
  11. $_DB['type'] = 'postgres';
  12. } else {
  13. $_DB['host'] = '192.168.0.177';
  14. $_DB['username'] = 'root';
  15. $_DB['password'] = '123456';
  16. if (!empty($_GET['_schemas'])) {
  17. $_DB['dbname'] = 'redant_online_new2';
  18. } else {
  19. $_DB['dbname'] = 'redant_online_new2';
  20. }
  21. $_DB['port'] = '5433';
  22. $_DB['type'] = 'postgres';
  23. }
  24. $db_url = "host=" . $_DB['host'] . " port=" . $_DB['port'] . " dbname=" . $_DB['dbname'] . " user=" . $_DB['username'] . " password=" . $_DB['password'];
  25. $db = NewADOConnection($_DB['type']);
  26. $db->Connect($db_url) or die('Connect Database Error');
  27. $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
  28. $_VERSION = 'RAO 1.0.0.8';
  29. $_COPYRIGHT = 'Copyright @ 2009 United Software Applications,Inc.';
  30. ?>