Glavna stranica | Popis datoteka | Članovi klasa u datoteci

pref.php

Dokumenacija za ovu datoteku.
00001 <?
00002 /**************************************************************************************
00003  Studentski Informacijski servis, 2004
00004  **************************************************************************************
00005  pref.php
00006  podesavanje korisnickih opcija
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('functions/func_pref.php');   
00037         include('template/template_pref.php');  
00038         $lang = getLang($id);
00039         include("lang/$lang/lang_pref.php"); 
00040         //
00041         // forma za promjenu passworda
00042         //
00043         if (isset($_GET['pass']) && ($_GET['pass']==1)){
00044                 printRokoviStart(_PREFPASSWORDTITLE, 310);
00045                 printPrefPass();
00046         }
00047         //
00048         // spasavanje novog passworda
00049         //
00050         elseif (isset($_GET['pass']) && ($_GET['pass']=='novi')){
00051                 printRokoviStart(_PREFPASSWORDTITLE, 300);
00052                 prefPassNew($id, $_POST['password'], $_POST['newpass1'], $_POST['newpass2']);
00053         }
00054         //
00055         // forma za izmjenu licnih podataka
00056         //
00057         elseif (isset($_GET['licni']) && ($_GET['licni']==1)){
00058                 printRokoviStart(_PREFPERSONALINFOTITLE, 300);
00059                 prefLicni($id);
00060         }
00061         //
00062         // spasvanje novih licnih podataka
00063         //
00064         elseif (isset($_GET['licni']) && ($_GET['licni']=='novi')){
00065                 printRokoviStart(_PREFPERSONALINFOTITLE, 300);
00066                 prefLicniNovi($id, $_POST['email'], $_POST['adresa']);
00067         }
00068         //
00069         // forma za odabir jezika sucelja
00070         //
00071         elseif (isset($_GET['lang']) && ($_GET['lang']==1)){
00072                 printRokoviStart(_PREFLANGTITLE, 300);
00073                 prefLang();
00074         }
00075         //
00076         // spasavanje jezika sucelja
00077         //
00078         elseif (isset($_GET['lang']) && ($_GET['lang']=='novi')){
00079                 printRokoviStart(_PREFLANGTITLE, 300);
00080                 prefLangNovi($id, $_POST['language']);
00081         }
00082         //
00083         // forma za izbor vizuelne teme aplikacije
00084         //
00085         elseif (isset($_GET['tema']) && ($_GET['tema']==1)){
00086                 printRokoviStart(_PREFVISUALTITLE, 500);
00087                 prefTheme();
00088         }
00089         //
00090         // spasavanje odabrane vizuelne teme
00091         //
00092         elseif (isset($_GET['tema']) && ($_GET['tema']=='novi')){
00093                 printRokoviStart(_PREFVISUALTITLE, 300);
00094                 prefThemeNovi($id, $_POST['tema_id']);
00095         }
00096         //
00097         // forma za podesavanje osnovnih postavki aplikacije
00098         //
00099         elseif (isset($_GET['postavke']) && ($_GET['postavke']==1)){
00100                 printRokoviStart(_PREFOPTIONSTITLE, 350);
00101                 prefSettings($id);
00102         }
00103         //
00104         // spasavanje osnovnih postavki aplikacije
00105         //
00106         elseif (isset($_GET['postavke']) && ($_GET['postavke']=='novi')){
00107                 printRokoviStart(_PREFOPTIONSTITLE, 350);       
00108                 prefSettingsNovi($id, $_POST['ppage'], $_POST['pocetak'], $_POST['kraj']);
00109         }
00110         //
00111         // odabir akcije
00112         //
00113         else {
00114                 printRokoviStart(_PREFTITLE, 724);      
00115                 prefStart($id);
00116         }
00117         printRokoviKraj();
00118         include('template/footer.php');
00119 ?>

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