| 1 |
<?php |
|---|
| 2 |
define('MOBILE_FEEDLIST_ENABLE_ICONS', false); |
|---|
| 3 |
define('TTRSS_SESSION_NAME', 'ttrss_m_sid'); |
|---|
| 4 |
|
|---|
| 5 |
function render_feeds_list($link) { |
|---|
| 6 |
|
|---|
| 7 |
$tags = $_GET["tags"]; |
|---|
| 8 |
|
|---|
| 9 |
print "<div id=\"heading\">"; |
|---|
| 10 |
|
|---|
| 11 |
if ($tags) { |
|---|
| 12 |
print "Tags <span id=\"headingAddon\"> |
|---|
| 13 |
(<a href=\"tt-rss.php\">View feeds</a>, "; |
|---|
| 14 |
} else { |
|---|
| 15 |
print "Feeds <span id=\"headingAddon\"> |
|---|
| 16 |
(<a href=\"tt-rss.php?tags=1\">View tags</a>, "; |
|---|
| 17 |
} |
|---|
| 18 |
|
|---|
| 19 |
print "<a href=\"tt-rss.php?go=sform\">Search</a>, "; |
|---|
| 20 |
|
|---|
| 21 |
print "<a href=\"logout.php\">Logout</a>)</span>"; |
|---|
| 22 |
print "</div>"; |
|---|
| 23 |
|
|---|
| 24 |
print "<ul class=\"feedList\">"; |
|---|
| 25 |
|
|---|
| 26 |
$owner_uid = $_SESSION["uid"]; |
|---|
| 27 |
|
|---|
| 28 |
if (!$tags) { |
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
if (get_pref($link, 'ENABLE_FEED_CATS')) { |
|---|
| 33 |
print "<li class=\"feedCat\">Special</li>"; |
|---|
| 34 |
print "<li class=\"feedCatHolder\"><ul class=\"feedCatList\">"; |
|---|
| 35 |
} |
|---|
| 36 |
|
|---|
| 37 |
$num_fresh = getFeedUnread($link, -3); |
|---|
| 38 |
|
|---|
| 39 |
$class = "virt"; |
|---|
| 40 |
|
|---|
| 41 |
if ($num_fresh > 0) $class .= "Unread"; |
|---|
| 42 |
|
|---|
| 43 |
printMobileFeedEntry(-3, $class, __("Fresh articles"), $num_fresh, |
|---|
| 44 |
"../images/fresh.png", $link); |
|---|
| 45 |
|
|---|
| 46 |
$num_starred = getFeedUnread($link, -1); |
|---|
| 47 |
|
|---|
| 48 |
$class = "virt"; |
|---|
| 49 |
|
|---|
| 50 |
if ($num_starred > 0) $class .= "Unread"; |
|---|
| 51 |
|
|---|
| 52 |
printMobileFeedEntry(-1, $class, __("Starred articles"), $num_starred, |
|---|
| 53 |
"../images/mark_set.png", $link); |
|---|
| 54 |
|
|---|
| 55 |
$class = "virt"; |
|---|
| 56 |
|
|---|
| 57 |
$num_published = getFeedUnread($link, -2); |
|---|
| 58 |
|
|---|
| 59 |
if ($num_published > 0) $class .= "Unread"; |
|---|
| 60 |
|
|---|
| 61 |
printMobileFeedEntry(-2, $class, __("Published articles"), $num_published, |
|---|
| 62 |
"../images/pub_set.png", $link); |
|---|
| 63 |
|
|---|
| 64 |
if (get_pref($link, 'ENABLE_FEED_CATS')) { |
|---|
| 65 |
print "</ul>"; |
|---|
| 66 |
} |
|---|
| 67 |
|
|---|
| 68 |
if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) { |
|---|
| 69 |
|
|---|
| 70 |
$result = db_query($link, "SELECT id,description FROM |
|---|
| 71 |
ttrss_labels WHERE owner_uid = '$owner_uid' ORDER by description"); |
|---|
| 72 |
|
|---|
| 73 |
if (db_num_rows($result) > 0) { |
|---|
| 74 |
if (get_pref($link, 'ENABLE_FEED_CATS')) { |
|---|
| 75 |
print "<li class=\"feedCat\">Labels</li>"; |
|---|
| 76 |
print "<li class=\"feedCatHolder\"><ul class=\"feedCatList\">"; |
|---|
| 77 |
} else { |
|---|
| 78 |
|
|---|
| 79 |
} |
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 |
$line = db_fetch_assoc($result)) { |
|---|
| 83 |
|
|---|
| 84 |
error_reporting (0); |
|---|
| 85 |
|
|---|
| 86 |
$count = getFeedUnread($link, -$line["id"]-11); |
|---|
| 87 |
|
|---|
| 88 |
$class = "label"; |
|---|
| 89 |
|
|---|
| 90 |
$count > 0) { |
|---|
| 91 |
$class .= "Unread"; |
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 |
error_reporting (DEFAULT_ERROR_LEVEL); |
|---|
| 95 |
|
|---|
| 96 |
printMobileFeedEntry(-$line["id"]-11, |
|---|
| 97 |
$class, $line["description"], $count, "../images/label.png", $link); |
|---|
| 98 |
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 |
db_num_rows($result) > 0) { |
|---|
| 102 |
get_pref($link, 'ENABLE_FEED_CATS')) { |
|---|
| 103 |
"</ul>"; |
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 |
|
|---|
| 107 |
|
|---|
| 108 |
|
|---|
| 109 |
get_pref($link, 'ENABLE_FEED_CATS')) { |
|---|
| 110 |
$order_by_qpart = "category,title"; |
|---|
| 111 |
|
|---|
| 112 |
$order_by_qpart = "title"; |
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 |
$result = db_query($link, "SELECT ttrss_feeds.*, |
|---|
| 116 |
.SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated_noms, |
|---|
| 117 |
|
|---|
| 118 |
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 |
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 |
|
|---|
| 129 |
|
|---|
| 130 |
|
|---|
| 131 |
|
|---|
| 132 |
|
|---|
| 133 |
); |
|---|
| 134 |
|
|---|
| 135 |
$actid = $_GET["actid"]; |
|---|
| 136 |
|
|---|
| 137 |
|
|---|
| 138 |
|
|---|
| 139 |
$lnum = 0; |
|---|
| 140 |
|
|---|
| 141 |
$category = ""; |
|---|
| 142 |
|
|---|
| 143 |
$line = db_fetch_assoc($result)) { |
|---|
| 144 |
|
|---|
| 145 |
$feed = db_unescape_string($line["title"]); |
|---|
| 146 |
$feed_id = $line["id"]; |
|---|
| 147 |
|
|---|
| 148 |
$subop = $_GET["subop"]; |
|---|
| 149 |
|
|---|
| 150 |
$total = $line["total"]; |
|---|
| 151 |
$unread = $line["unread"]; |
|---|
| 152 |
|
|---|
| 153 |
$rtl_content = sql_bool_to_bool($line["rtl_content"]); |
|---|
| 154 |
|
|---|
| 155 |
$rtl_content) { |
|---|
| 156 |
$rtl_tag = "dir=\"RTL\""; |
|---|
| 157 |
|
|---|
| 158 |
$rtl_tag = ""; |
|---|
| 159 |
|
|---|
| 160 |
|
|---|
| 161 |
$tmp_result = db_query($link, |
|---|
| 162 |
"SELECT id,COUNT(unread) AS unread |
|---|
| 163 |
|
|---|
| 164 |
|
|---|
| 165 |
|
|---|
| 166 |
); |
|---|
| 167 |
|
|---|
| 168 |
db_num_rows($tmp_result) > 0) { |
|---|
| 169 |
$l = db_fetch_assoc($tmp_result)) { |
|---|
| 170 |
$unread += $l["unread"]; |
|---|
| 171 |
|
|---|
| 172 |
|
|---|
| 173 |
|
|---|
| 174 |
$cat_id = $line["cat_id"]; |
|---|
| 175 |
|
|---|
| 176 |
$tmp_category = $line["category"]; |
|---|
| 177 |
|
|---|
| 178 |
$tmp_category) { |
|---|
| 179 |
$tmp_category = "Uncategorized"; |
|---|
| 180 |
|
|---|
| 181 |
|
|---|
| 182 |
|
|---|
| 183 |
|
|---|
| 184 |
if ($line["last_error"]) { |
|---|
| 185 |
$class = "error"; |
|---|
| 186 |
|
|---|
| 187 |
$class = "feed"; |
|---|
| 188 |
|
|---|
| 189 |
|
|---|
| 190 |
$unread > 0) $class .= "Unread"; |
|---|
| 191 |
|
|---|
| 192 |
$actid == $feed_id) { |
|---|
| 193 |
$class .= "Selected"; |
|---|
| 194 |
|
|---|
| 195 |
|
|---|
| 196 |
$category != $tmp_category && get_pref($link, 'ENABLE_FEED_CATS')) { |
|---|
| 197 |
|
|---|
| 198 |
$category) { |
|---|
| 199 |
"</ul></li>"; |
|---|
| 200 |
|
|---|
| 201 |
|
|---|
| 202 |
$category = $tmp_category; |
|---|
| 203 |
|
|---|
| 204 |
$collapsed = $line["collapsed"]; |
|---|
| 205 |
|
|---|
| 206 |
|
|---|
| 207 |
if ($category == "Uncategorized") { |
|---|
| 208 |
$_COOKIE["ttrss_vf_uclps"] == 1) { |
|---|
| 209 |
$collapsed = "t"; |
|---|
| 210 |
|
|---|
| 211 |
|
|---|
| 212 |
|
|---|
| 213 |
$collapsed == "t" || $collapsed == "1") { |
|---|
| 214 |
$holder_class = "invisible"; |
|---|
| 215 |
$ellipsis = "..."; |
|---|
| 216 |
|
|---|
| 217 |
$holder_class = "feedCatHolder"; |
|---|
| 218 |
$ellipsis = ""; |
|---|
| 219 |
|
|---|
| 220 |
|
|---|
| 221 |
$cat_id) { |
|---|
| 222 |
$cat_id_qpart = "cat_id = '$cat_id'"; |
|---|
| 223 |
|
|---|
| 224 |
$cat_id_qpart = "cat_id IS NULL"; |
|---|
| 225 |
|
|---|
| 226 |
|
|---|
| 227 |
$cat_id = sprintf("%d", $cat_id); |
|---|
| 228 |
$cat_unread = getCategoryUnread($link, $cat_id); |
|---|
| 229 |
|
|---|
| 230 |
"<li class=\"feedCat\"> |
|---|
| 231 |
|
|---|
| 232 |
|
|---|
| 233 |
|
|---|
| 234 |
; |
|---|
| 235 |
|
|---|
| 236 |
"<li id=\"feedCatHolder\" class=\"$holder_class\"> |
|---|
| 237 |
; |
|---|
| 238 |
|
|---|
| 239 |
|
|---|
| 240 |
printMobileFeedEntry($feed_id, $class, $feed, $unread, |
|---|
| 241 |
"../icons/$feed_id.ico", $link, $rtl_content); |
|---|
| 242 |
|
|---|
| 243 |
$lnum; |
|---|
| 244 |
|
|---|
| 245 |
|
|---|
| 246 |
|
|---|
| 247 |
|
|---|
| 248 |
|
|---|
| 249 |
$result = db_query($link, "SELECT tag_name,SUM((SELECT COUNT(int_id) |
|---|
| 250 |
|
|---|
| 251 |
|
|---|
| 252 |
); |
|---|
| 253 |
|
|---|
| 254 |
$tags = array(); |
|---|
| 255 |
|
|---|
| 256 |
$line = db_fetch_assoc($result)) { |
|---|
| 257 |
$tags[$line["tag_name"]] += $line["count"]; |
|---|
| 258 |
|
|---|
| 259 |
|
|---|
| 260 |
array_keys($tags) as $tag) { |
|---|
| 261 |
|
|---|
| 262 |
$unread = $tags[$tag]; |
|---|
| 263 |
|
|---|
| 264 |
$class = "tag"; |
|---|
| 265 |
|
|---|
| 266 |
$unread > 0) { |
|---|
| 267 |
$class .= "Unread"; |
|---|
| 268 |
|
|---|
| 269 |
|
|---|
| 270 |
printMobileFeedEntry($tag, $class, $tag, $unread, |
|---|
| 271 |
"../images/tag.png", $link); |
|---|
| 272 |
|
|---|
| 273 |
|
|---|
| 274 |
|
|---|
| 275 |
|
|---|
| 276 |
|
|---|
| 277 |
|
|---|
| 278 |
|
|---|
| 279 |
printMobileFeedEntry($feed_id, $class, $feed_title, $unread, $icon_file, $link, |
|---|
| 280 |
$rtl_content = false) { |
|---|
| 281 |
|
|---|
| 282 |
file_exists($icon_file) && filesize($icon_file) > 0) { |
|---|
| 283 |
$feed_icon = "<img src=\"$icon_file\">"; |
|---|
| 284 |
|
|---|
| 285 |
$feed_icon = "<img src=\"../images/blank_icon.gif\">"; |
|---|
| 286 |
|
|---|
| 287 |
|
|---|
| 288 |
$rtl_content) { |
|---|
| 289 |
$rtl_tag = "dir=\"rtl\""; |
|---|
| 290 |
|
|---|
| 291 |
$rtl_tag = "dir=\"ltr\""; |
|---|
| 292 |
|
|---|
| 293 |
|
|---|
| 294 |
$feed = "<a href=\"?go=vf&id=$feed_id\">$feed_title</a>"; |
|---|
| 295 |
|
|---|
| 296 |
"<li class=\"$class\">"; |
|---|
| 297 |
|
|---|
| 298 |
|
|---|
| 299 |
|
|---|
| 300 |
|
|---|
| 301 |
print "<span $rtl_tag>$feed</span> "; |
|---|
| 302 |
|
|---|
| 303 |
$unread != 0) { |
|---|
| 304 |
"<span $rtl_tag>($unread)</span>"; |
|---|
| 305 |
|
|---|
| 306 |
|
|---|
| 307 |
"</li>"; |
|---|
| 308 |
|
|---|
| 309 |
|
|---|
| 310 |
|
|---|
| 311 |
render_headlines($link) { |
|---|
| 312 |
|
|---|
| 313 |
$feed = db_escape_string($_GET["id"]); |
|---|
| 314 |
$limit = db_escape_string($_GET["limit"]); |
|---|
| 315 |
$view_mode = db_escape_string($_GET["viewmode"]); |
|---|
| 316 |
$cat_view = db_escape_string($_GET["cat"]); |
|---|
| 317 |
$subop = $_GET["subop"]; |
|---|
| 318 |
$catchup_op = $_GET["catchup_op"]; |
|---|
| 319 |
|
|---|
| 320 |
$view_mode) { |
|---|
| 321 |
$_SESSION["mobile:viewmode"]) { |
|---|
| 322 |
$view_mode = $_SESSION["mobile:viewmode"]; |
|---|
| 323 |
|
|---|
| 324 |
$view_mode = "adaptive"; |
|---|
| 325 |
|
|---|
| 326 |
|
|---|
| 327 |
|
|---|
| 328 |
$_SESSION["mobile:viewmode"] = $view_mode; |
|---|
| 329 |
|
|---|
| 330 |
$limit) $limit = 30; |
|---|
| 331 |
$feed) $feed = 0; |
|---|
| 332 |
|
|---|
| 333 |
preg_match("/^-?[0-9][0-9]*$/", $feed) != false) { |
|---|
| 334 |
|
|---|
| 335 |
$result = db_query($link, "SELECT rtl_content FROM ttrss_feeds |
|---|
| 336 |
. $_SESSION["uid"]); |
|---|
| 337 |
|
|---|
| 338 |
db_num_rows($result) == 1) { |
|---|
| 339 |
$rtl_content = sql_bool_to_bool(db_fetch_result($result, 0, "rtl_content")); |
|---|
| 340 |
|
|---|
| 341 |
$rtl_content = false; |
|---|
| 342 |
|
|---|
| 343 |
|
|---|
| 344 |
$rtl_content) { |
|---|
| 345 |
$rtl_tag = "dir=\"RTL\""; |
|---|
| 346 |
|
|---|
| 347 |
$rtl_tag = ""; |
|---|
| 348 |
|
|---|
| 349 |
|
|---|
| 350 |
$rtl_content = false; |
|---|
| 351 |
$rtl_tag = ""; |
|---|
| 352 |
|
|---|
| 353 |
|
|---|
| 354 |
"<div id=\"headlines\" $rtl_tag>"; |
|---|
| 355 |
|
|---|
| 356 |
$subop == "ForceUpdate" && sprintf("%d", $feed) > 0) { |
|---|
| 357 |
update_generic_feed($link, $feed, $cat_view, true); |
|---|
| 358 |
|
|---|
| 359 |
|
|---|
| 360 |
$subop == "MarkAllRead" || $catchup_op == "feed") { |
|---|
| 361 |
catchup_feed($link, $feed, $cat_view); |
|---|
| 362 |
|
|---|
| 363 |
|
|---|
| 364 |
$catchup_op == "selection") { |
|---|
| 365 |
$ids_to_mark = array_keys($_GET["sel_ids"]); |
|---|
| 366 |
$ids_to_mark) { |
|---|
| 367 |
$ids_to_mark as $id) { |
|---|
| 368 |
db_query($link, "UPDATE ttrss_user_entries SET |
|---|
| 369 |
|
|---|
| 370 |
. $_SESSION["uid"]); |
|---|
| 371 |
|
|---|
| 372 |
|
|---|
| 373 |
|
|---|
| 374 |
|
|---|
| 375 |
$subop == "MarkPageRead" || $catchup_op == "page") { |
|---|
| 376 |
$ids_to_mark = $_SESSION["last_page_ids.$feed"]; |
|---|
| 377 |
|
|---|
| 378 |
$ids_to_mark) { |
|---|
| 379 |
|
|---|
| 380 |
$ids_to_mark as $id) { |
|---|
| 381 |
db_query($link, "UPDATE ttrss_user_entries SET |
|---|
| 382 |
|
|---|
| 383 |
. $_SESSION["uid"]); |
|---|
| 384 |
|
|---|
| 385 |
|
|---|
| 386 |
|
|---|
| 387 |
|
|---|
| 388 |
|
|---|
| 389 |
|
|---|
| 390 |
|
|---|
| 391 |
$search = db_escape_string($_GET["query"]); |
|---|
| 392 |
$search_mode = db_escape_string($_GET["search_mode"]); |
|---|
| 393 |
$match_on = db_escape_string($_GET["match_on"]); |
|---|
| 394 |
|
|---|
| 395 |
$match_on) { |
|---|
| 396 |
$match_on = "both"; |
|---|
| 397 |
|
|---|
| 398 |
|
|---|
| 399 |
$real_offset = $offset * $limit; |
|---|
| 400 |
|
|---|
| 401 |
$_GET["debug"]) $timing_info = print_checkpoint("H0", $timing_info); |
|---|
| 402 |
|
|---|
| 403 |
$qfh_ret = queryFeedHeadlines($link, $feed, $limit, $view_mode, $cat_view, |
|---|
| 404 |
$search, $search_mode, $match_on, false, $real_offset); |
|---|
| 405 |
|
|---|
| 406 |
$_GET["debug"]) $timing_info = print_checkpoint("H1", $timing_info); |
|---|
| 407 |
|
|---|
| 408 |
$result = $qfh_ret[0]; |
|---|
| 409 |
$feed_title = $qfh_ret[1]; |
|---|
| 410 |
$feed_site_url = $qfh_ret[2]; |
|---|
| 411 |
$last_error = $qfh_ret[3]; |
|---|
| 412 |
|
|---|
| 413 |
|
|---|
| 414 |
|
|---|
| 415 |
if (!$result) { |
|---|
| 416 |
"<div align='center'> |
|---|
| 417 |
; |
|---|
| 418 |
|
|---|
| 419 |
|
|---|
| 420 |
|
|---|
| 421 |
"<div id=\"heading\">"; |
|---|
| 422 |
|
|---|
| 423 |
|
|---|
| 424 |
|
|---|
| 425 |
|
|---|
| 426 |
print "$feed_title <span id=\"headingAddon\">("; |
|---|
| 427 |
"<a href=\"tt-rss.php\">Back</a>, "; |
|---|
| 428 |
"<a href=\"tt-rss.php?go=sform&aid=$feed&ic=$cat_view\">Search</a>, "; |
|---|
| 429 |
"<a href=\"tt-rss.php?go=vf&id=$feed&subop=ForceUpdate\">Update</a>"; |
|---|
| 430 |
|
|---|
| 431 |
|
|---|
| 432 |
|
|---|
| 433 |
|
|---|
| 434 |
|
|---|
| 435 |
print ")</span>"; |
|---|
| 436 |
|
|---|
| 437 |
" " . __('View:'); |
|---|
| 438 |
|
|---|
| 439 |
"<form style=\"display : inline\" method=\"GET\" action=\"tt-rss.php\">"; |
|---|
| 440 |
|
|---|
| 441 |
|
|---|
| 442 |
|
|---|
| 443 |
|
|---|
| 444 |
|
|---|
| 445 |
|
|---|
| 446 |
|
|---|
| 447 |
|
|---|
| 448 |
$sel_values = array( |
|---|
| 449 |
"adaptive" => __("Adaptive"), |
|---|
| 450 |
"all_articles" => __("All Articles"), |
|---|
| 451 |
"unread" => __("Unread"), |
|---|
| 452 |
"marked" => __("Starred")); |
|---|
| 453 |
|
|---|
| 454 |
print_select_hash("viewmode", $view_mode, $sel_values); |
|---|
| 455 |
|
|---|
| 456 |
"<input type=\"hidden\" name=\"id\" value=\"$feed\"> |
|---|
| 457 |
|
|---|
| 458 |
|
|---|
| 459 |
.__('Refresh')."\">"; |
|---|
| 460 |
"</form>"; |
|---|
| 461 |
|
|---|
| 462 |
"</div>"; |
|---|
| 463 |
|
|---|
| 464 |
db_num_rows($result) > 0) { |
|---|
| 465 |
|
|---|
| 466 |
"<form method=\"GET\" action=\"tt-rss.php\">"; |
|---|
| 467 |
"<input type=\"hidden\" name=\"go\" value=\"vf\">"; |
|---|
| 468 |
"<input type=\"hidden\" name=\"id\" value=\"$feed\">"; |
|---|
| 469 |
"<input type=\"hidden\" name=\"cat\" value=\"$cat_view\">"; |
|---|
| 470 |
|
|---|
| 471 |
"<ul class=\"headlines\" id=\"headlines\">"; |
|---|
| 472 |
|
|---|
| 473 |
$page_art_ids = array(); |
|---|
| 474 |
|
|---|
| 475 |
$lnum = 0; |
|---|
| 476 |
|
|---|
| 477 |
error_reporting (DEFAULT_ERROR_LEVEL); |
|---|
| 478 |
|
|---|
| 479 |
$num_unread = 0; |
|---|
| 480 |
|
|---|
| 481 |
$line = db_fetch_assoc($result)) { |
|---|
| 482 |
|
|---|
| 483 |
$class = ($lnum % 2) ? "even" : "odd"; |
|---|
| 484 |
|
|---|
| 485 |
$id = $line["id"]; |
|---|
| 486 |
$feed_id = $line["feed_id"]; |
|---|
| 487 |
|
|---|
| 488 |
array_push($page_art_ids, $id); |
|---|
| 489 |
|
|---|
| 490 |
$line["last_read"] == "" && |
|---|
| 491 |
$line["unread"] != "t" && $line["unread"] != "1")) { |
|---|
| 492 |
|
|---|
| 493 |
$update_pic = "<img id='FUPDPIC-$id' src=\"images/updated.png\" |
|---|
| 494 |
; |
|---|
| 495 |
|
|---|
| 496 |
$update_pic = "<img id='FUPDPIC-$id' src=\"images/blank_icon.gif\" |
|---|
| 497 |
; |
|---|
| 498 |
|
|---|
| 499 |
|
|---|
| 500 |
$line["unread"] == "t" || $line["unread"] == "1") { |
|---|
| 501 |
$class .= "Unread"; |
|---|
| 502 |
$num_unread; |
|---|
| 503 |
$is_unread = true; |
|---|
| 504 |
|
|---|
| 505 |
$is_unread = false; |
|---|
| 506 |
|
|---|
| 507 |
|
|---|
| 508 |
$line["marked"] == "t" || $line["marked"] == "1") { |
|---|
| 509 |
$marked_pic = "<img alt=\"S\" class='marked' src=\"../images/mark_set.png\">"; |
|---|
| 510 |
|
|---|
| 511 |
$marked_pic = "<img alt=\"s\" class='marked' src=\"../images/mark_unset.png\">"; |
|---|
| 512 |
|
|---|
| 513 |
|
|---|
| 514 |
$line["published"] == "t" || $line["published"] == "1") { |
|---|
| 515 |
$published_pic = "<img alt=\"P\" class='marked' src=\"../images/pub_set.gif\">"; |
|---|
| 516 |
|
|---|
| 517 |
$published_pic = "<img alt=\"p\" class='marked' sr |
|---|