Glavna stranica | Popis datoteka | Članovi klasa u datoteci

kontakt.php

Dokumenacija za ovu datoteku.
00001 <?
00002 /**************************************************************************************
00003  Studentski Informacijski servis, 2004
00004  **************************************************************************************
00005  kontakt.php
00006  kontaktiranje predavaca i sluzbenika
00007 
00008 
00009  Srdjan Segvic - srle
00010  **************************************************************************************
00011  **************************************************************************************
00012  This program is free software; you can redistribute it and/or modify
00013  it under the terms of the GNU General Public License as published by
00014  the Free Software Foundation; either version 2 of the License, or
00015  (at your option) any later version.
00016 
00017  This program is distributed in the hope that it will be useful,
00018  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  GNU Library General Public License for more details.
00021 
00022  You should have received a copy of the GNU General Public License
00023  along with this program; if not, write to the Free Software
00024  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00025  **************************************************************************************/
00026 session_start();
00027         //
00028         // provjera sessije i inkludanje osnovnih funkcija i potrebnih template i language fileova
00029         //
00030         $id = $_SESSION['id'];
00031         include('functions/func_check_session.php');
00032         checkSession($id);
00033         include('connect.php');
00034         include('functions/func_preference.php');   
00035         include('template/header.php');
00036         include('template/template_servisi.php');
00037         include('functions/func_kontakt.php');
00038         $lang = getLang($id);
00039         include("lang/$lang/lang_kontakt.php"); 
00040         //
00041         // kontaktiranje profesora
00042         //
00043         if ($_GET['tip'] == "profesor"){
00044                 printRokoviStart(_CONTACTPROFMAINTITLE, 300);
00045                 kontaktProfesora($id, $_SESSION['odsjek']);
00046         }
00047         //
00048         // kontaktiranje asistenta
00049         //
00050         elseif ($_GET['tip'] == "asist"){
00051                 printRokoviStart(_CONTACTASSISTMAINTITLE, 300);
00052                 kontaktAsistenta($id, $_SESSION['odsjek']);
00053         }
00054         //
00055         // kontaktiranje sluzbe
00056         //
00057         elseif ($_GET['tip'] == "sluzba"){
00058                 printRokoviStart(_CONTACTSERVICEMAINTITLE, 300);
00059                 kontaktSSS();
00060         }
00061         //
00062         // slanje poruke
00063         //
00064         elseif ($_GET['tip'] == "send"){
00065                 printRokoviStart(_CONTACTMESSAGESENTMAINTITLE, 300);
00066                 kontaktSendMail($_POST['emailmail'], $_POST['subjectmail'], $_POST['textmail'], $id);
00067         }
00068         printRokoviKraj();
00069         include('template/footer.php');
00070 
00071 ?>

Generirano Thu Sep 16 17:16:01 2004 projekt: SiS.Student generator: doxygen 1.3.2