A tumblelog CMS built on AJAX, PHP and MySQL.

entry.php 1.6KB

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