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

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

revision 1.3 by dpavlin, Fri Jun 29 09:44:25 2001 UTC revision 1.4 by dpavlin, Fri Jun 29 12:55:11 2001 UTC
# Line 4  require("conn.inc"); Line 4  require("conn.inc");
4    
5  $smarty = new Smarty;  $smarty = new Smarty;
6    
7  $smarty->assign( array ( Title=>"Pliva d.d." ) );  $smarty->assign( array ( Title=>"PLIVA Ljubljana" ) );
8    
9  $section=str_replace(".php","",basename($PHP_SELF));  $section=str_replace(".php","",basename($PHP_SELF));
10  $smarty->assign("section",$section);  $smarty->assign("section",$section);
# Line 32  if (isset($h) && file_exists(find_html_f Line 32  if (isset($h) && file_exists(find_html_f
32          $main=$smarty->fetch("$main_file.tpl");          $main=$smarty->fetch("$main_file.tpl");
33  } elseif (find_html_file("h",$section)) {  } elseif (find_html_file("h",$section)) {
34          $main=join('',file(find_html_file("h",$section)));          $main=join('',file(find_html_file("h",$section)));
35    } elseif (file_exists("sections/$section.inc")) {
36            include("sections/$section.inc");
37  } else {  } else {
38          $main="<b>can't find template or html file for section $section</b>";          $main="<b>can't find template or html file for section $section</b>";
39  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26