config.php 733 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Site Configuration
  4. */
  5. // Database settings
  6. define('DB_HOST', 'localhost');
  7. define('DB_NAME', 'website');
  8. define('DB_USER', 'root');
  9. define('DB_PASS', '');
  10. // Site settings
  11. define('SITE_TITLE', 'Publication System');
  12. define('DEFAULT_LANGUAGE', 'en');
  13. // LDAP settings
  14. define('LDAP_ENABLED', false);
  15. define('LDAP_HOST', 'localhost');
  16. define('LDAP_PORT', 389);
  17. define('LDAP_BASE_DN', 'dc=example,dc=com');
  18. define('LDAP_BIND_DN', 'cn=admin,dc=example,dc=com');
  19. define('LDAP_BIND_PASS', '');
  20. define('LDAP_USER_FILTER', '(objectClass=person)');
  21. // Security settings
  22. define('SESSION_LIFETIME', 3600); // 1 hour
  23. define('PASSWORD_MIN_LENGTH', 8);
  24. // Error reporting
  25. error_reporting(E_ALL);
  26. ini_set('display_errors', 1);
  27. ?>