/[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.1 by ravilov, Fri Aug 3 09:12:42 2001 UTC revision 1.2 by ravilov, Fri Aug 3 11:21:16 2001 UTC
# Line 14  Line 14 
14                                  $art["pic_alt"], $art["pic_pos"], $art["more"], $date) = $row;                                  $art["pic_alt"], $art["pic_pos"], $art["more"], $date) = $row;
15                          list($art["pic_w"], $art["pic_h"]) = PicSize($art["pic"]);                          list($art["pic_w"], $art["pic_h"]) = PicSize($art["pic"]);
16                          $text = array();                          $text = array();
17                          if ($art["id"]) {                          if (isset($art["id"])) {
18                                  $sql = "SELECT paragraph_id, text, title, level, class, pic, alt, pos FROM paragraphs, par_levels WHERE (news_id = ".$art["id"].") AND (level = level_id)";                                  $sql = "SELECT paragraph_id, text, title, level, class, pic, alt, pos FROM paragraphs, par_levels WHERE (news_id = ".$art["id"].") AND (level = level_id)";
19                                  $sth2 = $dbh->prepare($sql);                                  $sth2 = $dbh->prepare($sql);
20                                  if (!$sth2) error("Cannot prepare query: \"$sql\"");                                  if (!$sth2) error("Cannot prepare query: \"$sql\"");
# Line 37  Line 37 
37                                  $sth2->finish();                                  $sth2->finish();
38                          }                          }
39                          $art["text"] = $text;                          $art["text"] = $text;
40                          $art["read"] = (count($text) > $npar) ? true : false;                          $art["read"] = (count($art["text"]) > $npar) ? true : false;
41                          $art["category"] = $cat;                          $art["category"] = $cat;
42                          $art["limit"] = $limit;                          $art["limit"] = $limit;
43                          $art["npar"] = $npar;                          $art["npar"] = $npar;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26