|
You last visited: Today at 19:55
Advertisement
Shakes & Fidget Private - Full Script (Tulyita)
Discussion on Shakes & Fidget Private - Full Script (Tulyita) within the Browsergames forum part of the Other Online Games category.
06/21/2014, 09:37
|
#751
|
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
|
You leak my codes :O
|
|
|
06/21/2014, 09:53
|
#752
|
elite*gold: 0
Join Date: Mar 2014
Posts: 216
Received Thanks: 22
|
Dik eptun do requestu přidáno
|
|
|
06/21/2014, 10:09
|
#753
|
elite*gold: 0
Join Date: May 2014
Posts: 93
Received Thanks: 74
|
Quote:
Originally Posted by EptunLP
Code for lost password:
PHP Code:
case $ACT_FORGOT_PASSWORD : /* Deleted */
|
This is the code released in the release of jessi that, moreover, we have worked there and she .. I've pretty much just changed the message, then you would not even have had the courage to post it. it is a shame
Reply: Thank's for deleted code.
|
|
|
06/21/2014, 10:45
|
#754
|
elite*gold: 0
Join Date: Mar 2014
Posts: 216
Received Thanks: 22
|
:d i haved
|
|
|
06/21/2014, 11:14
|
#755
|
elite*gold: 0
Join Date: Nov 2013
Posts: 167
Received Thanks: 57
|
Krejcomut steals everything , and wants everything for free
|
|
|
06/21/2014, 11:33
|
#756
|
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
|
...
PHP Code:
case $ACT_FORGOT_PASSWORD : // name;mail // original by Crasim & Jessi 04.06. // fixed special-char-related errors by injection-fix 15.06. by Jessi // tweaked by Jessi 17.06 $in = explode ( ';', $action_extra ); if(filter_var($in[1], FILTER_VALIDATE_EMAIL) == TRUE) { $qry = $db->prepare ( "SELECT email FROM user_data WHERE user_name = :username LIMIT 1" ); $qry->bindParam ( ':username', $in[0]); $qry->execute (); $udata = $qry->fetchAll (); if ($udata [0] ['email'] != urlencode(strtolower($in[1]))) { $ret = array ( $ERR_EMAIL_WRONG ); break; } else { function generatePW($length=8) { $dummy = array_merge(range('0', '9'), range('a', 'z'), range('A', 'Z')); mt_srand((double)microtime()*1000000); for ($i = 1; $i <= (count($dummy)*2); $i++) { $swap = mt_rand(0,count($dummy)-1); $tmp = $dummy[$swap]; $dummy[$swap] = $dummy[0]; $dummy[0] = $tmp; } return substr(implode('',$dummy),0,$length); } $password = generatePW(); $qry2 = $db->prepare ( "UPDATE user_data SET password = :password WHERE user_name = :username LIMIT 1" ); $qry2->bindParam ( ':password', md5($password)); $qry2->bindParam ( ':username', $in[0]); $qry2->execute (); $head1 = 'From: "PSFGame" <> \r\n'; $head2 = "Dein neues Passwort \r\n"; $subject = "PSFGame"; $message = "Username: ".$in[0]."\nPassword: ".$password; $ret = array (mail($in[1], $subject, $message, $head1.$head2)); } } else { $ret = array ( $ERR_EMAIL_WRONG ); break; } break;
|
|
|
06/21/2014, 11:34
|
#757
|
elite*gold: 28
Join Date: Jun 2014
Posts: 514
Received Thanks: 31
|
Needs this vserver ? or is working with a free webspace?
|
|
|
06/21/2014, 11:38
|
#758
|
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
|
this need a mail-deamon like postfix
alternative you can recode it to use a SMTP-script
|
|
|
06/21/2014, 11:39
|
#759
|
elite*gold: 0
Join Date: Mar 2014
Posts: 216
Received Thanks: 22
|
eptun sell script for money . Your script on sell was free idk what now ******* . And i not steal . This go say flash
|
|
|
06/21/2014, 11:55
|
#760
|
elite*gold: 0
Join Date: Apr 2014
Posts: 226
Received Thanks: 27
|
Quote:
Originally Posted by krejcomut
eptun sell script for money . Your script on sell was free idk what now ******* . And i not steal . This go say flash
|
What script do you mean?
|
|
|
06/21/2014, 12:18
|
#761
|
elite*gold: 0
Join Date: Mar 2014
Posts: 216
Received Thanks: 22
|
HE come on my forum and try sell scrpt what for free
|
|
|
06/21/2014, 13:23
|
#762
|
elite*gold: 0
Join Date: May 2011
Posts: 20
Received Thanks: 6
|
Quote:
Originally Posted by Crasim
I've also tried to add strings ban, but from what I have been able to "verify" you have to change the swf game
|
If i remember right it was something in MainTimeline.as script... which get bugged when decompile and cannot compile again the .fla file. I have tried to edit it becouse of crossdomain.xml link but without success.
|
|
|
06/21/2014, 13:36
|
#763
|
elite*gold: 0
Join Date: Nov 2013
Posts: 167
Received Thanks: 57
|
Krejcomut, i was not selling you crasim dungeon reset but mine!!!
|
|
|
06/21/2014, 13:52
|
#764
|
elite*gold: 0
Join Date: May 2011
Posts: 20
Received Thanks: 6
|
Beers Reset Script
Here something from me. I used MySQL Improved (mysqli) for all query.
payment/beers.php
<?php
$link = mysqli_connect("hostname", "username", "password", "database");
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$time = date_timestamp_get(date_create());
$pid = $_GET['player'];
if(isset($pid))
{
$uid = mysqli_real_escape_string($link,$pid);
$row = mysqli_fetch_array(mysqli_query($link,"SELECT user_name, next_breset, mushroom, ssid FROM user_data WHERE user_id='". $uid ."' LIMIT 1"));
$username = mysqli_real_escape_string($link,$row['user_name']);
$next = mysqli_real_escape_string($link,$row['next_breset']);
$shrooms = mysqli_real_escape_string($link,$row['mushroom']);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="de" dir="ltr">
<title>Beers 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="robots" content="noindex,nofollow,noarchive">
<link rel="stylesheet" href="css.css" type="text/css"/>
</head>
<body>
<center>
<table align="center" width="570px" style="font-family: Arial; 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"]))
{
if($next <= $time || $next == "0")
{
?>
<center>
<h1>Hello <b><?=$username?></b>!</h1>
Reset your beers so u can continue your adventure!<br>
Tavern owner needs <?=$shrooms;?>/50 to reset you!<br>
If you don't have them you will not be reseted!<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="Ok!" name="button">
<input type="hidden" name="doit" value="yes">
<input type="hidden" name="uid" value="<?=$uid?>">
</form>
</center>
<?php
}
else
{
?>
<center>
<h2>I'm sorry <b><?=$username?></b>!</h2>
<p>Your next reset will be available at: <?echo date('d.m.Y H:i:s', $next); /*Convert timestamp to GMT*/?></p>
</center>
<?php
}
}
if(isset($_POST["doit"]))
{
$userid = $_POST["uid"];
$pass = $_POST["password"];
$row = mysqli_fetch_array(mysqli_query($link,"SELECT password,next_breset FROM user_data WHERE user_id='". $userid ."' LIMIT 1"));
if($row["password"] == md5($pass))
{
$next = $time+21600;
mysqli_query($link,"UPDATE user_data
SET next_breset = '" . $next . "', beers = '0', mushroom = mushroom-50 WHERE user_id = '" . $userid . "' LIMIT 1");
echo '<script>window.close();</script><META HTTP-EQUIV="REFRESH" CONTENT="0; URL=../">';
}
else
{
echo '<script>window.close();</script><META HTTP-EQUIV="REFRESH" CONTENT="0; URL=../">';
}
}
?>
</div>
</td>
</tr>
</tbody>
</table>
</center>
</body>
</html>
and css.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);
}
in papaya_cfg.php
link button 9 text Reset Beers
link button 9 hint Reset Beers. It will cost you 50 mushrooms!
link button 9 request
link button 9 link http://<$serverdomain>/payment/beers.php?player=<$playerid>
link button 9 function
Also if anyone needs it improvement for arena. It doesn't allow to attack players with range below/above 10 levels from you.
Find // check times in request.php and after
Code:
else {
$time += 600;
}
add these lines
Code:
if ($op ['lvl'] < $p1 ['lvl']-10 || $op ['lvl'] > $p1 ['lvl']+10) {
$ret = array (
$ERR_FIGHT_PLAYER
);
break;
}
Also find
Code:
$ERR_DEALER_AKTION = "175";
and below add
Code:
$ERR_FIGHT_PLAYER = "E310";
it will return "Nothing happens."
Forgot to mention that beers reset script is based on Crasim dungeon reset script so 90% of credits go to him.
|
|
|
06/21/2014, 13:59
|
#765
|
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
|
replace:
PHP Code:
http://localhost/payment/beers.php
with:
PHP Code:
<?=$_SERVER["PHP_SELF"] ?>
|
|
|
Similar Threads
|
Shakes & Fidget Private - Final Script (Tower, Toilet, Witch, Epic)
04/23/2014 - Browsergames - 179 Replies
http://www.elitepvpers.com/forum/browsergames-trad ing/3227782-shakes-fidget-private-request-php-toil et-epics-etc.html
//closed
|
Shakes and Fidget Acc. Full Epic
09/28/2012 - Browsergames Trading - 0 Replies
Hallo,
Ich verkaufe hier einen shakes and fidget acc. level 123 auf dem deutschen server 2.
Er ist full epic bis auf die waffe.
Und er ist Kundi, nur eine 25€ paysafecard.
|
All times are GMT +2. The time now is 19:55.
|
|