index.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. ?>
  15. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  16. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  17. <html xmlns="http://www.w3.org/1999/xhtml">
  18. <head>
  19. <title>Tiny Tiny RSS</title>
  20. <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
  21. <link rel="apple-touch-icon" href="iui/iui-logo-touch-icon.png" />
  22. <meta name="apple-touch-fullscreen" content="YES" />
  23. <style type="text/css" media="screen">@import "iui/iui.css";</style>
  24. <script type="application/x-javascript" src="iui/iui.js"></script>
  25. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  26. <script type="text/javascript" src="../../lib/prototype.js"></script>
  27. <script type="text/javascript" src="mobile.js"></script>
  28. <style type="text/css" media="screen">@import "mobile.css";</style>
  29. </head>
  30. <style type="text/css">
  31. img { max-width : 75%; }
  32. li.oldItem {
  33. color : gray;
  34. }
  35. #myBackButton {
  36. display: none;
  37. left: 6px;
  38. right: auto;
  39. padding: 0;
  40. max-width: 55px;
  41. border-width: 0 8px 0 14px;
  42. -webkit-border-image: url(iui/backButton.png) 0 8 0 14;
  43. }
  44. img.tinyIcon {
  45. max-width : 16px;
  46. max-height : 16px;
  47. margin-right : 10px;
  48. vertical-align : middle;
  49. }
  50. a img {
  51. border-width : 0px;
  52. }
  53. </style>
  54. <body>
  55. <div class="toolbar">
  56. <h1 id="pageTitle"></h1>
  57. <a id="myBackButton" class="button" href="#"></a>
  58. <a class="button" href="prefs.php">Preferences</a>
  59. </div>
  60. <?php
  61. $use_cats = mobile_get_pref('ENABLE_CATS');
  62. $offset = (int) db_escape_string($_REQUEST["skip"]);
  63. if ($use_cats) {
  64. render_categories_list($link);
  65. } else {
  66. render_flat_feed_list($offset);
  67. }
  68. ?>
  69. </body>
  70. </html>