-<?
+<?php
define('MOBILE_FEEDLIST_ENABLE_ICONS', false);
define('TTRSS_SESSION_NAME', 'ttrss_m_sid');
print "<li class='$class'>";
- print "<a href=\"?go=vf&id=$feed_id&ts=$id\">$marked_pic</a>";
+ print "<a href=\"?go=vf&id=$feed&ts=$id\">$marked_pic</a>";
print $content_link;
-<?
+<?php
require_once "functions.php";
require_once "../version.php";
$login = $_POST["login"];
$password = $_POST["password"];
$return_to = $_POST["rt"];
+ $action = $_POST["action"];
if ($_COOKIE[get_session_cookie_name()]) {
require_once "../sessions.php";
}
header("Location: $redirect_base/$return_to");
exit;
+ } else {
+ $error_msg = "Error: Unable to authenticate user. Please check login and password.";
}
+
+ } else if ($action) {
+ $error_msg = "Error: Either login or password is blank.";
}
?>
<div id="heading">Tiny Tiny RSS</div>
<form action="login.php" method="POST">
- <input type="hidden" name="rt" value="<?= $_GET['rt'] ?>">
+ <input type="hidden" name="rt" value="<?php echo $_GET['rt'] ?>">
+ <input type="hidden" name="action" value="login">
+
+ <?php if ($error_msg) { ?>
+ <div class="loginError"><?php echo $error_msg ?></div>
+ <?php } ?>
<table>
<tr><td align='right'>Login:</td><td><input name="login"></td>
</body>
</html>
-<? db_close($link); ?>
+<?php db_close($link); ?>
-<?
+<?php
require_once "../config.php";
require_once "functions.php";
require_once "../functions.php";
<body>
<div id="content">
-<?
+<?php
if (!$go) {
render_feeds_list($link);
} else if ($go == "vf") {
</div>
<div id="footer">
- <a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> © 2005-2006 Andrew Dolgov
+ <a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?php echo VERSION ?> © 2005-2006 Andrew Dolgov
</div>
</body>