Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
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.

83 lines
2.6 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. <?php
  2. // If automatic system installation fails:
  3. // Copy or rename this file to .htconfig.php
  4. // Why .htconfig.php? Because it contains sensitive information which could
  5. // give somebody complete control of your database. Apache's default
  6. // configuration denies access to and refuses to serve any file beginning
  7. // with .ht
  8. // Then set the following for your MySQL installation
  9. $db_host = 'your.mysqlhost.com';
  10. $db_user = 'mysqlusername';
  11. $db_pass = 'mysqlpassword';
  12. $db_data = 'mysqldatabasename';
  13. // Set the database connection charset to UTF8.
  14. // Changing this value will likely corrupt the special characters.
  15. // You have been warned.
  16. $a->config['system']['db_charset'] = "utf8mb4";
  17. // Choose a legal default timezone. If you are unsure, use "America/Los_Angeles".
  18. // It can be changed later and only applies to timestamps for anonymous viewers.
  19. $default_timezone = 'America/Los_Angeles';
  20. // What is your site name?
  21. $a->config['sitename'] = "Friendica Social Network";
  22. // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
  23. // Be certain to create your own personal account before setting
  24. // REGISTER_CLOSED. 'register_text' (if set) will be displayed prominently on
  25. // the registration page. REGISTER_APPROVE requires you set 'admin_email'
  26. // to the email address of an already registered person who can authorise
  27. // and/or approve/deny the request.
  28. // In order to perform system administration via the admin panel, admin_email
  29. // must precisely match the email address of the person logged in.
  30. $a->config['register_policy'] = REGISTER_OPEN;
  31. $a->config['register_text'] = '';
  32. $a->config['admin_email'] = '';
  33. // Maximum size of an imported message, 0 is unlimited
  34. $a->config['max_import_size'] = 200000;
  35. // maximum size of uploaded photos
  36. $a->config['system']['maximagesize'] = 800000;
  37. // Location of PHP command line processor
  38. $a->config['php_path'] = 'php';
  39. // PuSH - aka pubsubhubbub URL. This makes delivery of public posts as fast as private posts
  40. $a->config['system']['huburl'] = '[internal]';
  41. // allowed themes (change this from admin panel after installation)
  42. $a->config['system']['allowed_themes'] = 'quattro,vier,duepuntozero';
  43. // default system theme
  44. $a->config['system']['theme'] = 'vier';
  45. // By default allow pseudonyms
  46. $a->config['system']['no_regfullname'] = true;
  47. //Deny public access to the local directory
  48. //$a->config['system']['block_local_dir'] = false;
  49. // Location of the global directory
  50. $a->config['system']['directory'] = 'http://dir.friendi.ca';
  51. // Allowed protocols in link URLs; HTTP protocols always are accepted
  52. $a->config['system']['allowed_link_protocols'] = array('ftp', 'ftps', 'mailto', 'cid', 'gopher');