/[hr-web]/main.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 /main.php

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

revision 1.1 by dpavlin, Fri Apr 20 08:25:32 2001 UTC revision 1.2 by dpavlin, Wed Apr 25 13:18:46 2001 UTC
# Line 1  Line 1 
1  <?  <?
2          include("inc/global.php");          include("inc/global.php");
3          if (!Auth()) exit;          if (!Auth()) exit;
4          include("inc/Smarty.class.php");          $tpl = new MySmarty;
         $tpl = new Smarty;  
         $tpl->template_dir = "./tpl";  
         $tpl->compile_dir = "./tpc";  
         $tpl->assign("action", $PHP_SELF.Params());  
         $tpl->assign("language", $language);  
5          $tpl->assign("page", $page);          $tpl->assign("page", $page);
         $tpl->assign("sifra", $sifra);  
6          for ($i = 0; $i < count($pages); $i++)          for ($i = 0; $i < count($pages); $i++)
7                  $tpl->assign("page_".$i, $pages[$i].Params($i));                  $tpl->assign("page_".$i, $pages[$i].Params($i));
8          $tpl->assign("page_logout", $dir);          $tpl->assign("page_logout", $dir);
9          $pg = basename($PHP_SELF);          $tpl->show();
         $pg = eregi_replace("\.php$", "", $pg);  
         $tpl->display("$pg-$language.tpl");  
10  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26