conf.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /*
  3. * phpMeccano v0.2.0. Web-framework written with php programming language. Configuration file [conf.php].
  4. * Copyright (C) 2015-2019 Alexei Muzarov
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program; if not, write to the Free Software Foundation, Inc.,
  18. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  19. *
  20. * e-mail: azexmail@gmail.com
  21. * e-mail: azexmail@mail.ru
  22. * https://bitbucket.org/azexmail/phpmeccano
  23. */
  24. // system configurations
  25. // database parameters
  26. define('MECCANO_DBSTORAGE_ENGINE', 'MyISAM');
  27. define('MECCANO_DBANAME', 'root');
  28. define('MECCANO_DBAPASS', 'MySQLpassw');
  29. define('MECCANO_DBHOST', 'localhost');
  30. define('MECCANO_DBPORT', '3306');
  31. define('MECCANO_DBNAME', 'phpmeccano');
  32. define('MECCANO_TPREF', 'meccano');
  33. // system paths
  34. define('MECCANO_CONF_FILE', __FILE__);
  35. define('MECCANO_ROOT_DIR', dirname(__FILE__));
  36. define('MECCANO_CORE_DIR', MECCANO_ROOT_DIR.'/core');
  37. define('MECCANO_TMP_DIR', MECCANO_ROOT_DIR.'/tmp');
  38. define('MECCANO_PHP_DIR', MECCANO_ROOT_DIR.'/phplibs');
  39. define('MECCANO_JS_DIR', MECCANO_ROOT_DIR.'/jslibs');
  40. define('MECCANO_CSS_DIR', MECCANO_ROOT_DIR.'/csslibs');
  41. define('MECCANO_DOCUMENTS_DIR', MECCANO_ROOT_DIR.'/documents');
  42. define('MECCANO_UNPACKED_PLUGINS', MECCANO_ROOT_DIR.'/unpacked');
  43. define('MECCANO_UNINSTALL', MECCANO_ROOT_DIR.'/uninstall');
  44. define('MECCANO_SERVICE_PAGES', MECCANO_ROOT_DIR.'/servpages');
  45. // storage of shared files
  46. define('MECCANO_SHARED_FILES', MECCANO_ROOT_DIR.'/shfiles');
  47. define('MECCANO_SHARED_STDIR', date('Y-m-d'));
  48. // default language
  49. define('MECCANO_DEF_LANG', 'en-US');
  50. // temporary blocking of the user authentication
  51. define('MECCANO_AUTH_LIMIT', 5);
  52. define('MECCANO_AUTH_BLOCK_PERIOD', '00:05:00');
  53. // displaying of errors
  54. define('MECCANO_SHOW_ERRORS', false);
  55. // IP addresses that will ignore maintenance mode
  56. define('MECCANO_MNTC_IP', '127.0.0.1');
  57. require_once MECCANO_CORE_DIR.'/__loader__.php';