/[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.7 by dpavlin, Thu Sep 20 09:50:24 2001 UTC revision 1.10 by dpavlin, Wed Nov 7 14:24:02 2001 UTC
# Line 10  $smarty = new Smarty; Line 10  $smarty = new Smarty;
10  $smarty->assign( array ( Title=>"PLIVA Ljubljana" ) );  $smarty->assign( array ( Title=>"PLIVA Ljubljana" ) );
11    
12  include("find_html_file.inc");  include("find_html_file.inc");
13    include("fix_msshit.inc");
14    
15  if (! isset($p)) {  if (! isset($p)) {
16          $p=0;          $p=0;
# Line 19  if (! isset($p)) { Line 20  if (! isset($p)) {
20          $sql="select id,menu_num,name,html,path,type from multi where $visible_is_true and id=$p";          $sql="select id,menu_num,name,html,path,type from multi where $visible_is_true and id=$p";
21          $sth = $dbh->prepare("$sql");          $sth = $dbh->prepare("$sql");
22          $sth->execute();          $sth->execute();
23          $row=$sth->fetchrow_hash();          if (! $row=$sth->fetchrow_hash()) {
24                    $sth = $dbh->prepare("select min(num) as menu_num from menu");
25                    $sth->execute();
26                    $row2=$sth->fetchrow_hash();
27                    $row = array(id=>0,menu_num=>$row2[menu_num],name=>"Can't find page",html=>'',path=>'',type=>'');
28            }
29    
30          $title.=" : $row[name]";          $title.=" : $row[name]";
31            $smarty->assign("mtext",$row[name]);
32          if ($row[type]=="h" && find_html_file("multi",$row[html])) {          if ($row[type]=="h" && find_html_file("multi",$row[html])) {
33                  $main=join('',file(find_html_file("multi",$row[html])));                  $main=join('',file(find_html_file("multi",$row[html])));
34                    $main=fix_msshit($main);
35          } elseif ($row[type]=="p") {          } elseif ($row[type]=="p") {
36                  if (find_html_file("",$row[path])) {                  if (find_html_file("",$row[path])) {
37                          $main=join('',file(find_html_file("",$row[path])));                          $main=join('',file(find_html_file("",$row[path])));
38                          // fix entities from MS programs                          // fix entities from MS programs
                         include("fix_msshit.inc");  
39                          $main=fix_msshit($main);                          $main=fix_msshit($main);
40                  } else {                  } else {
41                          $main="<b>can't find $row[path] for id $p</b>";                          $main="<b>can't find $row[path] for id $p</b>";

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

  ViewVC Help
Powered by ViewVC 1.1.26