You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
4.6 KiB

  1. <?php
  2. // Project: Web Reference Database (refbase) <http://www.refbase.net>
  3. // Copyright: Matthias Steffens <mailto:refbase@extracts.de> and the file's
  4. // original author(s).
  5. //
  6. // This code is distributed in the hope that it will be useful,
  7. // but WITHOUT ANY WARRANTY. Please see the GNU General Public
  8. // License for more details.
  9. //
  10. // File: ./initialize/db.inc.php
  11. // Repository: $HeadURL: http://svn.code.sf.net/p/refbase/code/trunk/initialize/db.inc.php $
  12. // Author(s): Matthias Steffens <mailto:refbase@extracts.de>
  13. //
  14. // Created: 15-Oct-02, 19:11
  15. // Modified: $Date: 2007-03-19 05:41:29 -0700 (Mon, 19 Mar 2007) $
  16. // $Author: msteffens $
  17. // $Revision: 901 $
  18. // This file holds crucial
  19. // database access information.
  20. // Please read the notes below!
  21. // NOTE: Edit the variables '$databaseName', '$username' and '$password' to suit your setup!
  22. // (Although you'll be able to use the refbase package without modifying these variables,
  23. // we highly recommend not to use the default values!)
  24. // CAUTION: To avoid security risks you must not permit any remote user to view this file!
  25. // E.g., this can be done by adjusting the config file of your server ("httpd.conf"
  26. // in case of the Apache web server) to disallow viewing of "*\.inc.php" files
  27. // ("Deny from all"). Please see your web server documentation for further information.
  28. // --------------------------------------------------------------------
  29. // The host name of your MySQL installation:
  30. $hostName = "localhost"; // e.g.: "localhost"
  31. // The name of the MySQL database that you're planning to use with the
  32. // refbase package:
  33. // Note: - if there's no existing database with the specified name,
  34. // the 'install.php' script will create it for you
  35. $databaseName = "literature"; // e.g.: "literature"
  36. // The name of the MySQL user that's going to be used with your MySQL
  37. // literature database:
  38. // Note: - this user should be a separate MySQL user (different from the
  39. // user that has full administrative privileges like the root user!)
  40. // - if there's no existing MySQL user with the specified name,
  41. // the 'install.php' script will create this user for you
  42. $username = "litwww"; // e.g.: "litwww"
  43. // The password by which the above MySQL user will be granted access to
  44. // your MySQL literature database:
  45. $password = "%l1t3ratur3?"; // e.g.: "%l1t3ratur3?"
  46. // --------------------------------------------------------------------
  47. // NOTE: You shouldn't change anything below this line unless you know what you're doing!
  48. // If you need to put the refbase tables into an existing MySQL database, you may want to
  49. // rename the refbase tables to avoid any name conflicts. If you do so, you need to adopt
  50. // the table prefix (and/or table names) accordingly. Note that you must then also change
  51. // the table names in files 'install.sql' and 'update.sql'.
  52. // The table name prefix used for refbase MySQL tables:
  53. $tablePrefix = ""; // e.g.: "rb_"
  54. // database values for security not in resporitory
  55. // include('db.dev.php');
  56. include('db.live.php');
  57. // The names of the MySQL database tables used by refbase:
  58. // -> in code comments referred to as table:
  59. $tableAuth = $tablePrefix . "auth"; // -> 'auth'
  60. $tableDeleted = $tablePrefix . "deleted"; // -> 'deleted'
  61. $tableDepends = $tablePrefix . "depends"; // -> 'depends'
  62. $tableFormats = $tablePrefix . "formats"; // -> 'formats'
  63. $tableLanguages = $tablePrefix . "languages"; // -> 'languages'
  64. $tableQueries = $tablePrefix . "queries"; // -> 'queries'
  65. $tableRefs = $tablePrefix . "refs"; // -> 'refs'
  66. $tableStyles = $tablePrefix . "styles"; // -> 'styles'
  67. $tableTypes = $tablePrefix . "types"; // -> 'types'
  68. $tableUserData = $tablePrefix . "user_data"; // -> 'user_data'
  69. $tableUserFormats = $tablePrefix . "user_formats"; // -> 'user_formats'
  70. $tableUserOptions = $tablePrefix . "user_options"; // -> 'user_options'
  71. $tableUserPermissions = $tablePrefix . "user_permissions"; // -> 'user_permissions'
  72. $tableUserStyles = $tablePrefix . "user_styles"; // -> 'user_styles'
  73. $tableUserTypes = $tablePrefix . "user_types"; // -> 'user_types'
  74. $tableUsers = $tablePrefix . "users"; // -> 'users'
  75. ?>