home.php 636 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. error_reporting(E_ERROR | E_WARNING | E_PARSE);
  3. header('Content-Type: text/html; charset=utf-8');
  4. define('MOBILE_VERSION', true);
  5. $basedir = dirname(dirname(dirname(__FILE__)));
  6. set_include_path(
  7. dirname(__FILE__) . PATH_SEPARATOR .
  8. $basedir . PATH_SEPARATOR .
  9. "$basedir/include" . PATH_SEPARATOR .
  10. get_include_path());
  11. require_once "config.php";
  12. require_once "mobile-functions.php";
  13. login_sequence(true);
  14. $use_cats = mobile_get_pref('ENABLE_CATS');
  15. $offset = (int) db_escape_string($_REQUEST["skip"]);
  16. if ($use_cats) {
  17. render_categories_list($link);
  18. } else {
  19. render_flat_feed_list($offset);
  20. }
  21. ?>