/[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.4 by ravilov, Wed Aug 8 12:58:08 2001 UTC revision 1.5 by ravilov, Thu Aug 30 16:35:36 2001 UTC
# Line 15  Line 15 
15                          list($art["id"], $art["title"], $art["lead"], $art["pic_url"],                          list($art["id"], $art["title"], $art["lead"], $art["pic_url"],
16                                  $art["pic_alt"], $art["pic_pos"], $art["more"],                                  $art["pic_alt"], $art["pic_pos"], $art["more"],
17                                  $date, $ord) = $row;                                  $date, $ord) = $row;
18                            $art["pic_url"] = str_replace("+", "%20", urlencode($art["pic_url"]));
19                          list($art["pic_w"], $art["pic_h"]) = PicSize($art["pic"]);                          list($art["pic_w"], $art["pic_h"]) = PicSize($art["pic"]);
20                          $text = array();                          $text = array();
21                          if (isset($art["id"])) {                          if (isset($art["id"])) {
# Line 30  Line 31 
31                                                  "title" => $row[2],                                                  "title" => $row[2],
32                                                  "level" => $row[3],                                                  "level" => $row[3],
33                                                  "class" => $row[4],                                                  "class" => $row[4],
34                                                  "pic" => $row[5],                                                  "pic" => str_replace("+", "%20", urlencode($row[5])),
35                                                  "alt" => $row[6],                                                  "alt" => $row[6],
36                                                  "pos" => $row[7],                                                  "pos" => $row[7],
37                                                  "w" => $w,                                                  "w" => $w,
# Line 78  Line 79 
79                  $tpl->assign("titlepic_width", $art["pic_w"]);                  $tpl->assign("titlepic_width", $art["pic_w"]);
80                  $tpl->assign("titlepic_height", $art["pic_h"]);                  $tpl->assign("titlepic_height", $art["pic_h"]);
81                  for ($i = 0; $i < count($art["text"]); $i++)                  for ($i = 0; $i < count($art["text"]); $i++)
82                          $art["text"][$i]["text"] = ParseNewline(MyEscape($art["text"][$i]["text"]));                          $art["text"][$i]["text"] = ParseNewline(MyEscape($art["text"][$i]["text"]), true);
83                  $tpl->assign("text", $art["text"]);                  $tpl->assign("text", $art["text"]);
84                  $tpl->assign("cat", $art["category"]);                  $tpl->assign("cat", $art["category"]);
85          }          }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.26