remove short php tags in mobile version, fix star action in vfeeds

This commit is contained in:
Andrew Dolgov 2006-08-19 09:52:33 +01:00
parent 20862e584f
commit e9e95daec2
6 changed files with 28 additions and 11 deletions

View File

@ -1,4 +1,4 @@
<? <?php
define('MOBILE_FEEDLIST_ENABLE_ICONS', false); define('MOBILE_FEEDLIST_ENABLE_ICONS', false);
define('TTRSS_SESSION_NAME', 'ttrss_m_sid'); define('TTRSS_SESSION_NAME', 'ttrss_m_sid');
@ -641,7 +641,7 @@
print "<li class='$class'>"; 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; print $content_link;

View File

@ -1 +1 @@
<? require "tt-rss.php" ?> <?php require "tt-rss.php" ?>

View File

@ -1,4 +1,4 @@
<? <?php
require_once "functions.php"; require_once "functions.php";
require_once "../version.php"; require_once "../version.php";
@ -18,6 +18,7 @@
$login = $_POST["login"]; $login = $_POST["login"];
$password = $_POST["password"]; $password = $_POST["password"];
$return_to = $_POST["rt"]; $return_to = $_POST["rt"];
$action = $_POST["action"];
if ($_COOKIE[get_session_cookie_name()]) { if ($_COOKIE[get_session_cookie_name()]) {
require_once "../sessions.php"; require_once "../sessions.php";
@ -52,7 +53,12 @@
} }
header("Location: $redirect_base/$return_to"); header("Location: $redirect_base/$return_to");
exit; 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.";
} }
?> ?>
@ -69,7 +75,12 @@
<div id="heading">Tiny Tiny RSS</div> <div id="heading">Tiny Tiny RSS</div>
<form action="login.php" method="POST"> <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> <table>
<tr><td align='right'>Login:</td><td><input name="login"></td> <tr><td align='right'>Login:</td><td><input name="login"></td>
@ -88,5 +99,5 @@
</body> </body>
</html> </html>
<? db_close($link); ?> <?php db_close($link); ?>

View File

@ -1,4 +1,4 @@
<? <?php
require_once "functions.php"; require_once "functions.php";
require_once "../config.php"; require_once "../config.php";
@ -37,4 +37,4 @@
</body> </body>
</html> </html>
<? } ?> <?php } ?>

View File

@ -174,3 +174,9 @@ div.footerAddon {
margin-top : 5px; margin-top : 5px;
margin-bottom : 5px; margin-bottom : 5px;
} }
.loginError {
color : red;
margin : 0.5em;
}

View File

@ -1,4 +1,4 @@
<? <?php
require_once "../config.php"; require_once "../config.php";
require_once "functions.php"; require_once "functions.php";
require_once "../functions.php"; require_once "../functions.php";
@ -59,7 +59,7 @@
<body> <body>
<div id="content"> <div id="content">
<? <?php
if (!$go) { if (!$go) {
render_feeds_list($link); render_feeds_list($link);
} else if ($go == "vf") { } else if ($go == "vf") {
@ -74,7 +74,7 @@
</div> </div>
<div id="footer"> <div id="footer">
<a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005-2006 Andrew Dolgov <a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?php echo VERSION ?> &copy; 2005-2006 Andrew Dolgov
</div> </div>
</body> </body>