/[pliva-si]/sections/novosti.inc
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 /sections/novosti.inc

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

revision 1.1 by dpavlin, Fri Jun 29 12:57:06 2001 UTC revision 1.6 by dpavlin, Wed Nov 7 12:09:58 2001 UTC
# Line 2  Line 2 
2    
3  include("news_sif.inc");  include("news_sif.inc");
4    
5  $sql_where="where visible is true";  $sql_where="where $visible_is_true";
6    
7  if (file_exists(find_html_file("more",$more))) {  if (file_exists(find_html_file("more",$more))) {
8    
# Line 21  if (file_exists(find_html_file("more",$m Line 21  if (file_exists(find_html_file("more",$m
21                  } elseif ($type == "e") {                  } elseif ($type == "e") {
22                          $sql_where .= " and substr(type,1,1)='e'";                          $sql_where .= " and substr(type,1,1)='e'";
23                          $title.=" : Dogotki";                          $title.=" : Dogotki";
24                    } elseif (strlen($type) == 3) {
25                            $sql_where .= " and type='$type'";
26                            if ($type=="mp_") {
27                                    $title.=" : PLIVA Magazin";
28                                    $smarty->assign("mtext","PLIVA Magazin");
29                            }
30                  }                  }
31          }          }
32    
# Line 88  if (file_exists(find_html_file("more",$m Line 94  if (file_exists(find_html_file("more",$m
94                  warning=>$warning                  warning=>$warning
95                  ));                  ));
96    
         $main=$smarty->fetch("novosti.tpl");  
97    
98          if (isset($id) && find_html_file("more",$data[0][more])) {          if (isset($id) && find_html_file("more",$data[0][more])) {
99                  $main=join('',file(find_html_file("more",$data[0][more])));                  $main=join('',file(find_html_file("more",$data[0][more])));
100            } else {
101                    if (! isset($p)) $p="novosti";
102                    $logo="p/${p}_".$data[0][type].".jpg";
103                    if (file_exists($logo)) {
104                            $smarty->assign("logo",$logo);
105                    }
106                    $main=$smarty->fetch("$p.tpl");
107          }          }
108    
109    
# Line 99  if (file_exists(find_html_file("more",$m Line 111  if (file_exists(find_html_file("more",$m
111    
112  $smarty->assign( array(back_url=>$back_url) );  $smarty->assign( array(back_url=>$back_url) );
113    
114    
115  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26