prepend.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. # ***** BEGIN LICENSE BLOCK *****
  3. # This file is part of DotClear.
  4. # Copyright (c) 2004 Olivier Meunier and contributors. All rights
  5. # reserved.
  6. #
  7. # DotClear is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # DotClear is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with DotClear; if not, write to the Free Software
  19. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. #
  21. # ***** END LICENSE BLOCK *****
  22. /*DEBUG_FLAG
  23. define('DEBUG',1);
  24. //*/
  25. # If you rename "ecrire" folder, change this const
  26. # You'll have to rename it in install/prepend.php too
  27. #
  28. if (!defined('DC_ECRIRE')) {
  29. define('DC_ECRIRE','ecrire');
  30. }
  31. if (defined('DEBUG') && DEBUG == 1) {
  32. @ini_set('display_errors','on');
  33. error_reporting(E_ALL);
  34. }
  35. if (!file_exists(dirname(__FILE__).'/../conf/config.php') ||
  36. !file_exists(dirname(__FILE__).'/../conf/dotclear.ini')) {
  37. header('Content-Type: text/plain');
  38. echo 'Weblog not configured yet';
  39. exit;
  40. }
  41. require_once dirname(__FILE__).'/magic_strip.php';
  42. require_once dirname(__FILE__).'/classes/class.mysql.php';
  43. require_once dirname(__FILE__).'/classes/class.blog.php';
  44. require_once dirname(__FILE__).'/classes/class.wiki2xhtml.php';
  45. require_once dirname(__FILE__).'/classes/class.plugins.php';
  46. require_once dirname(__FILE__).'/libs/lib.compat.php';
  47. require_once dirname(__FILE__).'/libs/lib.form.php';
  48. require_once dirname(__FILE__).'/libs/lib.util.php';
  49. require_once dirname(__FILE__).'/libs/lib.files.php';
  50. require_once dirname(__FILE__).'/libs/lib.date.php';
  51. require dirname(__FILE__).'/../conf/config.php';
  52. ?>