article.php 806 B

1234567891011121314151617181920212223242526272829303132
  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. $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
  14. init_connection($link);
  15. login_sequence($link, true);
  16. $id = db_escape_string($link, $_REQUEST["id"]);
  17. $feed_id = db_escape_string($link, $_REQUEST["feed"]);
  18. $cat_id = db_escape_string($link, $_REQUEST["cat"]);
  19. $is_cat = db_escape_string($link, $_REQUEST["is_cat"]);
  20. render_article($link, $id, $feed_id, $cat_id, $is_cat);
  21. ?>