• PUDN用户
  • Visual C++
  • 9.8MB
  • rar
  • 0
  • 1 积分
  • 17
  • 2015-05-04 02:49
darkeden website for v8 version
<?php session_start(); include "configuralation.php"; $user = $_SESSION['user']; $accountid = $_GET['id']; list($logged) = mysql_fetch_row(mysql_query("SELECT `LogOn` FROM `Player` WHERE `PlayerID` = '$user'")); if($_SESSION['user']){ //ALTERAR INFORMAÇÕES $alterinfo = mysql_fetch_assoc(mysql_query("SELECT *FROM `Player` WHERE PlayerID = '$user'")); $name = $alterinfo['Name']; $email = $alterinfo['Email']; $pins = $alterinfo['SSN']; $pontos = $alterinfo['ShopPoints']; $user = $_SESSION['user']; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" href="css/style.css" type="text/css" media="all"/> <link rel="stylesheet" href="css/estilos.css" type="text/css" media="all" /> <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="js/fns.js" type="text/javascript"></script> <script type="text/javascript"> function habilitar(){ if(document.getElementById('check').checked){ document.getElementById('pass').disabled = false; } else { document.getElementById('pass').disabled = true; } if(document.getElementById('check').checked){ document.getElementById('pass2').disabled = false; } else { document.getElementById('pass2').disabled = true; } if(document.getElementById('check').checked){ document.getElementById('pin').disabled = false; } else { document.getElementById('pin').disabled = true; } } </script> </head> <body> <body> <!-- Page --> <div id="page" class="shell"> <!-- Header --> <div id="header"> <div class="cl">&nbsp;</div> <!-- Logo --> <div id="logo"> </div> <!-- / Logo --> <?php include "engines/logo.php"; ?> <div class="cl">&nbsp;</div> <?php include "engines/menu.php"; ?> </div> <!-- / Header --> <!-- Main --> <div id="main"> <div id="main-bot"> <div class="cl">&nbsp;</div> <!-- Content --> <div id="content"> <div class="block"> <div class="block-bot"> <div class="head"> <div class="head-cnt"> <h3><?php $capture = $_GET['id']; if($capture == "AlterPass"){ $text = "Alter Password"; echo $text;}elseif($capture == "CharacterTrading"){ $text = "Trading Character"; echo $text; }elseif($capture == "characterselectconvert"){ $text = "Select Character where have Beads is Pendents"; echo $text; } ?> <title>DarkEden BloodMoon - <?php echo $text; ?></title> <div class="cl">&nbsp;</div> </div> </div> <div class="col-articles articles"> <div class="cl">&nbsp;</div> <?php if(isset($_POST['alteraction'])){ $pwds = $_POST['alterpass']; $pwds1 = $_POST['alterpass2']; $pin = $_POST['pin']; if($pwds == ""){ echo "<script language='javascript'> alert('Password empty!') history.back(1) </script>"; }elseif($pwds1 == ""){ echo "<script language='javascript'> alert('Repeat Password Empty!') history.back(1) </script>"; }elseif($pin == ""){ echo "<script language='javascript'> alert('Pin Empty!') history.back(1) </script>"; }elseif($pin == $pins){ if($pwds != $pwds1){ echo "<script language='javascript'> alert('Passwords diferent!') history.back(1) </script>"; }else{ mysql_query("UPDATE Player SET `Password` = PASSWORD('{$pwds}') WHERE `PlayerID` = '$user' AND SSN = '$pin'"); echo "<script language='javascript'> alert('Password Alter Sucessfully!') location.replace('index.php') </script>"; } }else{ echo "<script language='javascript'> alert('Invalide Pin!') history.back(1) </script>"; } } if($capture == "AlterPass"){ ?> <div id="alterinfo" align="center"> <br /> <form action="" method="post"> <table> <tr> <td align="right">New Password: <input type="checkbox" id="check" onclick="habilitar();" title="alter password" /></td> <td><input type="password" maxlength="13" name="alterpass" id="pass" disabled/></td> </tr> <tr> <td align="right">Repeat New Password:</td> <td><input type="password" maxlength="13" name="alterpass2" id="pass2" disabled/></td> </tr> <tr> <td align="right">Pin Number:</td> <td><input type="password" maxlength="6" name="pin" id="pin" disabled/></td> </tr> <tr> <td align="right"></td> <td><input type="submit" name="alteraction" value="OK"/></td> </tr> </table> </form> </div> <?php //END ALTER PASSWORD }elseif($capture == "CharacterTrading"){ $pegaid = mysql_query("SELECT *FROM Slayer WHERE PlayerID = '$user'"); ?> <div id="descridepage"> <strong>To make a trade character, you need 30 million golds, and it is necessary that the other account is confirmed the trade.</strong> </div> <br /> <form action="" method="post"> <table> <tr> <td>Character:</td> <td><input name="character" type="text" size="20" maxlength="10" />Enter the name of the character you want to send the request to trade char.</td> </tr> <tr> <td>Your Character:</td> <td><select name="character"> <?php while($ars = mysql_fetch_assoc($pegaid)){ $char = $ars['Name']; $race = $ars['Race']; echo "<option value=\"$char\">$race - $char</option>"; } ?> </select> <input type="submit" value="OK" name="finalchar" /></td> </tr> </table> <br /> </form> <center><h3>Solicita&ccedil;&otilde;es</h3></center> <table> <tr> <td width="100">Race</td> <td>Char</td> </tr> <form action="acepttrading" method="post"> </form> </table> <?php }elseif($accountid == "EventsConverts"){ ?> <title>DARKEDEN BLOODMOON - EVENTS CONVERTS</title> <table> <tr> <td width="150">Bathory Beads </td> <td width="50"><?php echo $vbathorybeads; ?></td> </tr> <tr> <td>Bathory Pendents </td> <td><?php echo $vbathorypendents; ?></td> </tr> <tr> <td>Tepez Beads </td> <td><?php echo $vtepezbeads; ?></td> </tr> <tr> <td>Tepez Pendents </td> <td><?php echo $vtepezpendents; ?></td> </tr> <tr> <td>Gemstone</td> <td><?php echo $vgemstone; ?></td> </tr> <tr> <td>Gilles de Rais Beads </td> <td><?php echo $vgillesbeads; ?></td> </tr> <tr> <td>Gilles de Rais Pendents </td> <td><?php echo $vgillespendents; ?></td> </tr> </table> <table> <tr> <td><a href="functions.php?id=characterselectconvert" rel='nofollow' onclick='return false;'>Convert Beads e Pendents</a></td> </tr> </table> <?php }elseif($accountid == "characterselectconvert"){ ?> <title>DARKEDEN BLOODMOON - SELECT CHARACTER</title> <div id="character_select"> <table> <tr> <td>Select Character : &nbsp;&nbsp; </td> <td> <?php $pegaid = mysql_query("SELECT *FROM Slayer WHERE PlayerID = '$user'"); ?> <form action="functions.php?id=convert" method="post"> <select name="character"> <?php while($ars = mysql_fetch_assoc($pegaid)){ $char = $ars['Name']; $race = $ars['Race']; echo "<option value=\"$char\">$race - $char</option>"; } ?> </