/[pliva-si]/multi.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 /multi.php

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

revision 1.6 by dpavlin, Thu Sep 20 09:35:23 2001 UTC revision 1.7 by dpavlin, Thu Sep 20 09:50:24 2001 UTC
# Line 16  if (! isset($p)) { Line 16  if (! isset($p)) {
16          $section="domov";          $section="domov";
17  } else {  } else {
18          // fetch current page          // fetch current page
19          $sql="select id,menu_num,name,html,path,type from multi where visible and id=$p";          $sql="select id,menu_num,name,html,path,type from multi where $visible_is_true and id=$p";
20          $sth = $dbh->prepare("$sql");          $sth = $dbh->prepare("$sql");
21          $sth->execute();          $sth->execute();
22          $row=$sth->fetchrow_hash();          $row=$sth->fetchrow_hash();
23    
24          $title.=" : $row[name]";          $title.=" : $row[name]";
25          if ($row[type]=="h" && file_exists(find_html_file("multi",$row[html]))) {          if ($row[type]=="h" && find_html_file("multi",$row[html])) {
26                  $main=join('',file(find_html_file("multi",$row[html])));                  $main=join('',file(find_html_file("multi",$row[html])));
27          } elseif ($row[type]=="p") {          } elseif ($row[type]=="p") {
28                  if (file_exists(find_html_file("/",$row[path]))) {                  if (find_html_file("",$row[path])) {
29                          $main=join('',file(find_html_file("/",$row[path])));                          $main=join('',file(find_html_file("",$row[path])));
30                          // fix entities from MS programs                          // fix entities from MS programs
31                          include("fix_msshit.inc");                          include("fix_msshit.inc");
32                          $main=fix_msshit($main);                          $main=fix_msshit($main);
# Line 55  if (! isset($p)) { Line 55  if (! isset($p)) {
55          $title=str_replace("\\n"," ",$title);   // nuke nl chars          $title=str_replace("\\n"," ",$title);   // nuke nl chars
56    
57          // fetch all pages in this multi-page          // fetch all pages in this multi-page
58          $sql="select id,name from multi where visible and menu_num=$row[menu_num] order by menu_num,num";          $sql="select id,name from multi where $visible_is_true and menu_num=$row[menu_num] order by menu_num,num";
59          $sth = $dbh->prepare("$sql");          $sth = $dbh->prepare("$sql");
60          $sth->execute();          $sth->execute();
61    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.26