A tumblelog CMS built on AJAX, PHP and MySQL.

entry.php 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. if(!defined('entry') || !entry) die('Not a valid page');
  3. /*
  4. * Created on Sep 15, 2007
  5. *
  6. * Known Entry Points
  7. * install.php
  8. * index.php
  9. * login.php
  10. * admin/index.php
  11. * admin/close.php
  12. * admin/ajax.php
  13. * admin/settings.php
  14. * admin/options.php
  15. * admin/admin.php
  16. * admin/comments.php
  17. */
  18. // PHP settings specific to Gelato
  19. ini_set('pcre.backtrack_limit', '10000');
  20. // Globals to be used throughout the application
  21. $configFile = dirname(__FILE__).DIRECTORY_SEPARATOR."config.php";
  22. if (!file_exists($configFile)) {
  23. header("Location: install.php");
  24. } else {
  25. require(dirname(__FILE__).DIRECTORY_SEPARATOR."config.php");
  26. }
  27. require_once("classes/configuration.class.php");
  28. require_once("classes/textile.class.php");
  29. require_once("classes/gelato.class.php");
  30. require_once("classes/templates.class.php");
  31. require_once("classes/pagination.class.php");
  32. require_once("classes/user.class.php");
  33. require_once("classes/comments.class.php");
  34. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'mysql_connection.class.php');
  35. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'streams.class.php');
  36. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'gettext.class.php');
  37. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'lang.functions.php');
  38. $user = new user();
  39. $conf = new configuration();
  40. $tumble = new gelato();
  41. session_start();
  42. ?>