Wie schon gesagt suche ich die Datei "hk_staff.php" um per http://www.Hotellink.de/hk_staff.php die Staffpage zu bearbeiten.
Wäre nett wenn jemand eine hat sie mir geben würde :-).
Fresh.
[S] Hk_staff.php Datei [S]
-
Platin -
16. Dezember 2013 um 14:52 -
Geschlossen
-
-
-
Hier bitteschön mein Sohn
Spoiler anzeigen
PHP
Alles anzeigen<?php require_once('./data_classes/server-data.php_data_classes-core.php.php'); require_once('./data_classes/server-data.php_data_classes-session.php.php'); $pagename = "Staffs bearbeiten"; $pageid = "13"; if($user_rank < 5){ require_once('error.php'); exit; } require_once('./templates/community_subheader.php'); require_once('./templates/community_header.php'); if($_POST['edit']){ $figure = "&direction=".FilterText($_POST['direction'])."&head_direction=".FilterText($_POST['h_direction'])."&action=".FilterText($_POST['action'])."&gesture=".FilterText($_POST['gesture']).""; mysql_query("UPDATE cms_staffpage SET leftpx = '".FilterText($_POST['left'])."', toppx = '".FilterText($_POST['top'])."', figure = '".$figure."' WHERE userid = '".FilterText($_POST['staff_id'])."'"); } mysql_query("DELETE FROM cms_staffpage WHERE userid = ".$row[0].""); if($_POST['del']){ $staff_info_query = "SELECT * FROM users WHERE username = '".FilterText($_POST['name_del'])."'"; $staff_info_result = mysql_query($staff_info_query); $staff_info_array = mysql_fetch_assoc($staff_info_result); $staff_uid = $staff_info_array['id']; $check = mysql_query("SELECT id FROM users WHERE username = '".FilterText($_POST['name_del'])."'"); if(mysql_num_rows($check) == "1"){ $row = mysql_fetch_row($check); $check = mysql_query("SELECT userid FROM cms_staffpage WHERE userid = '".$staff_uid."'"); if(mysql_num_rows($check) > 0){ mysql_query("DELETE FROM cms_staffpage WHERE userid = '".$staff_uid."'"); echo "<b>Erfolgreich gelöscht!</b>"; } else { echo "<b>Der User ist in der Staffliste nicht vorhanden!</b>"; } } else { echo "<b>Dieser User existiert nicht!</b>"; } } if($_POST['add']){ $staff_info_query = "SELECT * FROM users WHERE username = '".FilterText($_POST['name_add'])."'"; $staff_info_result = mysql_query($staff_info_query); $staff_info_array = mysql_fetch_assoc($staff_info_result); $staff_uid = $staff_info_array['id']; $check = mysql_query("SELECT id FROM users WHERE username = '".FilterText($_POST['name_add'])."'"); if(mysql_num_rows($check) == "1"){ $row = mysql_fetch_row($check); $check2 = mysql_query("SELECT userid FROM cms_staffpage WHERE userid = '".$row[0]."'"); if(mysql_num_rows($check2) < 1){ mysql_query("INSERT INTO `cms_staffpage` VALUES ('0','0','0','".$staff_uid."','".FilterText($_POST['name_add'])."')"); echo "<b>Erfolgreich hinzugefügt!</b>"; } else { echo "<b>Dieser User ist bereits in der Staffliste!</b>"; } } else { echo "<b>Dieser User existiert nicht!</b>"; } } $sql_1 = mysql_query("SELECT username,userid,figure FROM cms_staffpage ORDER BY userid"); $sql_2 = mysql_query("SELECT userid,figure,leftpx,toppx FROM cms_staffpage ORDER BY userid"); $sql_3 = mysql_query("SELECT userid,toppx FROM cms_staffpage ORDER BY userid"); $sql_4 = mysql_query("SELECT username,userid,leftpx,toppx,figure FROM cms_staffpage"); require_once('./templates/community_subheader.php'); ?> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <link rel="stylesheet" href="http://85.114.140.142/web-gallery/static/styles/style.css" type="text/css" /> <div id="content"> <div> <div class="content"> <div class="habblet-container"> <div class="cbb clearfix settings"> <h2 class="title">Staffs bearbeiten</h2> <div class="box-content"> <div class='tableborder'> <table cellspacing='0' cellpadding='5' align='center' border='0'> <tr> <div class="box-content"> <?php while($row = mysql_fetch_row($sql_4)){ ?> <form action='<?php echo $path; ?>/hk_staff.php' method='post'> <?php $figure = $row[4]; $split_figure = preg_split('/[&=]/', $figure); $get_direction = $split_figure[2]; $get_h_direction = $split_figure[4]; $get_action = $split_figure[6]; $get_gesture = $split_figure[8]; ?> <font size="3"><b><?php echo $row[0]; ?>: </b></font> <br> Abstand Links: <input type="text" name="left" value="<?php echo $row[2]; ?>" size="5" maxlength="5"> Abstand Oben: <input type="text" name="top" value="<?php echo $row[3]; ?>" size="5" maxlength="5"> Aktion: <select name="action"> <option value="wav"<?php if($get_action == 'wav'){ ?> selected="selected"<?php } ?>>Winken</option> <option value="wlk"<?php if($get_action == 'wlk'){ ?> selected="selected"<?php } ?>>Gehen</option> <option value="sit"<?php if($get_action == 'sit'){ ?> selected="selected"<?php } ?>>Sitzen</option> <option value="wlk,wav"<?php if($get_action == 'wlk,wav'){ ?> selected="selected"<?php } ?>>Tanzen & Winken</option> <option value="sit,wav"<?php if($get_action == 'sit,wav'){ ?> selected="selected"<?php } ?>>Sitzen & Winken</option> <option value="drk=6"<?php if($get_action == 'drk=6'){ ?> selected="selected"<?php } ?>>Trinken (Kaffe) <b>(Stehen)</b></option> <option value="drk=6,sit"<?php if($get_action == 'drk=6,sit'){ ?> selected="selected"<?php } ?>>Trinken (Kaffe) <b>(Sitzen)</b></option> <option value="drk=1"<?php if($get_action == 'drk=1'){ ?> selected="selected"<?php } ?>>Trinken (Wasser) <b>(Stehen)</b></option> <option value="drk=1,sit"<?php if($get_action == 'drk=1,sit'){ ?> selected="selected"<?php } ?>>Trinken (Wasser) <b>(Sitzen)</b></option> <option value="drk=2"<?php if($get_action == 'drk=2'){ ?> selected="selected"<?php } ?>>Essen (Karotte) <b>(Stehen)</b></option> <option value="drk=2,sit"<?php if($get_action == 'drk=2,sit'){ ?> selected="selected"<?php } ?>>Essen (Karotte) <b>(Sitzen)</b></option> <option value="drk=3"<?php if($get_action == 'drk=3'){ ?> selected="selected"<?php } ?>>Essen (Eis) <b>(Stehen)</b></option> <option value="drk=3,sit"<?php if($get_action == 'drk=3,sit'){ ?> selected="selected"<?php } ?>>Essen (Eis) <b>(Sitzen)</b></option> <option value="drk=5"<?php if($get_action == 'drk=5'){ ?> selected="selected"<?php } ?>>Trinken (Cola) <b>(Stehen)</b></option> <option value="drk=5,sit"<?php if($get_action == 'drk=5,sit'){ ?> selected="selected"<?php } ?>>Trinken (Cola) <b>(Sitzen)</b></option> <option value=""<?php if($get_action == ''){ ?> selected="selected"<?php } ?>>Nichts</option> </select> Gesicht: <select name="gesture"> <option value="sml"<?php if($get_gesture == 'sml'){ ?> selected="selected"<?php } ?>>Lächeln</option> <option value="sad"<?php if($get_gesture == 'sad'){ ?> selected="selected"<?php } ?>>Traurig</option> <option value="agr"<?php if($get_gesture == 'agr'){ ?> selected="selected"<?php } ?>>Böse</option> <option value="srp"<?php if($get_gesture == 'srp'){ ?> selected="selected"<?php } ?>>Erstaunt</option> <option value="spk"<?php if($get_gesture == 'spk'){ ?> selected="selected"<?php } ?>>Sprechen</option> <option value=""<?php if($get_gesture == ''){ ?> selected="selected"<?php } ?>>Normal</option> </select> <br> Ausrichtung: <select name="direction"> <option value="8"<?php if($get_direction == '8'){ ?> selected="selected"<?php } ?>>Rechts (oben)</option> <option value="1"<?php if($get_direction == '1'){ ?> selected="selected"<?php } ?>>Rechts</option> <option value="2"<?php if($get_direction == '2'){ ?> selected="selected"<?php } ?>>Rechts (unten)</option> <option value="4"<?php if($get_direction == '4'){ ?> selected="selected"<?php } ?>>Links (unten)</option> <option value="5"<?php if($get_direction == '5'){ ?> selected="selected"<?php } ?>>Links</option> <option value="6"<?php if($get_direction == '6'){ ?> selected="selected"<?php } ?>>Links (oben)</option> <option value="7"<?php if($get_direction == '7'){ ?> selected="selected"<?php } ?>>Oben</option> <option value="3"<?php if($get_direction == '3'){ ?> selected="selected"<?php } ?>>Unten</option> </select> Kopf Ausrichtung: <select name="h_direction"> <option value="8"<?php if($get_h_direction == '8'){ ?> selected="selected"<?php } ?>>Rechts (oben)</option> <option value="1"<?php if($get_h_direction == '1'){ ?> selected="selected"<?php } ?>>Rechts</option> <option value="2"<?php if($get_h_direction == '2'){ ?> selected="selected"<?php } ?>>Rechts (unten)</option> <option value="4"<?php if($get_h_direction == '4'){ ?> selected="selected"<?php } ?>>Links (unten)</option> <option value="5"<?php if($get_h_direction == '5'){ ?> selected="selected"<?php } ?>>Links</option> <option value="6"<?php if($get_h_direction == '6'){ ?> selected="selected"<?php } ?>>Links (oben)</option> <option value="7"<?php if($get_h_direction == '7'){ ?> selected="selected"<?php } ?>>Oben</option> <option value="3"<?php if($get_h_direction == '3'){ ?> selected="selected"<?php } ?>>Unten</option> </select> <input type="submit" name="edit" value="Bearbeiten"> <input type="Hidden" name="staff_id" value="<?php echo $row[1]; ?>"> <br /> <hr> </form> <?php } ?> <form action='<?php echo $path; ?>/hk_staff.php' method='post'> <br/> <br/> <input type="text" name="name_add" placeholder="Username"> <input type="submit" name="add" value="Hinzufügen"> <br/> <br/> <input type="text" name="name_del" placeholder="Username"> <input type="submit" name="del" value="Löschen"> </form> </div> </tr> </table> </div> </div> </div> </div> </div> </div> </div> <div class='tableborder'> <div id="container"> <div id="content" style="position: relative" class="clearfix"> <div id="column1" class="column"> <script> <?php while($row = mysql_fetch_row($sql_1)){ $userdata = mysql_fetch_row(mysql_query("SELECT look,online,working,motto,rank,geschichte FROM users WHERE id = '".$row[1]."'")); ?> function getInfos<?php echo $row[1]; ?>() { document.getElementById("inffos").innerHTML = '<img src="<?php echo $avatar.$userdata[0]; ?>&direction=4&head_direction=3&action=wav&gesture=sml" style="float:right;"><?php if (HoloText($userdata['4']) > 6){ ?><strong><span style="color: red; text-shadow: red 3px 3px 10px;"><sup>ADM</sup><?php echo $row[0]; ?></span></strong><?php } ?> <?php if (HoloText($userdata['4']) == 6){ ?><strong><span style="color: orange; text-shadow: orange 3px 3px 10px;"><sup>CM</sup><?php echo $row[0]; ?></span></strong><?php } ?> <?php if (HoloText($userdata['4']) == 5){ ?><strong><span style="color: #73d500; text-shadow: #73d500 3px 3px 10px;"><sup>MOD</sup><?php echo $row[0]; ?></span></strong><?php } ?></B><br><br><b>Mission:</b><br>„<em><?php echo HoloText($userdata[3]); ?></em>”<div style="padding:1px;"> <br><b>Aufgabe:</b><br><?php echo HoloText($userdata[2]); ?></span><br /><hr style="color:#dfdfdf" color="#dfdfdf"><b>Über mich:</b><br><?php echo HoloText($userdata[5]); ?><br /><br><?php if (HoloText($userdata['4']) > 6){ ?><?php } ?><?php if (HoloText($userdata['4']) == 6){ ?><?php } ?><?php if (HoloText($userdata['4']) == 5){ ?><?php } ?></div>'; } <?php } ?> function staffinit() { document.getElementById("staffs").innerHTML = '<?php while($row = mysql_fetch_row($sql_2)){ $userdata = mysql_fetch_row(mysql_query("SELECT look,online FROM users WHERE id = '".$row[0]."'")); ?><div style="position:absolute;left:<?php echo $row[2] + 10; ?>px;top:<?php echo $row[3] - 10; ?>px;right:0px;height:90px;width:40px;background-image: url(<?php echo $path; ?>/web-gallery/v2/images/staffs/empty.png);z-index:210" id="animate-<?php echo $row[0]; ?>" onmouseover="getInfos<?php echo $row[0]; ?>();"></div><div id="habbo<?php echo $row[0]; ?>" style="z-index:10;position:absolute;top:-40px;left:<?php echo $row[2]; ?>px;opacity:<?php if($userdata[1] == "0"){ echo"0.5"; } else { echo"1"; } ?>"><img src="<?php echo $avatar.$userdata[0].$row[1]; ?>" /><br><div style="margin:auto;"><img src="<?php echo $path; ?>/web-gallery/images/myhabbo/habbo_<?php if($userdata[1] == "0"){ echo"offline"; } else { echo"online_anim"; } ?>_big.gif" /></div></div><?php } ?>'; <?php while($row = mysql_fetch_row($sql_3)){ ?> $("#habbo<?php echo $row[0]; ?>").animate({ top: "<?php echo $row[1]; ?>px"},900); <?php } ?> } </script> <div class="cb clearfix green " style="z-index:999;width:300px;position:absolute;left:-150px;top:20px;"><div class="bt"><div></div></div><div class="i1"><div class="i2"><div class="i3"> <div class="box-tabs-container clearfix"> </div> <div id="inffos" style="padding-left:4px;"> <center><p><b><?php echo $sitename; ?> Staffs</b></p> <p>Leicht unsichtbare Staffs sind offline, gut sichtbare Staffs sind online. Wenn du mehr Infos über einen Staff haben möchtest, klicke ihn an!!</p></center> </div> </div> </div> </div> <div class="bb"> <div> </div> </div> </div> <img style="margin-top:10px;margin-left:80px;z-index:1;" src="<?php echo $path; ?>/Garten.png" /> <div id="staffs"> </div> <script type="text/javascript"> staffinit(); </script> </div> </div> </div> </div>
-
Hier bitteschön mein Sohn
Spoiler anzeigen
PHP
Alles anzeigenErfolgreich gelöscht!"; } else { echo "Der User ist in der Staffliste nicht vorhanden!"; } } else { echo "Dieser User existiert nicht!"; } } if($_POST['add']){ $staff_info_query = "SELECT * FROM users WHERE username = '".FilterText($_POST['name_add'])."'"; $staff_info_result = mysql_query($staff_info_query); $staff_info_array = mysql_fetch_assoc($staff_info_result); $staff_uid = $staff_info_array['id']; $check = mysql_query("SELECT id FROM users WHERE username = '".FilterText($_POST['name_add'])."'"); if(mysql_num_rows($check) == "1"){ $row = mysql_fetch_row($check); $check2 = mysql_query("SELECT userid FROM cms_staffpage WHERE userid = '".$row[0]."'"); if(mysql_num_rows($check2) < 1){ mysql_query("INSERT INTO `cms_staffpage` VALUES ('0','0','0','".$staff_uid."','".FilterText($_POST['name_add'])."')"); echo "Erfolgreich hinzugefügt!"; } else { echo "Dieser User ist bereits in der Staffliste!"; } } else { echo "Dieser User existiert nicht!"; } } $sql_1 = mysql_query("SELECT username,userid,figure FROM cms_staffpage ORDER BY userid"); $sql_2 = mysql_query("SELECT userid,figure,leftpx,toppx FROM cms_staffpage ORDER BY userid"); $sql_3 = mysql_query("SELECT userid,toppx FROM cms_staffpage ORDER BY userid"); $sql_4 = mysql_query("SELECT username,userid,leftpx,toppx,figure FROM cms_staffpage"); require_once('./templates/community_subheader.php'); ?> Staffs bearbeiten : Abstand Links: Abstand Oben: Aktion: selected="selected">Winken selected="selected">Gehen selected="selected">Sitzen selected="selected">Tanzen & Winken selected="selected">Sitzen & Winken selected="selected">Trinken (Kaffe) (Stehen) selected="selected">Trinken (Kaffe) (Sitzen) selected="selected">Trinken (Wasser) (Stehen) selected="selected">Trinken (Wasser) (Sitzen) selected="selected">Essen (Karotte) (Stehen) selected="selected">Essen (Karotte) (Sitzen) selected="selected">Essen (Eis) (Stehen) selected="selected">Essen (Eis) (Sitzen) selected="selected">Trinken (Cola) (Stehen) selected="selected">Trinken (Cola) (Sitzen) selected="selected">Nichts Gesicht: selected="selected">Lächeln selected="selected">Traurig selected="selected">Böse selected="selected">Erstaunt selected="selected">Sprechen selected="selected">Normal Ausrichtung: selected="selected">Rechts (oben) selected="selected">Rechts selected="selected">Rechts (unten) selected="selected">Links (unten) selected="selected">Links selected="selected">Links (oben) selected="selected">Oben selected="selected">Unten Kopf Ausrichtung: selected="selected">Rechts (oben) selected="selected">Rechts selected="selected">Rechts (unten) selected="selected">Links (unten) selected="selected">Links selected="selected">Links (oben) selected="selected">Oben selected="selected">Unten function getInfos() { document.getElementById("inffos").innerHTML = '&direction=4&head_direction=3&action=wav&gesture=sml" style="float:right;"> 6){ ?>ADM CM MOD Mission: „” Aufgabe: Über mich: 6){ ?>'; } function staffinit() { document.getElementById("staffs").innerHTML = 'px;top:px;right:0px;height:90px;width:40px;background-image: url(/web-gallery/v2/images/staffs/empty.png);z-index:210" id="animate-" onmouseover="getInfos();">" style="z-index:10;position:absolute;top:-40px;left:px;opacity:">" /> /web-gallery/images/myhabbo/habbo__big.gif" />'; $("#habbo").animate({ top: "px"},900); } Staffs Leicht unsichtbare Staffs sind offline, gut sichtbare Staffs sind online. Wenn du mehr Infos über einen Staff haben möchtest, klicke ihn an!! staffinit();
-
#closed
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!