/[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.1 by dpavlin, Tue Jul 3 12:41:05 2001 UTC revision 1.2 by dpavlin, Mon Jul 9 08:49:46 2001 UTC
# Line 13  if (! isset($p)) { Line 13  if (! isset($p)) {
13          $section="domov";          $section="domov";
14  } else {  } else {
15          // fetch current page          // fetch current page
16          $sql="select id,menu_num,name,html from multi where visible and id=$p";          $sql="select id,menu_num,name,html,path,type from multi where visible and id=$p";
17          $sth = $dbh->prepare("$sql");          $sth = $dbh->prepare("$sql");
18          $sth->execute();          $sth->execute();
19          $row=$sth->fetchrow_hash();          $row=$sth->fetchrow_hash();
20    
21          $title.=" : $row[name]";          $title.=" : $row[name]";
22          if (file_exists(find_html_file("multi",$row[html]))) {          if ($row[type]=="h" && file_exists(find_html_file("multi",$row[html]))) {
23                  $main=join('',file(find_html_file("multi",$row[html])));                  $main=join('',file(find_html_file("multi",$row[html])));
24            } elseif ($row[type]=="p" && file_exists(find_html_file("",$row[path]))) {
25                    $main=join('',file(find_html_file("",$row[path])));
26                    // try to load translation (html fix-up or something)
27                    $fix_up="./fix_up/".str_replace("/","_",dirname($row[path])).".inc";
28                    if (file_exists($fix_up)) {
29                            include($fix_up);
30                    }
31          } else {          } else {
32                  $main="<b>can't find multi page for id $p</b>";                  $main="<b>can't find multi page for id $p</b>";
33          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.26