mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 07:22:17 +00:00
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
if (!isset($_SESSION['incoming/user']) || $_SESSION['incoming/user']=='')
|
||||
{
|
||||
$_SESSION['request_uri']=$_SERVER['REQUEST_URI'];
|
||||
|
||||
header('Location: index.php');
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -20,7 +20,9 @@
|
||||
* Karl Burkhart <burkhart@technikum-wien.at>.
|
||||
*/
|
||||
|
||||
|
||||
require_once '../../../config/cis.config.inc.php';
|
||||
require_once 'auth.php';
|
||||
require_once '../../../include/mobilitaetsprogramm.class.php';
|
||||
require_once '../../../include/functions.inc.php';
|
||||
require_once '../../../include/phrasen.class.php';
|
||||
@@ -78,6 +80,10 @@ $mobility->getAll();
|
||||
<td colspan="2"><a href="incoming.php"><?php echo $p->t('incoming/uploadvondateien');?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0">
|
||||
<tr>
|
||||
<td align="center"><a href="logout.php">Logout</a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -21,15 +21,53 @@
|
||||
*/
|
||||
|
||||
require_once '../../../config/cis.config.inc.php';
|
||||
header('content-type: text/html; charset=utf-8');
|
||||
?>
|
||||
require_once '../../../include/phrasen.class.php';
|
||||
require_once '../../../include/person.class.php';
|
||||
|
||||
if(isset($_GET['lang']))
|
||||
setSprache($_GET['lang']);
|
||||
|
||||
$sprache = getSprache();
|
||||
$p=new phrasen($sprache);
|
||||
|
||||
if (isset($_POST['userid']))
|
||||
{
|
||||
$login = $_REQUEST['userid'];
|
||||
$person = new person();
|
||||
|
||||
session_start();
|
||||
|
||||
//Zugangscode wird überprüft
|
||||
if($person->checkZugangscode($login))
|
||||
{
|
||||
$_SESSION['incoming/user'] = $login;
|
||||
|
||||
header('Location: incoming.php');
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormsg= $p->t('incoming/ungueltigerbenutzer');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Inoming-Verwaltung</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
</head>
|
||||
<body>
|
||||
<form action ="abc" method="POST">
|
||||
<table width="100%" border="0">
|
||||
<tr>
|
||||
<td align="left"></td>
|
||||
<td align ="right"><?php
|
||||
echo $p->t("global/sprache")." ";
|
||||
echo '<a href="'.$_SERVER['PHP_SELF'].'?lang=English">'.$p->t("global/englisch").'</a> |
|
||||
<a href="'.$_SERVER['PHP_SELF'].'?lang=German">'.$p->t("global/deutsch").'</a><br>';?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<form action ="index.php" method="POST">
|
||||
<table border ="0" width ="100%" height="40%">
|
||||
<tr >
|
||||
<td align="center" valign="bottom"> <img src="../../../skin/images/tw_logo_02.jpg"></td>
|
||||
@@ -46,13 +84,20 @@ header('content-type: text/html; charset=utf-8');
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><input type="text" size="30" value="UserID" onfocus="this.value='';"></td>
|
||||
<td align="center"><input type="text" size="30" value="UserID" name ="userid" onfocus="this.value='';"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><input type="password" size="30" value="UserID" onfocus="this.value='';"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><input type="submit" value="Login"></td>
|
||||
<td align="center"><input type="submit" value="Login" name="submit"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><?php if(isset($errormsg))
|
||||
echo $errormsg; ?>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/* Copyright (C) 2010 FH Technikum Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Karl Burkhart <karl.burkhart@technikum-wien.at>.
|
||||
*/
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Logout</title>
|
||||
<script type="text/javascript">
|
||||
function login()
|
||||
{
|
||||
document.location="index.php";
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
session_start();
|
||||
session_destroy();
|
||||
|
||||
if(isset($_SERVER['REMOTE_USER']))
|
||||
{
|
||||
echo 'ACHTUNG! Sie sind per BASIC-Authentifizierung angemeldet. Ein Logout ist hierbei nicht möglich. Um sich korrekt auszuloggen schliessen Sie bitte ALLE Browserfenster.';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '
|
||||
<center>
|
||||
<strong>
|
||||
<br />
|
||||
<br />
|
||||
Sie wurden erfolgreich ausgeloggt!!<br /> Sie werden sofort weitergeleitet!<br />
|
||||
</strong>
|
||||
<script type="text/javascript">
|
||||
window.setTimeout("login()", 2500);
|
||||
</script>
|
||||
';
|
||||
}
|
||||
?>
|
||||
<br />
|
||||
Sollten Sie nicht weitergeleitet werden klicken Sie bitte <a href="index.php">hier</a>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
@@ -221,8 +221,8 @@ if(isset($_REQUEST['submit']))
|
||||
function sendMail($zugangscode, $email)
|
||||
{
|
||||
$emailtext= "Dies ist eine automatisch generierte E-Mail.<br><br>";
|
||||
$emailtext.= "Sie wurden erfolgreich am System registriert<br>";
|
||||
$emailtext.= "Mit Hilfe der UID:".$zugangscode." können Sie sich unter http://cis.technikum-wien.at/incoming anmelden.";
|
||||
$emailtext.= "Sie wurden erfolgreich am System registriert.<br><br>";
|
||||
$emailtext.= "Mit Hilfe der UID: ".$zugangscode." können Sie sich unter <a>http://cis.technikum-wien.at/incoming</a> anmelden und Ihre Daten bearbeiten.";
|
||||
|
||||
$mail = new mail($email, 'no-reply', 'Incoming-Registration', 'Bitte sehen Sie sich die Nachricht in HTML Sicht an, um den Link vollständig darzustellen.');
|
||||
$mail->setHTMLContent($emailtext);
|
||||
|
||||
Reference in New Issue
Block a user