* @global mixed $db */ # File name: index.php # Date: 2005/11/29 19:42 # Author: Michal Zimen include ('config/config.inc'); require ('classes/mysql.php'); require ('classes/student.php'); require ('classes/referat.php'); require ('classes/functions.php'); session_start(); # # load submitted files from DB. # $db=new Mysql($db_server, $db_name, $db_login, $db_password); if ($db->connect()===false){ echo "error:".$db->err_msg; } include ('header.php'); echo ''; ?> Periférne Zariadenia a Styk s Prostredím

'.$_SESSION['msg'].'
'; elseif(isset($_SESSION['err'])) showError($_SESSION['err']); unset($_SESSION['err']); unset($_SESSION['msg']); if (!isset($_GET['admin']) && !isset($_GET['student']) && !isset($_POST['admin']) && isset($_GET['id'])){ $referat=new Referat($_GET['id']); echo $referat->show(); }elseif (isset($_GET['admin']) || isset($_POST['admin'])){ include('admin/index.php'); }elseif (isset($_GET['student'])){ include('student/index.php'); }elseif (isset($_GET['help'])){ include('help.php'); }else{ include('intro.php'); } ?>
Break the limits, use a free software!
Coded by Tomas Zolyomi, Michal Zimen (c) 2005