Simples Backup des Wettkampfplaners
zum Commit vorgemerkte Änderungen: neue Datei: addEvent.php neue Datei: addFahrt.php neue Datei: addStarter.php neue Datei: addStarterDev.php neue Datei: admin/.htaccess neue Datei: admin/addEvent.php neue Datei: admin/addMitfahrer.php neue Datei: admin/adminAddStarter.php neue Datei: admin/adminFunctions.php neue Datei: admin/adminFunctions.php.inc neue Datei: admin/adminUpdateStarterErgebnis.php neue Datei: admin/config.inc.php neue Datei: admin/index.php neue Datei: admin/listEvents.php neue Datei: admin/listUsers.php neue Datei: admin/newsLetter.php neue Datei: admin/register.php neue Datei: admin/resetPassword.php neue Datei: admin/reseteMitfahrer.php neue Datei: admin/showEvent.php neue Datei: admin/showFahrt.php neue Datei: admin/showUser.php neue Datei: admin/verteileMitfahrer.php neue Datei: auth.php neue Datei: authLogin.php neue Datei: calendar.php neue Datei: changePassword.php neue Datei: editFahrt.php neue Datei: eventKalender.php neue Datei: galImgPicker.php neue Datei: horstWolfJudosport.php neue Datei: index.php neue Datei: infoZettel.php neue Datei: lib/wkParticipoLib.php.inc neue Datei: local/.htaccess neue Datei: local/db.php.inc neue Datei: local/wkParticipoConf.php.inc neue Datei: login.php neue Datei: loginDev.php neue Datei: logout.php neue Datei: showWkEvent.php neue Datei: style.css neue Datei: styleDev.css neue Datei: test.php neue Datei: userInfo.php
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
require_once('../local/wkParticipoConf.php.inc');
|
||||
require_once('../auth.php');
|
||||
require_once('../local/db.php.inc');
|
||||
require_once('../lib/wkParticipoLib.php.inc');
|
||||
|
||||
$message = array();
|
||||
$eventData = array();
|
||||
|
||||
if(empty($_POST)){
|
||||
$message['error'] = "Fehler: leeres POST!";
|
||||
}
|
||||
else{
|
||||
if( empty($_POST['f']['userId']) ){
|
||||
$message['error'] = "Fehler: keine userId gefunden! <a href=\"./listUsers.php\">zur Userübersicht</a>";
|
||||
}
|
||||
else{
|
||||
if( (string)(int)$_POST['f']['userId'] == $_POST['f']['userId'] ){
|
||||
$mysqli = @new mysqli($db_server, $db_user, $db_password, $db_name);
|
||||
if ($mysqli->connect_error) {
|
||||
$message['error'] = 'Datenbankverbindung fehlgeschlagen: ' . $mysqli->connect_error;
|
||||
}
|
||||
else{
|
||||
$userData = getUserData($mysqli, $_POST['f']['userId']);
|
||||
if( empty($eventData) ) $message['error'] = 'Fehler: keine Userdaten zurückgeliefert!';
|
||||
}
|
||||
}
|
||||
else $message['error'] = "Fehler: userId ist kein Int (".$_POST['f']['userId'].")";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Wettkampfplanung - Administration - Userdetails</title>
|
||||
<link rel="stylesheet" href="../style.css">
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
echo $login_status;
|
||||
?>
|
||||
<a class="touchLink" href="./listUsers.php"><div>Zur Userliste zurück</div></a>
|
||||
<a class="touchLink" href="./index.php"><div>Zum Adminbereich zurück</div></a>
|
||||
<?php
|
||||
|
||||
if( empty($userData) ){
|
||||
if( !empty($message['error']) ){
|
||||
echo "<p>".$message['error']."</p>\n";
|
||||
}
|
||||
}
|
||||
else{
|
||||
?>
|
||||
<h2>Userdaten</h2>
|
||||
<div class=wkBox">
|
||||
<ul>
|
||||
<li>UserId: <?php echo $userData['id']?></li>
|
||||
<li>loginName: <?php echo $userData['loginName']?></li>
|
||||
<li>name: <?php echo $userData['name']?></li>
|
||||
<li>vorname: <?php echo $userData['vorname']?></li>
|
||||
<li>gebDatum: <?php echo $userData['gebDatum']?></li>
|
||||
<li>kinder: <?php echo $userData['kinder']?></li>
|
||||
<li>eltern: <?php echo $userData['eltern']?></li>
|
||||
<li>eMail: <?php echo $userData['eMail']?></li>
|
||||
<li>
|
||||
<form action="./resetPassword.php" method="post">
|
||||
<input type="hidden" name="f[userId]" id="userId" <?php echo( "value=".$userData['id'])?> />
|
||||
<button class="touchButton" type="submit" name="submit">Passwort neu setzen</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h2>kinderDaten</h2>
|
||||
<?php
|
||||
$kinderDaten = getUsersKidsData($mysqli, $userData['id']);
|
||||
foreach($kinderDaten as $kind){
|
||||
?>
|
||||
<div class=wkBox">
|
||||
<ul>
|
||||
<li>UserId: <?php echo $kind['id']?></li>
|
||||
<li>loginName: <?php echo $kind['loginName']?></li>
|
||||
<li>name: <?php echo $kind['name']?></li>
|
||||
<li>vorname: <?php echo $kind['vorname']?></li>
|
||||
<li>gebDatum: <?php echo $kind['gebDatum']?></li>
|
||||
<li>kinder: <?php echo $kind['kinder']?></li>
|
||||
<li>eltern: <?php echo $kind['eltern']?></li>
|
||||
<li>eMail: <?php echo $kind['eMail']?></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user