/[health_html]/inc/pgHome.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/pgHome.php

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

revision 1.8 by ravilov, Tue Sep 25 15:38:04 2001 UTC revision 1.10 by ravilov, Tue Oct 2 16:18:09 2001 UTC
# Line 28  Line 28 
28                          $tpl->assign("top_id", $art["id"]);                          $tpl->assign("top_id", $art["id"]);
29                          $tpl->assign("top_title", MyEscape($art["title"]));                          $tpl->assign("top_title", MyEscape($art["title"]));
30                          $tpl->assign("top_lead", MyEscape($art["lead"]));                          $tpl->assign("top_lead", MyEscape($art["lead"]));
31                            $tpl->assign("top_pgfs", (count($art["text"]) > 0) ? true : false);
32                          $tpl->assign("top_titlepic_url", MyEscape($art["pic_url"]));                          $tpl->assign("top_titlepic_url", MyEscape($art["pic_url"]));
33                          $tpl->assign("top_titlepic_alt", MyEscape($art["pic_alt"]));                          $tpl->assign("top_titlepic_alt", MyEscape($art["pic_alt"]));
34                          $tpl->assign("top_titlepic_type", $art["pic_pos"]);                          $tpl->assign("top_titlepic_type", $art["pic_pos"]);
# Line 44  Line 45 
45                                  /* MyEscape($art["more"]) */ (count($art["text"]) > 0 && $art["id"]) ? $art["more"] : "",                                  /* MyEscape($art["more"]) */ (count($art["text"]) > 0 && $art["id"]) ? $art["more"] : "",
46                                  MyEscape($art["more_title"]), $art["id"], $empty["category"],                                  MyEscape($art["more_title"]), $art["id"], $empty["category"],
47                                  "top", $isEdit, false, false, false));                                  "top", $isEdit, false, false, false));
48                            $tpl->assign("top_read", $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? true : false);
49                  }                  }
50                  $menu2 = array();                  $menu2 = array();
51                  $empty = array("category" => "w", "limit" => ($wn_edit && !$ed_id ? 4 : 5), "offset" => 0, "npar" => 0);                  $empty = array("category" => "w", "limit" => $isEdit ? 0 : ($wn_edit && !$ed_id ? 9 : 10), "offset" => 0, "npar" => 0);
52                  $ed = "";                  $ed = "";
53                  if ($wn_edit && $ed_id <= 0 && $isEdit) {                  if ($wn_edit && $ed_id <= 0 && $isEdit) {
54                          include_once("inc/newsEdit.php");                          include_once("inc/newsEdit.php");
# Line 75  Line 77 
77                                          "id" => $art["id"],                                          "id" => $art["id"],
78                                          "title" => MyEscape($art["title"]),                                          "title" => MyEscape($art["title"]),
79                                          "lead" => MyEscape($art["lead"]),                                          "lead" => MyEscape($art["lead"]),
80                                            "pgfs" => (count($art["text"]) > 0) ? true : false,
81                                          "pic" => MyEscape($art["pic_url"]),                                          "pic" => MyEscape($art["pic_url"]),
82                                          "alt" => MyEscape($art["pic_alt"]),                                          "alt" => MyEscape($art["pic_alt"]),
83                                          "pos" => MyEscape($art["pic_pos"]),                                          "pos" => MyEscape($art["pic_pos"]),
# Line 84  Line 87 
87                                                  MyEscape($art["more"]), MyEscape($art["more_title"]),                                                  MyEscape($art["more"]), MyEscape($art["more_title"]),
88                                                  $art["id"], $empty["category"], "wn", $isEdit, true,                                                  $art["id"], $empty["category"], "wn", $isEdit, true,
89                                                  ($i > 0), ($i < count($arts) - 1)),                                                  ($i > 0), ($i < count($arts) - 1)),
90                                            "read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? true : false,
91                                          "text" => $art["text"]                                          "text" => $art["text"]
92                                  ));                                  ));
93                                  array_push($tmp2, array(                                  array_push($tmp2, array(
# Line 101  Line 105 
105                          "pre" => "wn-",                          "pre" => "wn-",
106                          "items" => $tmp2                          "items" => $tmp2
107                  ));                  ));
108                  $empty = array("category" => "p", "limit" => ($pn_edit && !$ed_id ? 4 : 5), "offset" => 0, "npar" => 0);                  $empty = array("category" => "p", $isEdit ? 0 : "limit" => ($pn_edit && !$ed_id ? 9 : 10), "offset" => 0, "npar" => 0);
109                  $ed = "";                  $ed = "";
110                  if ($pn_edit && $ed_id <= 0 && $isEdit) {                  if ($pn_edit && $ed_id <= 0 && $isEdit) {
111                          include_once("inc/newsEdit.php");                          include_once("inc/newsEdit.php");
# Line 130  Line 134 
134                                          "id" => $art["id"],                                          "id" => $art["id"],
135                                          "title" => MyEscape($art["title"]),                                          "title" => MyEscape($art["title"]),
136                                          "lead" => MyEscape($art["lead"]),                                          "lead" => MyEscape($art["lead"]),
137                                            "pgfs" => (count($art["text"]) > 0) ? true : false,
138                                          "pic" => MyEscape($art["pic_url"]),                                          "pic" => MyEscape($art["pic_url"]),
139                                          "alt" => MyEscape($art["pic_alt"]),                                          "alt" => MyEscape($art["pic_alt"]),
140                                          "pos" => MyEscape($art["pic_pos"]),                                          "pos" => MyEscape($art["pic_pos"]),
# Line 139  Line 144 
144                                                  MyEscape($art["more"]), MyEscape($art["more_title"]),                                                  MyEscape($art["more"]), MyEscape($art["more_title"]),
145                                                  $art["id"], $empty["category"], "pn", $isEdit, true,                                                  $art["id"], $empty["category"], "pn", $isEdit, true,
146                                                  ($i > 0), ($i < count($arts) - 1)),                                                  ($i > 0), ($i < count($arts) - 1)),
147                                            "read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? true : false,
148                                          "text" => MyEscape($art["text"])                                          "text" => MyEscape($art["text"])
149                                  ));                                  ));
150                                  array_push($tmp2, array(                                  array_push($tmp2, array(

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.26