/[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

Annotation of /main.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Fri Apr 20 08:25:32 2001 UTC (23 years ago) by dpavlin
Branch: MAIN
Branch point for: pliva
Initial revision

1 dpavlin 1.1 <?
2     include("inc/global.php");
3     if (!Auth()) exit;
4     include("inc/Smarty.class.php");
5     $tpl = new Smarty;
6     $tpl->template_dir = "./tpl";
7     $tpl->compile_dir = "./tpc";
8     $tpl->assign("action", $PHP_SELF.Params());
9     $tpl->assign("language", $language);
10     $tpl->assign("page", $page);
11     $tpl->assign("sifra", $sifra);
12     for ($i = 0; $i < count($pages); $i++)
13     $tpl->assign("page_".$i, $pages[$i].Params($i));
14     $tpl->assign("page_logout", $dir);
15     $pg = basename($PHP_SELF);
16     $pg = eregi_replace("\.php$", "", $pg);
17     $tpl->display("$pg-$language.tpl");
18     ?>

  ViewVC Help
Powered by ViewVC 1.1.26