/[health_html]/inc/newsShow.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/newsShow.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by ravilov, Tue Oct 23 16:13:59 2001 UTC revision 1.18 by ravilov, Tue Oct 23 16:20:37 2001 UTC
# Line 120  Line 120 
120                  $tpl->assign("date", $art["date"] ? strftime("%d.%m.%Y.", strtotime($art["date"])) : "");                  $tpl->assign("date", $art["date"] ? strftime("%d.%m.%Y.", strtotime($art["date"])) : "");
121                  $tpl->assign("AUTHOR", GetAuthor($art["au_pic"], $art["au_alt"],                  $tpl->assign("AUTHOR", GetAuthor($art["au_pic"], $art["au_alt"],
122                          $art["au_info"], $art["au_w"], $art["au_h"], $art["au_cv"]));                          $art["au_info"], $art["au_w"], $art["au_h"], $art["au_cv"]));
123                    $some_title = false;
124                  for ($i = 0; $i < count($art["text"]); $i++) {                  for ($i = 0; $i < count($art["text"]); $i++) {
125                            if ($art["text"][$i]["title"]) $some_title = true;
126                          if ($art["text"][$i]["text"]) {                          if ($art["text"][$i]["text"]) {
127                                  $art["text"][$i]["text"] = ParseNewline(MyEscape(                                  $art["text"][$i]["text"] = ParseNewline(MyEscape(
128                                          convert_html($art["text"][$i]["text"]), false), true);                                          convert_html($art["text"][$i]["text"]), false), true);
# Line 140  Line 142 
142                  $tpl->assign("acat", $acat);                  $tpl->assign("acat", $acat);
143                  $tpl->assign("acat2", $acat2);                  $tpl->assign("acat2", $acat2);
144                  $tpl->assign("pgfs", count($art["text"]));                  $tpl->assign("pgfs", count($art["text"]));
145                    $tpl->assign("some_title", $some_title);
146                  if ($art["id"]) {                  if ($art["id"]) {
147                          $sql = "SELECT news.news_id, news.category, news.title, news.lead, news.title_pic, news.title_alt FROM news, related WHERE (news.news_id = related.rel_id) AND (related.news_id = ".$art["id"].") AND (prikazi) ORDER BY d_orig DESC";                          $sql = "SELECT news.news_id, news.category, news.title, news.lead, news.title_pic, news.title_alt FROM news, related WHERE (news.news_id = related.rel_id) AND (related.news_id = ".$art["id"].") AND (prikazi) ORDER BY d_orig DESC";
148                          $sth = $dbh->prepare($sql);                          $sth = $dbh->prepare($sql);

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.26