article.php 680 B

12345678910111213141516171819202122232425262728
  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. $id = db_escape_string($_REQUEST["id"]);
  15. $feed_id = db_escape_string($_REQUEST["feed"]);
  16. $cat_id = db_escape_string($_REQUEST["cat"]);
  17. $is_cat = db_escape_string($_REQUEST["is_cat"]);
  18. render_article($id, $feed_id, $cat_id, $is_cat);
  19. ?>