A tumblelog CMS built on AJAX, PHP and MySQL.

entry.php 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. * classes/imgsize.php
  23. * admin/feeds.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("classes/feeds.class.php");
  42. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'mysql_connection.class.php');
  43. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'streams.class.php');
  44. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'gettext.class.php');
  45. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'lang.functions.php');
  46. $user = new user();
  47. $conf = new configuration();
  48. $tumble = new gelato();
  49. session_start();
  50. $feeds = new feeds();
  51. $feeds->updateFeeds();
  52. unset($feeds);
  53. ?>