Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if( (isset($_GET['action'])) AND ($_GET['action'] == 'login') ) {
- echo('<p>Das Login ist noch nicht verfügbar!<br /><br /><a href="?p=members">Zurück</a></p>'."\n");
- }else if($_GET['action'] == 'register'){
- echo('<p>Die Registrierung ist noch nicht aktiv!<br /><br /><a href="?p=members">Zurück</a></p>'."\n");
- echo('<form name="reg" method="post" action="?p=members&action=register&do=send">'."\n");
- echo('<p>'."\n");
- echo('<label for="nick">Minecraft-Nutzername*:</label>'."\n");
- echo('<input type="text" name="nick" id="nick" required>'."\n");
- echo('<br />'."\n");
- echo('<label for="dname">Anzeige Name*:</label>'."\n");
- echo('<input type="text" name="dname" id="dname" required>'."\n");
- echo('<label for="passwort"><br />'."\n");
- echo('Passwort*:</label>'."\n");
- echo('<input type="password" name="passwort" id="passwort" required>'."\n");
- echo('<br />'."\n");
- echo('<label for="email">Email-Adresse*:</label>'."\n");
- echo('<input type="mail" name="email" id="email" required>'."\n");
- echo('<br />'."\n");
- echo('<br />'."\n");
- echo('<input type="checkbox" name="agb" id="agb">'."\n");
- echo('Ich habe die AGB/<a href="?p=faq&mode=view&id=2">Regeln</a> gelesen und akzeptiert.</p>'."\n");
- echo('<p>'."\n");
- echo(' <input type="submit" name="send" id="send" value="Registrierung abschließen">'."\n");
- echo('</p>'."\n");
- echo('</form>'."\n");
- }else if(isset($_GET['action']) == 'info'){
- $user = $_GET['user'];
- $sql = "SELECT * FROM user WHERE nick='".mysql_real_escape_string($user)."'";
- $entry = mysql_query($sql,$datenbank) or die(mysql_error());
- while($user = mysql_fetch_object($entry))
- {
- echo('<table width="95%">'."\n");
- echo('<tr>'."\n");
- echo('<th><p>Profil von '. $user->dname .'</p></th>'."\n");
- echo('<th><a href="?p=members">Zurück zur Übersicht</a></th>'."\n");
- echo('</tr>'."\n");
- echo('<tr>'."\n");
- echo('<td><img src="content/images/avatare/'.$user->ava.'" width="120" height="120" alt="char'.$user->ava.'" /></td>'."\n");
- echo('<td><p>'. $user->info .'</p></td>'."\n");
- echo('</tr>'."\n");
- echo('<tr>'."\n");
- echo('<td><p>Mitglied seit:</p></td>'."\n");
- echo('<td><p>'. $user->regdatum .'</p></td>'."\n");
- echo('</tr>'."\n");
- echo('<tr>'."\n");
- echo('<td><p>Kontakt:</p></td>'."\n");
- echo('<td>'."\n");
- echo('<table>'."\n");
- echo('<tr><p><img src="content/images/icq.png" alt="icq" width="50" height="50" border="0" /> '. $user->icq .'</p></tr>'."\n");
- echo('<tr><p><img src="content/images/msn.png" alt="icq" width="50" height="50" border="0" /> '. $user->msn .'</p></tr>'."\n");
- echo('<tr><p><img src="content/images/skype.png" alt="icq" width="50" height="50" border="0" /> '. $user->skype .'</p></tr>'."\n");
- echo('<tr><p><img src="content/images/xmpp.png" alt="icq" width="50" height="50" border="0" /> '. $user->xmpp .'</p></td>'."\n");
- echo('</table>'."\n");
- echo('</tr>'."\n");
- echo('<tr>'."\n");
- echo('<td><p>Position:</p></td>'."\n");
- echo('<td><p>'. $user->rank .'</p></td>'."\n");
- echo('</tr>'."\n");
- echo('</td>'."\n");
- echo('</tr>'."\n");
- echo('</table>'."\n");
- echo('<table width="95%">'."\n");
- echo('<tr>'."\n");
- echo('<td>'. $user->signatur .'</td>'."\n");
- echo('</tr>'."\n");
- echo('</table>'."\n");
- if($user->rank == 'Admin') {
- echo('<h4>Letzte News Beiträge</h4>'."\n");
- echo('<ul class="archive">'."\n");
- $sql2 = "SELECT * FROM news where autor='".mysql_real_escape_string($_GET['user'])."' ORDER BY id DESC LIMIT 0, 3";
- $entry = mysql_query($sql2,$datenbank) or die(mysql_error());
- while($lastnews = mysql_fetch_object($entry))
- {
- echo('<li>'."\n");
- echo('<div class="post-title"><a href="?p=news&mode=view&id='.$lastnews->id.'">'.$lastnews->title.'</a></div>'."\n");
- echo('<div class="post-details">Geschrieben am '.$lastnews->datum.'</a> | Gespeichert unter <a href="?p=news&sel=cat&cat='.$lastnews->cat.'">'.$lastnews->cat.'</a></div>'."\n");
- echo('</li>'."\n");
- }
- echo('</ul>'."\n");
- }elseif($user->rank == 'Mod') {
- echo('<h4>Letzte News Beiträge</h4>'."\n");
- echo('<ul class="archive">'."\n");
- $sql2 = "SELECT * FROM news where autor='".mysql_real_escape_string($_GET['user'])."' ORDER BY id DESC LIMIT 0, 3";
- $entry = mysql_query($sql2,$datenbank) or die(mysql_error());
- while($lastnews = mysql_fetch_object($entry))
- {
- echo('<li>'."\n");
- echo('<div class="post-title"><a href="?p=news&mode=view&id='.$lastnews->id.'">'.$lastnews->title.'</a></div>'."\n");
- echo('<div class="post-details">Geschrieben am '.$lastnews->datum.'</a> | Gespeichert unter <a href="?p=news&sel=cat&cat='.$lastnews->cat.'">'.$lastnews->cat.'</a></div>'."\n");
- echo('</li>'."\n");
- }
- echo('</ul>'."\n");
- }
- echo('<p> </p>'."\n");
- if($user->rank == 'Admin') {
- echo('<h4>Letzte FAQ Einträge</h4>'."\n");
- echo('<ul class="archive">'."\n");
- $sql3 = "SELECT * FROM faq where autor='".mysql_real_escape_string($_GET['user'])."' ORDER BY id DESC LIMIT 0, 3";
- $entry = mysql_query($sql3,$datenbank) or die(mysql_error());
- while($lastfaq = mysql_fetch_object($entry))
- {
- echo('<li>'."\n");
- echo('<div class="post-title"><a href="?p=news&mode=view&id='.$lastfaq->id.'">'.$lastfaq->title.'</a></div>'."\n");
- echo('<div class="post-details">Geschrieben am '.$lastfaq->datum.'</a></div>'."\n");
- echo('</li>'."\n");
- }
- echo('</ul>'."\n");
- }elseif($user->rank == 'Mod') {
- echo('<h4>Letzte FAQ Einträge</h4>'."\n");
- echo('<ul class="archive">'."\n");
- $sql3 = "SELECT * FROM faq where autor='".mysql_real_escape_string($_GET['user'])."' ORDER BY id DESC LIMIT 0, 3";
- $entry = mysql_query($sql3,$datenbank) or die(mysql_error());
- while($lastfaq = mysql_fetch_object($entry))
- {
- echo('<li>'."\n");
- echo('<div class="post-title"><a href="?p=news&mode=view&id='.$lastfaq->id.'">'.$lastfaq->title.'</a></div>'."\n");
- echo('<div class="post-details">Geschrieben am '.$lastfaq->datum.'</a></div>'."\n");
- echo('</li>'."\n");
- }
- echo('</ul>'."\n");
- }
- }
- }else{
- echo('<p><a href="?p=members&action=login">Login</a> | <a href="?p=members&action=register">Registrieren</a>'."\n");
- echo('<p> </p>'."\n");
- echo('<table>'."\n");
- echo('<tr>'."\n");
- echo('<th>Avatar</th>'."\n");
- echo('<th>Nickname</th>'."\n");
- echo('<th>Rang</th>'."\n");
- echo('<th>Info</th>'."\n");
- echo('</tr>'."\n");
- $sql = "SELECT * FROM user ORDER BY id";
- $entry = mysql_query($sql,$datenbank) or die(mysql_error());
- while($user = mysql_fetch_object($entry))
- {
- echo('<tr>'."\n");
- echo('<td>'."\n");
- echo('<a href="?p=members&action=info&user='. $user->nick .'"><img src="content/images/avatare/'.$user->ava.'" width="120" height="120" alt="char'.$user->ava.'" /></a>'."\n");
- echo('</td>'."\n");
- echo('<td>'."\n");
- echo('<p>'. $user->dname .'</p>'."\n");
- echo('</td>'."\n");
- echo('<td>'."\n");
- echo('<p>'. $user->rank .'</p>'."\n");
- echo('</td>'."\n");
- echo('<td>'."\n");
- echo('<p>'. $user->info .'</p>'."\n");
- echo('</td>'."\n");
- echo('</tr>'."\n");
- }
- echo('</table>'."\n");
- }
- if(isset($_GET['do']) AND 'send' == $_GET['do']) {
- $sqlk = "INSERT INTO user
- (
- nick,
- dname,
- password,
- email,
- )
- VALUES
- (
- '".mysql_real_escape_string($_POST['nick'])."',
- '".mysql_real_escape_string($_POST['dname'])."',
- MD5('$_POST['passwort'])'),
- '".mysql_real_escape_string($_POST['email'])."'
- )";
- echo $sqlk; die();
- $qry = mysql_query($sqlk,$datenbank) or die(mysql_error());
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement