A tumblelog CMS built on AJAX, PHP and MySQL.

entry.php 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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/bm.php
  15. * admin/index.php
  16. * admin/close.php
  17. * admin/ajax.php
  18. * admin/settings.php
  19. * admin/options.php
  20. * admin/admin.php
  21. * admin/comments.php
  22. * admin/user.php
  23. * admin/feeds.php
  24. * classes/imgsize.php
  25. */
  26. // PHP settings specific to Gelato
  27. ini_set('pcre.backtrack_limit', '10000');
  28. // Globals to be used throughout the application
  29. $configFile = dirname(__FILE__).DIRECTORY_SEPARATOR."config.php";
  30. if (!file_exists($configFile)) {
  31. header("Location: install.php");
  32. } else {
  33. require(dirname(__FILE__).DIRECTORY_SEPARATOR."config.php");
  34. }
  35. require_once("classes/configuration.class.php");
  36. require_once("classes/textile.class.php");
  37. require_once("classes/gelato.class.php");
  38. require_once("classes/templates.class.php");
  39. require_once("classes/pagination.class.php");
  40. require_once("classes/user.class.php");
  41. require_once("classes/comments.class.php");
  42. require_once("classes/feeds.class.php");
  43. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'mysql_connection.class.php');
  44. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'streams.class.php');
  45. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'gettext.class.php');
  46. require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'lang.functions.php');
  47. // Globals to be used throughout the application
  48. $user = new user();
  49. $tumble = new gelato();
  50. $conf = new configuration();
  51. $db = new Conexion_Mysql(DB_name, DB_Server, DB_User, DB_Password);
  52. session_start();
  53. $feeds = new feeds();
  54. $feeds->updateFeeds();
  55. unset($feeds);
  56. ?>