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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Wed Jun 19 18:32:42 2002 UTC (17 years, 1 month ago) by ravilov
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -3 lines
lotsa changes... :)

1 dpavlin 1.1 <?php
2     include("inc/global.php");
3     if (!Auth()) exit;
4     if (isparam("wb_OK") || isparam("wb_Cancel")) {
5     if (isparam("wb_OK") && $naziv) {
6     include("inc/conn.php");
7     DBOpen();
8     $naziv = ISO_Win($naziv);
9 ravilov 1.3 DBQuery("INSERT INTO tecajevi (naziv,sif_qualification,language) VALUES ('$naziv',$q,'$language')");
10 dpavlin 1.2 $ret = $DBH->errstr;
11 dpavlin 1.1 DBClose();
12     }
13 dpavlin 1.2 if (!$ret) {
14     Header("Location: $oldpage");
15     exit;
16     }
17 dpavlin 1.1 }
18 dpavlin 1.2 $tpl = new MySmarty(-1, array("q" => $q));
19 dpavlin 1.1 $tpl->assign("oldpage", $HTTP_REFERER);
20     $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));
21 dpavlin 1.2 $tpl->show();
22 dpavlin 1.1 ?>

  ViewVC Help
Powered by ViewVC 1.1.26