[Code]Reset dungeon + guild dungeon By : Crasim Edit : Krejcomut

06/17/2014 14:55 krejcomut#1
PHP Code:
<?php 
include('../functions.php'); 


if(isset(
$_GET['player'])) 

    
$uid mysql_real_escape_string($_GET['player']); 
    
$row mysql_fetch_array(mysql_query("SELECT user_name FROM user_data WHERE user_id='"$uid ."' LIMIT 1")); 
    
$username $row['user_name']; 

?> 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html lang="de" dir="ltr"> 
<title>Dungeon Reset</title> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<meta http-equiv="expires" content="0"> 
<meta http-equiv="cache-control" content="no-cache"> 
<meta http-equiv="pragma" content="no-cache"> 
<meta name="author" content="Playa Games GmbH"> 
<meta name="publisher" content="Playa Games GmbH"> 
<meta name="copyright" content="Copyright 2011 Playa Games GmbH"> 
<meta name="keywords" content="browser games, browsergames, mmorpg, online game, online games, online games kostenlos, online rollenspiel, online rollenspiele, onlinegames, onlinespiel, browsergame, browsergames kostenlos, browserspiele, kostenlose mmorpg, mmorpg online games"> 
<meta name="description" content="Das lustige Shakes & Fidget Spiel"> 
        <style type="text/css"> 
            body { 
                background:url(../res/background.jpg); 
                background-repeat:no-repeat; 
                background-position:top center; 
                background-color:#000000; 
                font-family: Tahoma, Arial, Helvetica, sans-serif; 
                color: #FFFFFF; 
                margin: 188px auto auto 0; 
            } 
            a:link { text-decoration:none; color:#ffd9aa; } 
            a:visited { text-decoration:none; color:#ffd9aa; } 
            a:hover { text-decoration:underline; color:#ffd9aa; } 
            a:active { text-decoration:none; color:#ffd9aa; } 
            a:focus { text-decoration:none; color:#ffd9aa; } 
            h1{ 
                font-size: 1.2em; 
                font-weight: bold; 
                padding:0; 
                margin:0; 
                margin-bottom: 0.5em; 
            } 
            .imprint2 { 
                             margin-top: 130px; 
                            color: #000000; 
                        } 
            .imprint2 a { 
                            color: #000000; 
                            text-decoration: underline; 
                        } 
    input[type=text], textarea, input[type=password] { 
    border: 1px solid #929292; 
    color: #929292; 
    padding: 10px; 
    vertical-align: text-top; 
    width: 300px; 
    -webkit-box-shadow: #e3e3e3 0.1em 0.1em 0.2em; 
    box-shadow: #e3e3e3 0.1em 0.1em 0.2em; 
    -moz-box-shadow: #e3e3e3 0.1em 0.1em 0.2em; 
    -webkit-border-radius: 5px; 
    -moz-border-radius: 5px; 
    -border-radius: 5px; 
    -khtml-border-radius: 5px; 
    background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));   
    background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);  

input[type=submit] { 
    border: 1px solid #929292; 
    color: #000; 
    font-weight: bold; 
    padding: 10px; 
    vertical-align: text-top; 
    width: auto; 
    -webkit-box-shadow: #e3e3e3 0.1em 0.1em 0.2em; 
    box-shadow: #e3e3e3 0.1em 0.1em 0.2em; 
    -moz-box-shadow: #e3e3e3 0.1em 0.1em 0.2em; 
    -webkit-border-radius: 5px; 
    -moz-border-radius: 5px; 
    -border-radius: 5px; 
    -khtml-border-radius: 5px; 
    background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));   
    background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);  
 } 
        </style> 


</head>  
<body> 
    <center> 
    <table align="center" width="570px" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF;"> 
        <tbody> 
            <tr>  
                <td style="padding: 0; margin:0"> 
                    <div style="overflow: auto; height: 360px; padding: 10px"> 
                    <br><br><br> 
<?php 
if(!isset($_POST["doit"])) 

?> 
                    <center> 
                    <h1>Hi <b><?=$username?></b>!</h1> 
                    <br> 
                    You are about to reset all dungeons. To confirm please enter your password. 
                    <br><br> 
                    <form action="<?=$_SERVER["PHP_SELF"?>" method="post" enctype="multipart/form-data" target="_self"> 
                        <input type="password" name="password" size="10" value=""><br><br> 
                        <input type="submit" value="Confirm!" name="button"> 
                        <input type="hidden" name="doit" value="yes" /> 
                        <input type="hidden" name="uid" value="<?=$uid?>" /> 
                    </form> 
                    </center> 
                     
<?php 



if(isset(
$_POST["doit"])) 

    
$userid $_POST["uid"]; 
    
$pass $_POST["password"]; 
    
$row mysql_fetch_array(mysql_query("SELECT password FROM user_data WHERE user_id='"$userid ."' LIMIT 1")); 


    if(
$row["password"] == md5($pass)) 
    { 
        
mysql_query("UPDATE user_data  
                    SET dungeon_1 = '0' , dungeon_2 = '0', dungeon_3 = '0', dungeon_4 = '0', dungeon_5 = '0', dungeon_6 = '0', dungeon_7 = '0', dungeon_8 = '0', dungeon_9 = '0', dungeon_10 = '0', dungeon_11 = '0', dungeon_12 = '0', dungeon_13 = '0', tower_level = '1', guild_level = '1'   
                    WHERE user_id = '" 
$userid "' LIMIT 1"); 
        echo 
'<script>window.close();</script>'// for new browser
echo '<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=../">'// for old browser   
    

    else 
    { 
        echo 
'<script>window.close();</script>'// for new browser
echo '<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=../">'// for old browser  
    


?> 
                    </div> 
                </td> 
            </tr> 
        </tbody> 
    </table> 
    </center> 
</body> 
</html>
06/17/2014 15:28 UND3RW0RLD#2
PHP Code:
 mysql_query("UPDATE user_data   
                    SET dungeon_1 = '0' , dungeon_2 = '0', 
dungeon_3 = '0', dungeon_4 = '0', dungeon_5 = '0', 
dungeon_6 = '0', dungeon_7 = '0', dungeon_8 = '0', 
dungeon_9 = '0', dungeon_10 = '0', dungeon_11 = '0',
 dungeon_12 = '0', dungeon_13 = '0', tower_level = '1', 
guild_level = '1'    
                    WHERE user_id = '" 
$userid "' LIMIT 1"); 
PHP Code:
guild_level '1' 
xDDD
06/17/2014 15:35 krejcomut#3
:D work good
06/17/2014 15:41 TheCry#4
This is code only for reset dung?
06/17/2014 16:15 Slo_Mato#5
for what game is that?
06/17/2014 16:32 krejcomut#6
shakes and fidget
06/17/2014 22:11 Denetiv#7
How can i use that?
06/18/2014 09:30 krejcomut#8
must have reset from crasim and paste to dungeon.php
06/18/2014 09:41 UND3RW0RLD#9
Quote:
Edit : Krejcomut
What did you edit?

PHP Code:
guild_level '1' 
this isn't worth a new thread or to put YOUR name to it..
06/18/2014 10:45 krejcomut#10
nobody cares it