Hallo Towner,
ich suche eine Datei für das Housekeeping vom ReCMS.
Undzwar die Datei "users_edit.php" , ich bin 5 CMS'e durchgegangen, aber nichts gefunden immer die selbe.
Sie sollte nicht aussehen, wie im Spoiler.
Es wäre echt Nett, wenn mir jemand die Datei zum Download anbieten kann
Hochachtungsvoll,
Fearghus.
[spoiler=So soll es nicht aussehen!]
Housekeeping - users_edit.php
-
'Fearghus -
13. Juni 2013 um 18:38 -
Geschlossen
-
-
-
Spoiler anzeigen
PHP
Alles anzeigen<?php if($user_rank > 3){ if($hkzone !== true){ header("Location: index.php?throwBack=true"); exit; } if(!isset($_SESSION['acp'])){ header("Location: index/p/login"); exit; } $pagename = "Mitglied Bearbeiten"; if(isset($_GET['username'])){ $sql = mysql_fetch_assoc($sql = mysql_query("SELECT * FROM users WHERE username = '".FilterText($_GET['username'])."' LIMIT 1")); header("location: ".$adminpath."/index/p/users_edit&key=".$sql['id'].""); } if(isset($key) && is_numeric($key)){ $usercheck = mysql_query("SELECT * FROM users WHERE id = '".$key."' LIMIT 1"); $usercheck_a = mysql_query("SELECT * FROM user_stats WHERE id = '".$key."' LIMIT 1") or die(mysql_error()); if(mysql_num_rows($usercheck) > 0){ $usereditor = true; $userdata = mysql_fetch_assoc($usercheck); $userdata_a = mysql_fetch_assoc($usercheck_a); } else { $msg = "<div class='rounded rounded-red'><center>Fehler - Kein Mitglied gefunden. <img src=\"./images/del.gif\"></center></div>"; } } if(isset($_POST['resetfigure']) && is_numeric($key)){ $query = mysql_query("SELECT * FROM users WHERE id = '".$key."' LIMIT 1"); if(mysql_num_rows($query) > 0){ $usereditor = true; $userdata = mysql_fetch_assoc($query); if($userdata['gender'] == "M"){ $look = 'hd-180-1.ch-210-66.lg-270-82.sh-290-91.hr-100-'; $gender = 'M'; } else { $look = 'hd-180-1.ch-210-66.lg-270-82.sh-290-91.hr-100-'; $gender = 'F'; } mysql_query("UPDATE users SET look = '".$look."', gender = '".$gender."' WHERE id = '".$key."'"); $msg = "<div class='rounded rounded-green'><center>Die Figure von ".$userdata['username']." (ID: ".$userdata['id'].") wurde erfolgreich resetet. <img src=\"./images/check.gif\"></center></div>"; $query = mysql_query("SELECT * FROM users WHERE id = '".$key."' LIMIT 1"); $userdata = mysql_fetch_assoc($query); } else { $msg = "<div class='rounded rounded-red'><center>Fehler - Mitglied konnte nicht gefunden werden. <img src=\"./images/del.gif\"></center></div>"; } } if(isset($_POST['submit']) && is_numeric($key)){ $query = mysql_query("SELECT * FROM users WHERE id = '".$key."' LIMIT 1"); if(mysql_num_rows($query) > 0){ $usereditor = true; $userdata = mysql_fetch_assoc($query); if($user_rank == '7' or '8'){ mysql_query("UPDATE users SET vip = '".FilterText($_POST['vip'])."', working = '".FilterText($_POST['working'])."', secretcode = '".FilterText($_POST['secretcode'])."', vip_points = '".FilterText($_POST['vip_points'])."', online = '".FilterText($_POST['status'])."', rank = '".FilterText($_POST['rank'])."', birth = '".FilterText($_POST['birth'])."' WHERE id = '".$userdata['id']."'") or die(mysql_error()); } mysql_query("UPDATE users SET motto = '".FilterText($_POST['motto'])."', look = '".FilterText($_POST['look'])."', gender = '".FilterText($_POST['gender'])."', mail = '".FilterText($_POST['mail'])."', credits = '".FilterText($_POST['credits'])."', activity_points = '".FilterText($_POST['activity_points'])."' WHERE id = '".$userdata['id']."'") or die(mysql_error()); mysql_query("INSERT INTO stafflogs (action,message,note,userid,targetid,timestamp,details) VALUES ('Housekeeping','User Bearbeitet','users_edit.php','".$my_id."','".$userdata['id']."','".$date_full."','')") or die(mysql_error()); $msg = "<div class='rounded rounded-green'><center>".$userdata['username']." (ID: ".$userdata['id'].") wurde erfolgreich bearbeitet. <img src=\"./images/check.gif\"></center></div>"; $query = mysql_query("SELECT * FROM users WHERE id = '".$key."' LIMIT 1"); $userdata = mysql_fetch_assoc($query); if(isset($_POST['mus-updatecredits'])){ $core->MUS('updatecredits', $key); } if(isset($_POST['mus-motto'])){ $core->MUS('updatemotto', $key); } if(isset($_POST['mus-look'])){ $core->MUS('updatelook', $key); } } else { $msg = "<div class='rounded rounded-red'><center>Fehler - Mitglied konnte nicht gefunden werden. <img src=\"./images/del.gif\"></center></div>"; } } @include('subheader.php'); if(isset($msg)){ echo"<p><strong>".$msg."</p></strong><br>"; } if(isset($usereditor)){ if($usereditor == "true"){ $check_bann = mysql_query("SELECT * FROM bans WHERE value = '".$userdata['username']."' AND bantype = 'user' AND expire > '".time()."'") or die(mysql_error()); $check_bann_ip = mysql_query("SELECT * FROM bans WHERE value = '".$userdata['ip_last']."' AND bantype = 'ip' AND expire > '".time()."'"); $userinfo = mysql_fetch_assoc($userinfo = mysql_query("SELECT * FROM user_info WHERE user_id = '".$userdata['id']."'")); ?> <form action='<?php echo $adminpath; ?>/index/p/users_edit&key=<?php echo $userdata['id']; ?>' method='post' name='theAdminForm' id='theAdminForm'> <div class='tableborder'> <div class='tableheaderalt'><center>ID: <?php echo $userdata['id']; ?> - <?php echo $userdata['username']; ?></b> -- Stand: <?php echo $date_full; ?> Uhr </center><div style="float: right; margin-top: -22px; margin-right: 5px;"><input onclick="javascript:history.go(-1);" value='Zurück' class='cancelbutton' accesskey='s'> <input type='submit' name='submit' value='Speichern' class='savebutton' accesskey='s'> <input type='submit' name='resetfigure' value='Style zurücksetzen' class='resetbutton' accesskey='s'></div> </div> </table> <table cellpadding='0' cellspacing='8' width='100%' id='tablewrap'> <tr> <td width='10%' valign='top' id='rightblock'> <div class='tableborder'> <div class='tableheaderalt'><center>Einstellungen</center></div> <table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Username</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='name' value="<?php echo $userdata['username']; ?>" disabled="disabled" size='30' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Onlinezeit*</b></td> <td class='tablerow2' width='60%' valign='middle'> <input type='text' name='onlinetimer' value="<?php echo round($userdata_a['OnlineTime'] / 3600) ; ?> Stunden" disabled='disabled' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Motto</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='motto' value="<?php echo $userdata['motto']; ?>" size='30' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Letzter Login*</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='last_online' value="<?php echo date('d.m.Y - H:i:s', $userdata['last_online']); ?>" disabled='disabled' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Registriert*</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='account_created' value="<?php echo date('d.m.Y - H:i:s', $userdata['account_created']); ?>" disabled='disabled' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Figure_Data</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='look' value="<?php echo $userdata['look']; ?>" <?php if($user_rank < 6){ ?> disabled='disabled' <?php } ?>size='30' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Gender</b></td> <td class='tablerow2' width='60%' valign='middle'><select name="gender"><option value="M">Männlich</option><option value="F" <?php if($userdata['gender'] == "F"){ echo'selected="selected"'; } ?>>Weiblich</option></select></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>E-Mail</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='mail' value="<?php echo $userdata['mail']; ?>" size='30' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Taler</b></td> <td class='tablerow2' width='60%' valign='middle'> <input type='text' name='credits' value="<?php echo $userdata['credits']; ?>"<?php if($user_rank < 6){ ?> disabled='disabled' <?php } ?>size='30' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Pixel</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='activity_points' value="<?php echo $userdata['activity_points']; ?>"<?php if($user_rank < 6){ ?> disabled='disabled' <?php } ?>size='30' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Geburtsdatum*²</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='birth' value="<?php echo $userdata['birth']; ?>"<?php if($user_rank < 7){ echo" disabled='disabled'"; } ?> class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>IP ~ Letzter Login*</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='ip_last' value="<?php echo $userdata['ip_last']; ?>" disabled='disabled' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>IP ~ Register*</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='ip_reg' value="<?php echo $userdata['ip_reg']; ?>" disabled='disabled' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Hilferufe*</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='helper' value="<?php echo mysql_evaluate("SELECT COUNT(*) FROM moderation_tickets WHERE moderator_id = '".$userdata['id']."'"); ?>x" disabled="disabled" size='30'class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Sicherheitscode*²</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='secretcode' value="<?php if($user_rank < 7){ echo"******"; } else { echo $userdata['secretcode']; } ?>"<?php if($user_rank < 7){ echo" disabled='disabled'"; } ?> size='30' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>VIP-Punkte*²</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='vip_points' value="<?php echo $userdata['vip_points']; ?>"<?php if($user_rank < 7){ echo" disabled='disabled'"; } ?> size='30' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Aufgabe*²</b></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='working' value="<?php echo $userdata['working']; ?>" <?php if($user_rank < 7){ ?> disabled='disabled' <?php } ?>size='30' class='textinput'></td> </tr> <tr><td align='center' class='tablesubheader' colspan='2' ><i>* = Option kann nicht bearbeitet werden!<br>*² = Option kann nur von einen Entwickler bearbeitet werden!</i></td></tr> </table> </div> <td width='15%' valign='top' id='rightblock'> <div class='tableborder'> <div class='tableheaderalt'><center>Sonstige Einstellungen</center></div> <table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'> <tr> <td class='tablerow1' width='40%' valign='middle'><b>VIP</b></td> <td class='tablerow2' width='60%' valign='middle'><input name="vip" <?php if($userdata['vip'] == 1){ ?>checked="checked"<?php } ?> value="1" <?php if($user_rank < 7){ ?> disabled='disabled' <?php } ?>type="checkbox"></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>MUS-DATA Figure*</b></td> <td class='tablerow2' width='60%' valign='middle'><input name="mus-look" value="true" <?php if($user_rank < 7){ ?> disabled='disabled' <?php } ?>type="checkbox"></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>MUS-DATA Motto*</b></td> <td class='tablerow2' width='60%' valign='middle'><input name="mus-motto" value="true" <?php if($user_rank < 7){ ?> disabled='disabled' <?php } ?>type="checkbox"></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>MUS-DATA Taler*</b></td> <td class='tablerow2' width='60%' valign='middle'><input name="mus-updatecredits" value="true" <?php if($user_rank < 7){ ?> disabled='disabled' <?php } ?>type="checkbox"></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>On/Offline Status</b></td> <td class='tablerow2' width='60%' valign='middle'><select name="status"<?php if($user_rank < 7){ ?> disabled='disabled' <?php } ?>class="dateselector"><option value="0">Offline</option><option value="1"<?php if($userdata['online'] == 1){ ?>selected="selected"<?php } ?>>Online</option></select> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>User Rank</b></td> <td class='tablerow2' width='60%' valign='middle'> <select name="rank"<?php if($user_rank < 7){ ?> disabled='disabled' <?php } ?>class="dateselector"> <option value="1">Normal</option><option value="2"<?php if($userdata['rank'] == 2){ ?>selected="selected"<?php } ?>>Normal + VIP</option><option value="3"<?php if($userdata['rank'] == 3){ ?>selected="selected"<?php } ?>>Werbe Team</option> <option value="4"<?php if($userdata['rank'] == 4){ ?>selected="selected"<?php } ?>>Xler</option> <option value="5"<?php if($userdata['rank'] == 5){ ?>selected="selected"<?php } ?>>Moderator</option> <option value="6"<?php if($userdata['rank'] == 6){ ?>selected="selected"<?php } ?>>Community Manager</option> <option value="7"<?php if($userdata['rank'] == 7){ ?>selected="selected"<?php } ?>>Techniker</option> <option value="8"<?php if($userdata['rank'] == 8){ ?>selected="selected"<?php } ?>>Hotel Leitung</option></select> </tr> <tr><td align='center' class='tablesubheader' colspan='2' ><i>* = Aktualisierung im Client</i></td></tr> </form> </table> </div></td> <td width='1%' valign='top' id='rightblock'> <div class='tableborder'> <div class='tableheaderalt'><center>Statistiken</center></div> <table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Online:</b></td> <td class='tablerow2' width='60%' valign='middle'><img src="./images/<?php if($userdata['online'] > 0){ echo'check'; }else{ echo'del'; } ?>.gif"> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>User-Bann:</b></td> <td class='tablerow2' width='60%' valign='middle'><img src="./images/<?php if(mysql_num_rows($check_bann) > 0){ echo'check'; }else{ echo'del'; } ?>.gif"> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>IP-Bann:</b></td> <td class='tablerow2' width='60%' valign='middle'><img src="./images/<?php if(mysql_num_rows($check_bann_ip) > 0){ echo'check'; }else{ echo'del'; } ?>.gif"> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Banns:</b></td> <td class='tablerow2' width='60%' valign='middle'><?php echo $userinfo['bans']; ?>x</td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Gemeldet:</b></td> <td class='tablerow2' width='60%' valign='middle'><?php echo $userinfo['cautions']; ?>x</td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Hilferufe Gesendet:</b></td> <td class='tablerow2' width='60%' valign='middle'><?php echo $userinfo['cfhs']; ?>x</td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Abuse:</b></td> <td class='tablerow2' width='60%' valign='middle'><?php echo $userinfo['cfhs_abusive']; ?>x</td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>VIP-Abuse:</b></td> <td class='tablerow2' width='60%' valign='middle'><?php echo mysql_evaluate("SELECT COUNT(*) FROM vip_bestellung WHERE id_user = '".$userdata['id']."' AND finish = '2'"); ?> x</tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Rank:</b></td> <td class='tablerow2' width='60%' valign='middle'><?php echo $userdata['rank']; ?> </tr> </table> </div></td> <td width='8%' valign='top' id='rightblock'> <div class='tableborder'> <div class='tableheaderalt'><center>Avatar</center></div> <table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'> <tr> <td class='tablerow2'><center><img src="<?php echo $avatar; echo $userdata['look']; ?>&size=b&direction=6&head_direction=6&gesture=sml"><img src="<?php echo $avatar; echo $userdata['look']; ?>&size=b&direction=8&head_direction=8&gesture=sml"><img src="<?php echo $avatar; echo $userdata['look']; ?>&size=b&direction=5&head_direction=5&gesture=sml"><img src="<?php echo $avatar; echo $userdata['look']; ?>&size=b&direction=1&head_direction=1&gesture=sml"><img src="<?php echo $avatar; echo $userdata['look']; ?>&size=b&direction=4&head_direction=4&gesture=sml"><img src="<?php echo $avatar; echo $userdata['look']; ?>&size=b&direction=2&head_direction=2&gesture=sml"><img src="<?php echo $avatar; echo $userdata['look']; ?>&size=b&direction=7&head_direction=7&gesture=sml"><img src="<?php echo $avatar; echo $userdata['look']; ?>&size=b&direction=3&head_direction=3&gesture=sml"></center> </tr> </table> </div></td> <td width='10%' valign='top' id='rightblock'> <div class='tableborder'> <div class='tableheaderalt'><center>Badges</div> <table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'> <tr> <td class='tablerow2'><center> <?php $sql = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$key."' ORDER BY badge_id"); while($row = mysql_fetch_assoc($sql)){ ?> <img src="<?php echo $cimagesurl.$badgesurl.$row['badge_id']; ?>.gif" title="<?php echo $row['badge_id']; ?>"> <?php } ?> </td> </tr> </table> </div><div> <?php } } else { ?> <form action='<?php echo $adminpath; ?>/index/p/users_edit' method='post' name='theAdminForm' id='theAdminForm'> <div class='tableborder'> <div class='tableheaderalt'><center>Mitglieder Bearbeiten</center></div> <table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Username</b><div class='graytext'>Gebe hier den Username des Mitgliedes ein.</div></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='searchname' value="<?php if(isset($_POST['query'])){ echo FilterText($_POST['query']); } ?>" size='30' class='textinput'></td> </tr> <tr> <td align='center' class='tablesubheader' colspan='2' ><input type='submit' value='Mitglied Bearbeiten' class='realbutton' accesskey='s'></td> </tr> </form> </table> </div> <?php } ?> </div> </td></tr> </table> </div> <?php require_once('footer.php'); } else { require_once('error.php'); exit; } ?>
-
Crookie:
[spoiler=Bitte schauen :)]
-
schick mir TV daten
-
schick mir TV daten
Zu spät, habs ihm schon gemacht. (*HIHI*)
-
MODHennnee:
Bitte closenHochachtungsvoll,
Fearghus.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!