config.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. $adodb_dsn = 'mysql://qbuilder:qbuilder@localhost/qbuilder';
  3. $parseUrl = parse_url($adodb_dsn);
  4. $adodb_scheme = $parseUrl['scheme'];
  5. $adodb_host = $parseUrl['host'];
  6. $adodb_user = $parseUrl['user'];
  7. $adodb_pass = $parseUrl['pass'];
  8. $adodb_db = basename($parseUrl['path']);
  9. $opts['hn'] = $adodb_host;
  10. $opts['un'] = $adodb_user;
  11. $opts['pw'] = $adodb_pass;
  12. $opts['db'] = $adodb_db;
  13. $arrOptions = array (
  14. 'add' => 'A',
  15. 'change' => 'C',
  16. 'delete' => 'D',
  17. 'filter' => 'F',
  18. 'copy' => 'P'
  19. );
  20. $loadDataSolution = "<b>mysql -u root<br/>\n".
  21. "mysql&gt;GRANT FILE ON *.* TO ".$adodb_user."@localhost;</b><br/>\n";
  22. $arrFILE = array (
  23. 'menustring.php' => 'MAIN MENU',
  24. 'tableconfig2.php' => 'Import.Table Config',
  25. 'tablelog.php' => 'Import.Table Log',
  26. 'report_designer.php' => 'Report.Report Designer',
  27. 'report2.php' => 'Report.Report',
  28. 'user.php' => 'User.User',
  29. 'module.php' => 'User.Module',
  30. 'right.php' => 'User.Right',
  31. 'group.php' => 'User.Group',
  32. 'user_group.php' => 'User.User Group',
  33. 'user_right.php' => 'User.User Rights',
  34. 'group_right.php' => 'User.Group Rights',
  35. 'user_report.php' => 'User.User Report',
  36. 'language2.php' => 'Language.Language',
  37. 'dictionary2.php' => 'Language.Dictionary',
  38. 'chpass.php' => 'Change Password',
  39. 'qb_changelog.php' => 'Log History',
  40. 'online_user.php' => 'Online User',
  41. 'qb_setting.php' => 'Setting'
  42. );
  43. $arrMODTABLE = array (
  44. 'qb_config' => 'Import.Table Config',
  45. 'qb_log' => 'Import.Table Log',
  46. 'qb_report' => 'Report.Report Designer',
  47. 'qb_user' => 'User.User',
  48. 'qb_module' => 'User.Module',
  49. 'qb_right' => 'User.Right',
  50. 'qb_group' => 'User.Group',
  51. 'qb_user_group' => 'User.User Group',
  52. 'qb_user_right' => 'User.User Rights',
  53. 'qb_group_right' => 'User.Group Rights',
  54. 'qb_user_report' => 'User.User Report',
  55. 'qb_lang' => 'Language.Language',
  56. 'qb_dictionary' => 'Language.Dictionary',
  57. 'qb_changelog' => 'Log History',
  58. 'qb_sessions' => 'Online User',
  59. 'qb_setting' => 'Setting'
  60. );
  61. $arrFILE = array_merge($arrFILE, $arrMODTABLE);
  62. ?>