A tumblelog CMS built on AJAX, PHP and MySQL.

config-sample.php 1.5KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. if(!defined('entry') || !entry) die('Not a valid page');
  3. /* ===========================
  4. gelato CMS - A PHP based tumblelog CMS
  5. development version
  6. http://www.gelatocms.com/
  7. gelato CMS is a free software licensed under the GPL 2.0
  8. Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
  9. =========================== */
  10. ?>
  11. <?php
  12. // MySql configuration
  13. define('DB_Server', '[server]'); // Set the MySQL hostname (generally "localhost")
  14. define('DB_name', '[database]'); // Set the MySQL database gelato should use
  15. define('DB_User', '[userdb]'); // Set the MySQL username
  16. define('DB_Password', '[dbpass]'); // Set the MySQL password
  17. define('Table_prefix', '[tableprefix]'); // Set the MySQL tables prefixes
  18. /* Do not edit below this line */
  19. define('Absolute_Path', dirname(__FILE__).DIRECTORY_SEPARATOR);
  20. header("Expires: Mon, 26 Jul 1957 05:00:00 GMT");
  21. header("Last-Modified: " . gmdate("D, d M Y H:i:s ") . " GMT");
  22. header("Cache-Control: no-store, no-cache, must-revalidate");
  23. header("Cache-Control: post-check=0, pre-check=0", false);
  24. header("Pragma: no-cache");
  25. ini_set('pcre.backtrack_limit', '10000');
  26. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'mysql_connection.class.php');
  27. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'streams.class.php');
  28. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'gettext.class.php');
  29. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'lang.functions.php');
  30. ?>