Jump to content
MakeWebGames

jay-dogg2009

Members
  • Posts

    38
  • Joined

  • Last visited

Everything posted by jay-dogg2009

  1. It's Located in IPLISTNER.php file.
  2. As most of you are awaer that that announced on the 14th the The flaw in SSL 3.0. As most have already updated there servers, paypal will not automaticly credit your players, to fix this. Find: public $force_ssl_v3 = true;   Replace with:   public $force_ssl_v3 = false;   If you use a server hosting compay your server would of already been updated, but if your a dedicated server owner, or a VPS customer you wil have to fix it yourself, to fix this: . The only thing you have to do is perform an yum update   It will automatically download and update a backported version of openssl-1.0.1e-16.el6_5.7 which has been patched by RedHat with heartbeat disabled. To verify the update simply check the changelog: # rpm -q --changelog openssl-1.0.1e | grep -B 1 CVE-2014-0160 you should see the following: * Mon Apr 07 2014 Tomáš Mráz <[email protected]> 1.0.1e-16.7 - fix CVE-2014-0160 - information disclosure in TLS heartbeat extension. Your server is now fixed.
  3. Hi all im looking for Google wallet as an alternative payment option, How much would it cost?
  4. We have also been looking at the example version of IOS 7 for feature updates. - - - Updated - - - Also we hope in the next few weeks to have a version on amazon store, as well as a better blackberry app.
  5. Yeah i do have examples, Android one has just been updated. Were waiting for apple to review the updated version for IOS as we just updated the icons and fixed optimization. just search "deadly-city" and i know the mobile site its self doesn't look good, but were looking at getting a new template made. were also in the middle of sorting out In-app billing for the removal of Ad mobs ads and in game stuff.
  6. Hi all, I was just wondering, if any one would be interested in having there game ported for IOS, Android. As we all know that mobile apps are the way forward. It was very late last night and it should of read like this. that we have done this, but are only on a research find to see if there would be any interest if we decided to offer this service.
  7. A better way to do this is to have a modal dialog pop up when they visit jobs, prompting them to do the action, once clicked its all updated and doesn't show until the following day.
  8. It's quite nice to be able to post and not be slated for what you have written. makes a change, this forum use to be, so great back in its hey day.
  9. if i was you i would update the all the mysql_query to mysqi_query , since your using $db-> for the query in V2 you can just update the database file. as mysql_query is being made redundant is 5.6, so might as well change, if your going thought the files ready for it, it will be a while before its launched but may as well be ready.
  10. yeah got your replies thank you
  11. Ive just re registered with them and iopen a support ticket about it with all information about transaction for 2006 lol been such a long time XD
  12. lol cant login XD none of the emails i have work for the resend password was like in 2006 and they changed site so many times lol but on the licensing side it says invalid
  13. tell a lie lol i finally found it was under different pay pal Addy. i have the proof mines legit but your system says im not....
  14. so what happens if you brought a license in 2006 and it doesn't show up what have you got in place for that ?? as paypal logs don't even go back that far ?
  15. is global_func.php included with in your cron as thats where the event add function is??
  16. a revamp of the code i decided to add a few more featuers to the system Last 5 lottery results and as i use 25 titckets to be bought it will also show the last 25 tickets bought as well now here the code:   <?php include_once(DIRNAME(__FILE__) ."/globals.php"); ?> <script langauge = "javascript" type = "text/javascript"> var ticked = new Array(); function tickBox(val) { var theid = "id" + val; if(document.getElementById(theid).checked == true) { ticked.push(theid); } else if(document.getElementById(theid).checked == false) { for(var sp = 0; sp < ticked.length; sp++) { if(ticked[sp] == theid) { ticked.splice(sp,1); } } } if(ticked.length >= 6) { for(var count = 1; count < 47; count++) { var countID = "id" + count; if(document.getElementById(countID).checked == false) { document.getElementById(countID).disabled = true; } document.getElementById("submit").disabled = false; } } else if(ticked.length < 6) { for(var count = 1; count < 47; count++) { var countID = "id" + count; document.getElementById(countID).disabled = false; } document.getElementById("submit").disabled = true; } } function formReset() { for(var n = 1; n < 47; n++) { var id = "id" + n; document.getElementById(id).checked = false; document.getElementById(id).disabled = false; } document.getElementById("dip").disabled = false; document.getElementById("submit").disabled = true; document.getElementById("luckysub").checked = false; document.getElementById("hiddenNums").value = ""; ticked.splice(0,ticked.length); } function luckyDip() { var luckyarr = new Array(); for(var d = 1; d < 47; d++) { var did = "id" + d; document.getElementById(did).checked = false; document.getElementById(did).disabled = true; } for(var c = 1; c < 7; c++) { var box = Math.floor((46)*Math.random()) + 1; var boxid = "id" + box; if(document.getElementById(boxid).checked == false) { document.getElementById(boxid).checked = true; luckyarr.push(box); } else { box = Math.floor((46)*Math.random()) + 1; boxid = "id" + box; while(document.getElementById(boxid).checked == true) { box = Math.floor((46)*Math.random()) + 1; boxid = "id" + box; } document.getElementById(boxid).checked = true; luckyarr.push(box); } } document.getElementById("dip").disabled = true; document.getElementById("luckysub").checked = true; document.getElementById("submit").disabled = false; document.getElementById("hiddenNums").value = luckyarr; } </script> <style type = "text/css"> .lotnum { width: 100%; text-align: center; font-size: 10px; } .checkbox, .radio { width: 19px; height: 25px; padding: 0 5px 0 0; background: url(checkbox.gif) no-repeat; display: block; clear: left; float: left; } .radio { background: url(radio.gif) no-repeat; } .select { position: absolute; width: 158px; /* With the padding included, the width is 190 pixels: the actual width of the image. */ height: 21px; padding: 0 24px 0 8px; color: #fff; font: 12px/21px arial,sans-serif; background: url(select.gif) no-repeat; overflow: hidden; } #bought { font-size: 20px; font-weight: bold; font-variant: small-caps; } </style> <?php $lotteryDetails = mysql_query("SELECT * FROM lotteryDetails"); $lD = mysql_fetch_object($lotteryDetails); define('TICKETCOST', $lD->lotprice); define('LIMIT', $lD->lotlimit); if(!$_POST['submit']) { $all = mysql_query("SELECT id FROM lotterytickets"); $numall = mysql_num_rows($all); $jackpot = ($numall * TICKETCOST) + $lD->lotjackpot; $yourTicks = mysql_query("SELECT id FROM lotterytickets WHERE userid = ". abs(@intval($ir['userid'])) .""); $numYourTicks = mysql_num_rows($yourTicks); print "<br><b><u><big>National Deadly-City Lottery</big></u></b><table width='100%' class=content_table> <tr><td class='tcell' align=center valign=top><div align = 'center'>"; print "<p>It will cost you ". money_formatter(TICKETCOST) ." to buy one lottery ticket, and you can only have ". number_format(LIMIT) ." tickets at any one time.</p>"; $grammar = ($numYourTicks != 1) ? "tickets" : "ticket"; print "You currently have ". number_format($numYourTicks) ." ". $grammar .".</p>"; print "<p>The current jackpot is at ". money_formatter($jackpot) .".</p>"; print "<p>Select 6 numbers from below or click on Lucky Dip to have them randomly chosen for you!</p>"; print "<form action = 'lottery.php' method = 'POST' name = 'boxes'>"; print "</table><table width='100%' class=content_table>"; $rows = 0; $value = 1; while($rows <= 10) { print "<tr class='trneww2'>"; $cols = 0; while($cols <= 4) { $colclass = $cols+1; $class = ($value % 2 == 0) ? "even" : "odd"; if($value <= 50) { $id = "id".$value; print "<td class='tcell' class = '". $class ."'>". $value ." <input type = 'checkbox' class='styled' name = 'numbers[]' id = '". $id ."' value = '". $value ."' onClick = \"tickBox(this.value);\" /></td>"; $value++; $cols++; } else { $cols++; } } print "</tr>"; $rows++; } print " <tr> <td class='tcell'><input type = 'button' name = 'lucky' id = 'dip' value = 'Lucky Dip' onClick = \"luckyDip();\" /></td> <td class='tcell'><input type = 'button' name = 'resetForm' id = 'resetForm' value = 'Reset' onClick = \"formReset();\" /></td> <td class='tcell' colspan = '2'><input type = 'submit' name = 'submit' id = 'submit' value = 'Buy Ticket' disabled = 'disabled' /></td> <td class='tcell' class = 'luckdip'>Lucky Dip<input type = 'checkbox' name = 'luckysub' value = 'lucky' id = 'luckysub' disabled = 'disabled' /></td> </tr>"; print "</table> <input type = 'hidden' id = 'hiddenNums' name = 'hiddenNums' value = '' /> </form>"; print "</div>"; } else { $tickets = mysql_query("SELECT userid FROM lotterytickets WHERE userid = ". abs(@intval($ir['userid'])) .""); if($_POST['hiddenNums'] == '') { $countNums = count($_POST['numbers']); $numbers = $_POST['numbers']; $lucky = ""; $dip = 0; } elseif($_POST['hiddenNums'] != '') { $explode = explode(",",$_POST['hiddenNums']); $countNums = count($explode); $numbers = $explode; $lucky = "Lucky Dip"; $dip = 1; } if($countNums != 6 || empty($numbers)) { print "<p>You either didn't select any numbers or you didn't select 6 numbers.</p> <p><a href = 'lottery.php'>Back</a></p>"; } elseif($ir['money'] < TICKETCOST) { print "<p>You need to have ". money_formatter(TICKETCOST) ." to buy a lottery ticket.</p> <p><a href = 'lottery.php'>Back</a></p>"; } elseif(mysql_num_rows($tickets) >= LIMIT) { print "<p>You can only have ". number_format(LIMIT) ." lottery tickets at once.</p> <p><a href = 'lottery.php'>Back</a></p>"; } else { sort($numbers); $punct = 0; $store = ""; print "<img src='images/header_18.jpg' alt='' /><div id='content_area'><div id='alert_area'></div><br><p id = 'bought'>Ticket bought!</p>"; print "<p>Your ". $lucky ." numbers are: "; for($i = 0; $i < $countNums; $i++) { $n = abs(@intval($numbers[$i])); if($punct == 5) { $ender = "."; $store .= $n; } else { $ender = ", "; $store .= $n .","; } print $n . $ender; $punct++; } print "</p><p>Good Luck</p><img src='images/header_18.jpg' alt='' /><div id='content_area'><div id='alert_area'></div>"; print "<p><a href = 'lottery.php'>Back</a></p>"; $insertTicket = ("INSERT INTO lotterytickets (id, userid, numbers, bought, luckydip) VALUES('',". abs(@intval($ir['userid'])) .", '". mysql_real_escape_string($store) ."', UNIX_TIMESTAMP(), ". abs(@intval($dip)) .")"); mysql_query($insertTicket) OR die("Could not insert ticket: ". mysql_error()); $takeMoney = ("UPDATE users SET money = money - ". abs(@intval(TICKETCOST)) ." WHERE userid = ". abs(@intval($ir['userid'])) .""); mysql_query($takeMoney) OR die("Could not take money: ". mysql_error()); } } echo' <h1>Recent 5 lottery draws</h1>'; $q=$db->query("SELECT * FROM lotterydone ORDER BY ldTIME DESC LIMIT 5;"); echo' <table class="content_table"> <tr align="center"> <td class="tsub">Lottery Numbers</td> <td class="tsub">Jackpot Amount</td> <td class="tsub"> Non winners</td> <td class="tsub"> 1 No. Non winners</td> <td class="tsub"> 2 No. Non winners</td> <td class="tsub"> 3 No. winners</td> <td class="tsub"> 4 No. winners</td> <td class="tsub"> 5 No. winners</td> <td class="tsub"> 6 No. winners</td> <td class="tsub"> Jackpot winner?</td> <td class="tsub"> Draw date and time</td> </tr> '; while($r=$db->fetch_row($q)) { $fmm = money_formatter($r['ldPOT']); echo'<tr> <td class="tcell">'; echo"{$r['ldNUMBERS']}"; echo'</td> <td class="tcell">'; echo"{$fmm}"; echo'</td> <td class="tcell">'; echo"{$r['ldZERO']}"; echo'</td> <td class="tcell">'; echo"{$r['ldONE']}"; echo'</td> <td class="tcell">'; echo"{$r['ldTWO']}"; echo'</td> <td class="tcell">'; echo"{$r['ldTHREE']}"; echo'</td> <td class="tcell">'; echo"{$r['ldFOUR']}"; echo'</td> <td class="tcell">'; echo"{$r['ldFIVE']}"; echo'</td> <td class="tcell">'; echo"{$r['ldSIX']}"; echo'</td> <td class="tcell">'; echo"{$r['ldPOTWIN']}"; echo'</td> <td class="tcell">'.date('F j Y, g:i:s a',$r['ldTIME']).'</td> </tr>'; } echo' </table>'; echo' <h1>last 25 Broght Lottery tickets</h1>'; $q=$db->query("SELECT * FROM lotterytickets WHERE userid=$userid ORDER BY bought DESC LIMIT 25;"); echo' <table class="content_table"> <tr align="center"> <td class="tsub">Bought Lottery Numbers</td> <td class="tsub">Luckydip ?</td> <td class="tsub"> Bought date and time</td> </tr> '; while($r=$db->fetch_row($q)) { $fmm = money_formatter($r['ldPOT']); if($r['luckydip']== '1') { $img = " YES"; } elseif($r['luckydip']== '0') { $img = " NO"; } echo'<tr align="center"> <td class="tcell">'; echo"{$r['numbers']}"; echo'</td> <td class="tcell">'; echo"{$img}"; echo'</td> <td class="tcell">'.date('F j Y, g:i:s a',$r['bought']).'</td> </tr>'; } echo' </table>'; $h->endpage(); ?>
  17. i seem to be having issues with this now i have chnage it to this most of the errors have gone   <?php include "globals.php"; /** * Configuration */ $currency_symbol = '$'; // Your default currency symbol? $max_entries = '2'; // How many pages should entries should be displayed per page? $border_colour = '#EEE'; // To look good with your game's template, you can specify a border colour here. $font_shadow = '#999'; // What colour should the text shadows be? $font_colour = '#2A4A6D'; // What colour should the headings be? $extra_fields = 'points,userid'; // Define extra fields you might want to add, they will be displayed everywhere. ########################################################## ########### DO NOT EDIT BEYOND THIS LINE ################ ########################################################## require_once('pagination.txt'); if (!empty($_POST['ajax'])) { if (!strstr($_POST['page'], 'u') && empty($_POST['search'])) { $pagination = new Pagination(); $pagination->setLink("%s"); $pagination->setPage(((abs($_POST['page']) < 1) ? 1 : abs($_POST['page']))); $pagination->setSize($max_entries); $num_query = mysql_query('SELECT `userid` FROM `users`'); $num_users = mysql_num_rows($num_query); $pagination->setTotalRecords($num_users); $query_txt = 'SELECT `userid`, `username`, `laston`, `money`, `level`, `display_pic`, `gender`'; foreach(explode(',', $extra_fields) as $field) $query_txt .= ', `' . $field . '`'; $query_txt .= ' FROM `users` ORDER BY `userid` ASC ' . $pagination->getLimitSql(); $query = mysql_query($query_txt); $navigation = $pagination->create_links(); echo $navigation; echo '<center> <table style="width:80%;text-align:left"> <tr> <th colspan="2" style="padding-left:5px">Name</th> <th style="padding-left:5px">Online</th> <th style="padding-left:5px">Money</th> <th style="padding-left:5px">Level</th>'; foreach(explode(',', $extra_fields) as $field) echo '<th style="padding-left:5px">' . ucwords($field) . '</th>'; echo '</tr>'; while($user = mysql_fetch_assoc($query)) { echo '<tr style="cursor:pointer" onclick="getPage(\'u' . $user['userid'] . '\')"> <td style="border-bottom:solid 1px ' . $border_colour . '"><img src="' . ((!$user['display_pic']) ? (($user['gender'] == 'Male') ? 'unknown_male.gif' : 'unknown_female.gif' ) : $user['display_pic']) . '" style="max-width:50px;max-height:50px" /></td> <td style="border-bottom:solid 1px ' . $border_colour . ';text-shadow:1px 1px 1px ' . $font_shadow . ';color:' . $font_colour . '">' . htmlspecialchars($user['username']) . '</td> <td style="border-bottom:solid 1px ' . $border_colour . ';text-shadow:1px 1px 1px ' . $font_shadow . ';">' . (($user['laston'] > (time() - (60 * 15))) ? '<span style="color:#76EE00">Online</span>' : '<span style="color:#8B2323">Offline</span>') . '</td> <td style="border-bottom:solid 1px ' . $border_colour . ';text-shadow:1px 1px 1px ' . $font_shadow . ';">' . $currency_symbol . number_format($user['money']) . '</td> <td style="border-bottom:solid 1px ' . $border_colour . ';text-shadow:1px 1px 1px ' . $font_shadow . ';">' . number_format($user['level']) . '</td>'; foreach(explode(',', $extra_fields) as $field) echo '<td style="border-bottom:solid 1px ' . $border_colour . ';text-shadow:1px 1px 1px ' . $font_shadow . ';">' . $user[$field] . '</td>'; echo '</tr>'; } echo '</table> </center>'; } elseif (!empty($_POST['search'])) { if ($_POST['search'] == 'creator') { echo '<center>© Aplision 2010. All Rights Reserved.</center>'; exit; } $pagination = new Pagination(); $pagination->setLink("%s"); $pagination->setPage(((abs($_POST['page']) < 1) ? 1 : abs($_POST['page']))); $pagination->setSize($max_entries); $num_query = mysql_query('SELECT `userid` FROM `users`'); $num_users = mysql_num_rows($num_query); $pagination->setTotalRecords($num_users); $query_txt = 'SELECT `userid`, `username`, `laston`, `money`, `level`, `display_pic`, `gender`'; foreach(explode(',', $extra_fields) as $field) $query_txt .= ', `' . $field . '`'; $query_txt .= ' FROM `users` WHERE `username` LIKE \'%' . htmlspecialchars($_POST['search']) . '%\' OR `userid` LIKE \'' . htmlspecialchars($_POST['search']) . '%\' ORDER BY `userid` ASC ' . $pagination->getLimitSql(); $query = mysql_query($query_txt); $navigation = $pagination->create_links(); echo '<center> <table style="width:80%;text-align:left"> <tr> <th colspan="2" style="padding-left:5px">Name</th> <th style="padding-left:5px">Online</th> <th style="padding-left:5px">Money</th> <th style="padding-left:5px">Level</th>'; foreach(explode(',', $extra_fields) as $field) echo '<th style="padding-left:5px">' . ucwords($field) . '</th>'; echo '</tr>'; while($user = mysql_fetch_assoc($query)) { echo '<tr style="cursor:pointer" onclick="getPage(\'u' . $user['userid'] . '\')"> <td style="border-bottom:solid 1px ' . $border_colour . '"><img src="' . ((!$user['display_pic']) ? (($user['gender'] == 'Male') ? 'unknown_male.gif' : 'unknown_female.gif' ) : $user['display_pic']) . '" style="max-width:50px;max-height:50px" /></td> <td style="border-bottom:solid 1px ' . $border_colour . ';text-shadow:1px 1px 1px ' . $font_shadow . ';color:' . $font_colour . '">' . htmlspecialchars($user['username']) . '</td> <td style="border-bottom:solid 1px ' . $border_colour . ';text-shadow:1px 1px 1px ' . $font_shadow . ';">' . (($user['laston'] > (time() - (60 * 15))) ? '<span style="color:#76EE00">Online</span>' : '<span style="color:#8B2323">Offline</span>') . '</td> <td style="border-bottom:solid 1px ' . $border_colour . ';text-shadow:1px 1px 1px ' . $font_shadow . ';">' . $currency_symbol . number_format($user['money']) . '</td> <td style="border-bottom:solid 1px ' . $border_colour . ';text-shadow:1px 1px 1px ' . $font_shadow . ';">' . number_format($user['level']) . '</td>'; foreach(explode(',', $extra_fields) as $field) echo '<td style="border-bottom:solid 1px ' . $border_colour . ';text-shadow:1px 1px 1px ' . $font_shadow . ';">' . $user[$field] . '</td>'; echo '</tr>'; } echo '</table> </center>'; } else { $id = substr($_POST['page'], 1, strlen($_POST['page'])); $query_txt = 'SELECT `username`, `level`, `money`, `display_pic`, `gender`'; foreach(explode(',', $extra_fields) as $field) $query_txt .= ', `' . $field . '`'; $query_txt .= ' FROM `users` WHERE `userid` = ' . intval($id); $query = mysql_query($query_txt); $user = mysql_fetch_assoc($query); echo '<center> <table style="width:60%;border:solid 1px ' . $border_colour . '"> <tr> <td>Name: ' . $user['username'] . '<br /> Level: ' . $user['level'] . '<br /> Money: ' . $currency_symbol . $user['money']; foreach(explode(',', $extra_fields) as $field) echo '<br />' . ucwords($field) . ': ' . $user[$field]; echo '</td> <td><img src="' . ((!$user['display_pic']) ? (($user['gender'] == 'Male') ? 'unknown_male.gif' : 'unknown_female.gif' ) : $user['display_pic']) . '" style="max-width:200px;max-height:200px" /></td> </tr> <tr> <td colspan="2" style="text-align:center"><a href="mailbox.php?action=compose&ID=' . $id . '">Send Message</a></td> </tr> </table> <p><a href="javascript:getPage()">back</a></p> </center>'; } exit; } require "global_func.php"; $h = new headers; $h->startheaders(); global $c; $h->menuarea(); ?> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function () { $.ajax({ type: "POST", url: "userlist.php", data: "ajax=true", success: function(msg){ document.getElementById('content').innerHTML = msg; } }); getPage = function(data) { document.getElementById('content').innerHTML = "<img src=\"ajax-loader.gif\">"; $.ajax({ type: "POST", url: "userlist.php", data: "ajax=true&page=" + ((!data) ? "" : data), success: function(msg){ document.getElementById('content').innerHTML = msg; } }); } getSearch = function(data) { document.getElementById('content').innerHTML = "<img src=\"ajax-loader.gif\">"; $.ajax({ type: "POST", url: "userlist.php", data: "ajax=true&search=" + ((!data) ? "" : data), success: function(msg){ document.getElementById('content').innerHTML = msg; } }); } }); </script> <br /> <center>Search: <input type="text" size="80" onkeyup="javascript:getSearch(this.value)" /></center> <div id="content" style="text-align:center;padding:20px;"><img src="ajax-loader.gif" /></div> <?php $h->endpage(); ?>   but still gettting this Fatal error: Cannot redeclare get_mine() (previously declared in /home/*****/public_html/global_func.php:9) in /home/****/public_html/global_func.php on line 27 but once i take it out it keeps going down the list lol
  18. slight update cracksafe_when row is empty no time stamp used   <?php /*################################################################ CRACK THE SAFE MOD - POINTS MADE BY : CURT THUGBATTLE.COM Copyright 2010 #################################################################*/ include "globals.php"; $safeprice = 1; // HOW MANY POINTS IT COST TO ATTEMPT A CRACK $showprice=$safeprice; $restartamount=25; // HOW MANY POINTS ARE IN THE POT WHEN IT RESETS echo "<h1> Crack Points Safe </h1>"; echo "<table width=100%><tr><td align=center valign=top>"; $cc=$db->query("SELECT * FROM cracksafep WHERE cracksafe_active=1 LIMIT 1"); $cs=$db->fetch_row($cc); $snum1 = $cs['cracksafe_n1']; $snum2 = $cs['cracksafe_n2']; $snum3 = $cs['cracksafe_n3']; $_POST['n1'] = abs((int) $_POST['n1']); $_POST['n2'] = abs((int) $_POST['n2']); $_POST['n3'] = abs((int) $_POST['n3']); $num1= $_POST['n1']; $num2= $_POST['n2']; $num3= $_POST['n3']; $pot = $cs['cracksafe_pot']; echo " CURRENT WORTH :<span style='color:orange'> ".number_format($pot)." Points </span> "; if ($_POST['submit']) { if ( $ir['crystals'] < $safeprice ) { echo "Each attempt to crack the Safe costs ".number_format($safeprice)." Points. You cant afford to try."; return; } $db->query("UPDATE users SET crystals=crystals-$safeprice WHERE userid = $userid"); $db->query("UPDATE cracksafep SET cracksafe_pot=cracksafe_pot+$safeprice WHERE cracksafe_active=1"); if ($num1 == $snum1 AND $num2 == $snum2 AND $num3 == $snum3) { ## IF YOU WIN $newnum1=rand(1,9); $newnum2=rand(1,9); $newnum3=rand(1,9); $db->query("UPDATE users SET crystals=crystals+{$cs['cracksafe_pot']} WHERE userid = $userid"); $db->query("UPDATE cracksafep SET cracksafe_active=0,cracksafe_when=unix_timestamp(), cracksafe_winner=$userid WHERE cracksafe_active=1"); $db->query("INSERT INTO cracksafep VALUES ( '',$newnum1,$newnum2,$newnum3,$restartamount,'','',1)"); $pot=0; echo "<span style='color:orange'> The Safe Opened UP ! You walked inside grabbed the depostit and disapeared into the night...</span>"; } else { ## IF YOU LOSE if ($ir['userid'] == 1) { echo " ADMIN VIEW : "; echo " Your numbers : {$num1} and {$num2} and {$num3} and Safe Numbers : {$snum1} and {$snum2} and {$snum3} "; } $pot+=$safeprice; echo " <span style='color:red'> The Combination did not open the safe. </span>"; } } echo " "; echo " <form action='cracksafepoints.php' method='post'> <input type='text' name='n1' size='1' value='0' maxlength=1 /> - <input type='text' name='n2' size='1' value='0' maxlength=1 /> - <input type='text' size='1' name='n3' value='0' maxlength=1 /> <input type='submit' name='submit' value='Crack Safe' /></form> "; echo " For ".number_format($showprice)." Points you can have a crack at the safe ! "; echo " If you guess the correct combination you will recieve all the points in the safe, if you fail the points spent to crack the safe will be put into the safe."; echo "</td><td width=50% align=center valign=top>"; // PUT SAFE IMAGE HERE //echo "[img=images/cracksafe.jpg]"; echo "</td></tr>"; echo "</table>"; $h->endpage(); ?>
  19. add this to the database [mysql] INSERT INTO `cracksafep` ( `cracksafe_id` , `cracksafe_n1` , `cracksafe_n2` , `cracksafe_n3` , `cracksafe_pot` , `cracksafe_winner` , `cracksafe_when` , `cracksafe_active` ) VALUES ( NULL , '2', '3', '1', '0', '0', '0', '1' ); [/mysql] and this will work only reason it doesnt work is there is not an active game open
  20. no its now thats for securing input stripping back unwanted inject code. so you ca remve this and secure another way.
  21. the issues with not being able to selcect your own numbers lies within the globals.php with the $val $val = trim($val);   //Removes tags html/php $val = strip_tags($val);   //Add inverted bars to a string $val = addslashes($val); Thats what the issues are i removed and tested and selecting you tickets work. so if any one can shred some light on how to over come this?
  22. for the username to apear jsut replace replace this function view_gym_logs() { global $db,$ir,$c,$h,$userid; $_GET['st']=abs((int) $_GET['st']); print "<h3>Gym Logs</h3> <table width=75% cellspacing='1' class='table'> \n<tr style='background:gray'> <th>ID</th> <th>Time</th> <th>User ID</th> <th>Stat Trained</th><th>Amount Gained</th></tr>"; $q=$db->query("SELECT * FROM gymlogs WHERE gymID>0"); while($r=$db->fetch_row($q)) { print "\n<tr><td>{$r['gymID']}</td> <td>" . date("F j, Y, g:i:s a",$r['gymTIME']) . "</td><td>{$r['gymUSER']}</td><td> [{$r['gymSTAT']}] </td> <td>{$r['gymGAIN']}</td> </tr>"; } print "</table> "; { if($i % 7 == 0) { print " \n"; } } stafflog_add("Viewed the Gym Logs"); }   With this   function view_gym_logs() { global $db,$ir,$c,$h,$userid; $_GET['st']=abs((int) $_GET['st']); print "<h3>Gym Logs</h3> <table width=75% cellspacing='1' class='table'> \n<tr style='background:gray'> <th>ID</th> <th>Time</th> <th>User ID</th> <th>Stat Trained</th><th>Amount Gained</th></tr>"; $q=mysql_query("SELECT u.*,d.* FROM gymlogs d LEFT JOIN users u ON u.userid=d.gymUSER",$c); while($r=$db->fetch_row($q)) { print "\n<tr><td>{$r['gymID']}</td> <td>" . date("F j, Y, g:i:s a",$r['gymTIME']) . "</td><td><a href='viewuser.php?u={$r['gymUSER']}'>{$r['username']}</td><td> [{$r['gymSTAT']}] </td> <td>{$r['gymGAIN']}</td> </tr>"; } print "</table> "; { if($i % 7 == 0) { print " \n"; } } stafflog_add("Viewed the Gym Logs"); }   in the staff_logs.php and the username issue will be sorted :)
  23. Fixed <?php include "globals.php"; if($ir['hospital']) { print "This page cannot be accessed while in hospital."; return; } if($_GET['action'] == "escape") { if($ir['jail'] == 0) { print "You arent in jail! > [url='jail.php']Back[/url]"; return; } $cost = 5; $stat = 'brave'; if($ir['brave'] < 5) { print "You need $cost $stat to escape from jail! > [url='jail.php']Back[/url]"; return; } $db->query("update users set $stat = $stat - $cost where userid = $userid"); if(rand(1,100) <= 50) { print "You successfully broke out of the {$set['game_name']} Jail! > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET jail = 0 WHERE userid = $userid"); return; } else { $jailtime = (int) rand(1,30); print "You were caught attempting to break out of the {$set['game_name']} Jail. The officers beat you for a while and added $jailtime minutes to your sentence! > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET jail=jail+$jailtime, busted=busted+1, jail_reason='Caught attempting to escape' WHERE userid=$userid"); return; } } if($_GET['action'] == "bail") { if($ir['jail']) { print "You cannot bail out people while in jail! > [url='jail.php']Back[/url]"; return; } $_GET['ID'] = abs((int) $_GET['ID']); $r = $db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$db->fetch_row($r)) { print "Invalid user"; } $r = $db->fetch_row($r); if(!$r['jail']) { print "That user is not in jail! > [url='jail.php']Back[/url]"; return; } $cost = $r['level'] * 2000; $cf = number_format($cost); if($ir['money'] < $cost) { print "Sorry, you do not have enough money to bail out {$r['username']}. You need \$$cf. > [url='jail.php']Back[/url]"; return; } print "You successfully bailed {$r['username']} out of jail for \$$cf. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET busts=busts+1, money=money-{$cost} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] bailed you out of jail.", $c); } if($_GET['action'] == "bust") { if($ir['energy'] <= 9) { print "Sorry, it costs 10 energy to bust someone. You only have {$ir['energy']} energy. Come back later."; return; } if($ir['jail']) { print "You cannot bust out people while in jail."; return; } $_GET['ID'] = abs((int) $_GET['ID']); $q = $db->query("SELECT * FROM users WHERE userid={$_GET['ID']}"); $r = $db->fetch_row($q); if(!$r['userid']) { print "Invalid user"; return; } if(!$r['jail']) { print "That user is not in jail!"; return; } $mult = $r['level']*$r['level']; $chance = min(($ir['crimexp']/$mult) * 50 + 1, 95); if(rand(1,100) < $chance) { $gain = $r['level'] * 5; print "You successfully busted {$r['username']} out of jail. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] busted you out of jail.", $c); } else { print "While trying to bust out your friend, a guard spotted you and dragged you into jail yourself. Unlucky! > [url='jail.php']Back[/url]"; $time = min($mult, 100); $db->query("UPDATE users SET jail=$time, jail_reason='Caught trying to bust out {$r['username']}' WHERE userid=$userid"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] was caught trying to bust you out of jail.", $c); } } print "<h3>{$set['game_name']} Jail</h3> "; if($ir['jail']) { print "[url='jail.php?action=escape']Escape[/url] | [url='jail.php?action=court']<strike>Goto Court</strike>[/url]"; } print " <table width='100%' class=\"table\" border=\"0\" cellspacing=\"1\"><tr bgcolor=gray><th>Name</th> <th>Level</th> <th>Time</th><th>Reason</th> <th>Actions</th></tr>"; $q = $db->query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.jail > 0 ORDER BY u.jail DESC"); while($r = $db->fetch_row($q)) { print "<tr><td>{$r['gangPREFIX']} [url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td><td>{$r['level']}</td><td>{$r['jail']} minutes</td><td>{$r['jail_reason']}</td> <td>[[url='jail.php?action=bust&ID={$r[']Bust[/url]][[url='jail.php?action=bail&ID={$r[']Bail[/url]]</td></tr>"; } print "</table>"; $h->endpage(); ?>   Few Issues Replace This [[url='jail.php?action=bust&?ID={$r[']Bust[/url]] With [[url='jail.php?action=bust&ID={$r[']Bust[/url]]   Unessasary ? in the url And the: Replace this   $db->query("UPDATE users SET busts=bails+1, money=money-{$cost} WHERE userid=$userid");   With   $db->query("UPDATE users SET busts=busts+1, money=money-{$cost} WHERE userid=$userid");   and all is working
  24. great work +1 Replace $_POST['msg'] = str_replace(array("\n"),array(" "),strip_tags(htmlentities($_POST['message'])));   with   $_POST['msg'] = str_replace(array("\n"),array(" "),strip_tags(htmlentities($_POST['msg'])));   and your message will be showen in your mail   Also find   } } $h->endpage(); exit; else {   and replace with   } $h->endpage(); exit; } else {   should fix all errors apart from that very nice update :P
×
×
  • Create New...