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

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

revision 1.11 by ravilov, Wed Oct 10 12:40:58 2001 UTC revision 1.12 by ravilov, Tue Oct 16 13:07:03 2001 UTC
# Line 64  Line 64 
64                                          $art["au_alt"], $art["au_info"],                                          $art["au_alt"], $art["au_info"],
65                                          $art["au_w"], $art["au_h"]));                                          $art["au_w"], $art["au_h"]));
66                                  $tpl->assign("kol_links", GetLinks(                                  $tpl->assign("kol_links", GetLinks(
67                                          (($art["read"] || $art["au_pic"] || $art["au_info"]) && $art["id"]) ? $art["read"] : "",                                          (($art["read"] || $art["au_pic"] || $art["au_info"]) && $art["id"] && (!$art["more"] || ($art["more"] && !strpos($art["more"], "?")))) ? $art["read"] : "",
68                                          /* MyEscape($art["more"]) */ /* (count($art["text"]) > 0 && $art["id"]) ? $art["more"] : "", */ "",                                          /* MyEscape($art["more"]) */ /* (count($art["text"]) > 0 && $art["id"]) ? $art["more"] : "", */ "",
69                                          MyEscape($art["more_title"]), $art["id"], $empty["category"],                                          MyEscape($art["more_title"]), $art["id"], $empty["category"],
70                                          "kol", false, false, false, $art["show"]));                                          "kol", false, false, false, $art["show"]));
# Line 72  Line 72 
72                          }                          }
73                  }                  }
74                  if (!$offset) $offset = 0;                  if (!$offset) $offset = 0;
75                  $empty = array("category" => $cat, "limit" => 11, "offset" => $offset, "npar" => 0);                  $empty = array("category" => $cat, "limit" => 10, "offset" => $offset, "npar" => 0);
76                  $arts = newsLoad(-1, $empty["category"], $empty["limit"], 0, $empty["npar"]);                  $arts = newsLoad(-1, $empty["category"], $empty["limit"], 0, $empty["npar"]);
77                  $a2 = array();                  $a2 = array();
78                  for ($i = 0; $i < count($arts); $i++) {                  for ($i = 0; $i < count($arts); $i++) {
# Line 92  Line 92 
92                          if ($ed && is_string($ed)) $tpl->assign("EDIT", $ed);                          if ($ed && is_string($ed)) $tpl->assign("EDIT", $ed);
93                                  else $top_edit = false;                                  else $top_edit = false;
94                  }                  }
95                  $arts = newsLoad(-1, $empty["category"], $empty["limit"], $empty["offset"], $empty["npar"]);                  $arts = newsLoad(-1, $empty["category"], $empty["limit"] + 1, $empty["offset"], $empty["npar"]);
96                  $a2 = array();                  $a2 = array();
97                  $lm = count($arts);                  $lm = count($arts);
98                  if ($lm > $empty["limit"]) $lm = $empty["limit"];                  if ($lm > $empty["limit"]) $lm = $empty["limit"];
# Line 119  Line 119 
119                                          "titlepic_width" => $art["pic_w"],                                          "titlepic_width" => $art["pic_w"],
120                                          "titlepic_height" => $art["pic_h"],                                          "titlepic_height" => $art["pic_h"],
121                                          "text" => $art["text"],                                          "text" => $art["text"],
122                                          "links" => GetLinks((($art["read"] || $art["au_pic"] || $art["au_info"]) && $art["id"]) ? $art["read"] : "",                                          "links" => GetLinks((($art["read"] || $art["au_pic"] || $art["au_info"]) && $art["id"] && (!$art["more"] || ($art["more"] && !strpos($art["more"], "?")))) ? $art["read"] : "",
123                                                  /* MyEscape($art["more"]) */ /* ((count($art["text"]) > 0 || strstr("?", $art["more"]) == 0) && $art["id"]) ? $art["more"] : "", */ "",                                                  /* MyEscape($art["more"]) */ (strstr("?", $art["more"]) == 0 && $art["id"]) ? $art["more"] : "",
124                                                  MyEscape($art["more_title"]), $art["id"], $empty["category"], "top",                                                  MyEscape($art["more_title"]), $art["id"], $empty["category"], "top",
125                                                  true, ($i > 0), ($i < count($arts) - 1), $art["show"]),                                                  true, ($i > 0), ($i < count($arts) - 1), $art["show"]),
126                                          "read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? $art["read"] : ""                                          "read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? $art["read"] : ""

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.26