cat.php 599 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. $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
  14. init_plugins($link);
  15. login_sequence( true);
  16. $cat_id = db_escape_string( $_REQUEST["id"]);
  17. render_category( $cat_id);
  18. ?>