/[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.3 by dpavlin, Mon Jul 9 13:40:26 2001 UTC revision 1.6 by dpavlin, Thu Sep 20 09:35:23 2001 UTC
# Line 1  Line 1 
1  <?php  <?php
2    
3    $max_title_len=20;      // max. length of titles in drop-down
4    
5  require("Smarty.class.php");  require("Smarty.class.php");
6  require("conn.inc");  require("conn.inc");
7    
# Line 22  if (! isset($p)) { Line 25  if (! isset($p)) {
25          if ($row[type]=="h" && file_exists(find_html_file("multi",$row[html]))) {          if ($row[type]=="h" && file_exists(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 (file_exists(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
31                            include("fix_msshit.inc");
32                            $main=fix_msshit($main);
33                  } else {                  } else {
34                          $main="<b>can't find $row[path] for id $p</b>";                          $main="<b>can't find $row[path] for id $p</b>";
35                  }                  }
# Line 60  if (! isset($p)) { Line 66  if (! isset($p)) {
66          while ($row=$sth->fetchrow_hash()) {          while ($row=$sth->fetchrow_hash()) {
67                  array_push($multi_page_url,"$PHP_SELF?p=$row[id]");                  array_push($multi_page_url,"$PHP_SELF?p=$row[id]");
68                  array_push($multi_page_id,$row[id]);                  array_push($multi_page_id,$row[id]);
69                  $multi_page_options[$row[id]]=$row[name];                  $drop_title=$row[name];
70                  #array_push($multi_page_options,array( value=>$row[id], output=>$row[name]));                  if (strlen($drop_title) > $max_title_len) $drop_title=substr($drop_title,0,$max_title_len)."...";
71                    $multi_page_options[$row[id]]=$drop_title;
72                  if ($row[id] == $p) {                  if ($row[id] == $p) {
73                          $current=$max;                          $current=$max;
74                          $curr_id=$row[id];                          $curr_id=$row[id];

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

  ViewVC Help
Powered by ViewVC 1.1.26