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

Contents of /NovaAplikacija.php

Parent Directory Parent Directory | Revision Log Revision Log


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

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 DBQuery("INSERT INTO tecajevi (naziv,sif_qualification,language) VALUES ('$naziv',4,'$language')");
10 $ret = $DBH->errstr;
11 DBClose();
12 }
13 if (!$ret) {
14 Header("Location: $oldpage");
15 exit;
16 }
17 }
18 $tpl = new MySmarty(-1, array("q" => $q));
19 $tpl->assign("oldpage", $HTTP_REFERER);
20 $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));
21 $tpl->show();
22 ?>

  ViewVC Help
Powered by ViewVC 1.1.26