
HauntedDawg
Members-
Posts
476 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
Events
Everything posted by HauntedDawg
-
Why go through so much? function valueFormat($gold = 0, $siver = 0, $copper = 0) { $return = ''; $return .= ($gold) ? number_format($gold).' G <img src="images/Gold.png" /> ' : ''; $return .= ($silver) ? number_format($silver).' S <img src="images/Silver.png" /> ' : ''; $return .= ($copper) ? number_format($copper).' C <img src="images/Copper.png" />' : ''; return $return; } How to use it? valueFormat($gold, $silver, $copper) Or change it to how u want it to output!
-
php.net/str_ireplace $msgtext = str_replace(".yahoo", "google ", htmlspecialchars($_POST['msgtext'], ENT_QUOTES )); $msgtext = str_replace(".ebay", "google ", htmlspecialchars($_POST['msgtext'], ENT_QUOTES )); $msgtext = str_replace(".coke", "google ", htmlspecialchars($_POST['msgtext'], ENT_QUOTES )); $msgtext = str_replace(".green", "google ", htmlspecialchars($_POST['msgtext'], ENT_QUOTES )); Clearly you have no idea of how php work's. So we will just spoon feed you :D Use $msgtext = str_replace(".yahoo", "google ", htmlspecialchars($msgtext, ENT_QUOTES )); $msgtext = str_replace(".ebay", "google ", htmlspecialchars($msgtext, ENT_QUOTES )); $msgtext = str_replace(".coke", "google ", htmlspecialchars($msgtext, ENT_QUOTES )); $msgtext = str_replace(".green", "google ", htmlspecialchars($msgtext, ENT_QUOTES ));
-
When you implement this, please let me know your game link so i can come make millions of dorrah :)
-
Ok, compatibility mode runs a certain previous version, now back to what i was saying. How do you know the user's have the same version that your compat view is emulating? Never assume that a user has a certain version of IE. And ill say again, it's not hard to make your site cross browser compatible, you do not even need CSS hack's for it! Learn the proper way or expect issues in other browsers, and most probably its like 15% of your total user base that use IE
-
If Microsoft announced last year, expect it in like 2015. As far as i know, IE 8, still remains IE 8 Native with no IE 9 component's. Tool's? You have all the tool's available. Firebug, Firebug Lite, IE Developer Tools. You can download IE7,8,9 standalone to test your site in all of them without needing to delete your current IE. In my own personal opinion, when it comes to cross browser compatibility, IE is less forgiving in everything, that's a note you should all make, and NEVER use compatibility mode, as normal "users" don't even know what exactly it does. As mentioned previously. Get someone to fix it, or fix it yourself. There are many tutorials online to make your site cross browser friendly.
-
Never use compatibility mode, it's bad ethic's, as not everyone enabled compatibility mode. Develop or hire someone to fix it.
-
Rulerofzu, when it come's to development for cross browser compatibility, you don't think to yourself, Oh, let me try IE 8 compatibility mode, that way, i can tell all the user's to do that. NO! It's not hard to make a design work in all browser's, not hard at all! and you don't even need IE HACK's.
-
I'm sorry but Javascript harder than PHP? Or did you just learn php first and then javascript so now javascript is harder cause you learnt PHP first? To the point. We all like to create thing's from scratch, me on the other hand i will prioritize what i need done in time. If i know i can not create it in time, then why not use open source libraries? They have been developed upon by many more people than your 2 eye's and debugged further than what you'd think.
-
What i was laughing at was you can learn OOP anyway you want, not to some specific Language.
-
[ATTACH=CONFIG]328[/ATTACH] What does OOP (Object Orientated Programming) got to do with a "Graphical" (2d/3d) game?
-
Should be in the discussion's thread. But me: Found a job in web development, going very strong. New project's came and died. New project's came and completed but never released. Quite a bit actually. And yourself?
-
Please don't quote my work. Putting quote's around numerical value's? Shame. Test my code, fool
-
$db->query('UPDATE `stagetable` WHERE `grosetonesone` = 1 WHERE `userid` = '.$ir['userid']);
-
Developer. You develop a program.
-
You all think that when i ask for his method's, you think im asking how he does it. His method's.. Does he approach the site and see what is there first? Does he approach the site and attack it full on? Or does he first see what system it is running? Perhaps their PHP Version? Micheal, you merely know me. So don't think my skill's are limited. I used to do other programming before web development.
-
not all webserver's have a Information Table. Who ever tries to blind hack a site is going to take time. If you want your site secured properly, go find a proper company, hand them your code, let them thrash it, bash it, break it, do what ever. When you get it back, you'll have a lot more surprise than you think. We allowed a company to "Pentest" one of our project's. They did not find anything. Give them the code on their own system and ability to look through it, and there was something. To me, this is merely trying to bloat about pretending you can do all you say. You don't want to post your method's, that's my opinion till then. Good luck with your sale's :D
-
You still giving such little info. There's load's of method's as to DIY penetration testing and to me seems like you don't do it yourself because you would of supplied more information. How on earth are you going to penetrate a DB if you don't even know the fields and tables via SQL Injection. What method do you take to get their DB structure?
-
<h2>Custom Donator Packs</h2> This Page is Still under work, PLEASE DO NOT USE THIS UNTIL I GIVE THE GO-AHEAD. Thanks If you Enter 1 on the Points Section, You will not Get the Point, you have to put min of 10 in, thanks <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script> </head> <body> <table width='450px' border='1' style='border-collapse:collapse;background-color:#E8DCFF'> <tr> <td width='40px'>1</td> <td>Dollars</td> <td><input class='txt' type='text' name='txt'/></td> <td>1 = $100,000,000</td> </tr> <tr> <td>2</td> <td>Gold</td> <td><input class='txt' type='text' name='txt'/></td> <td>1 = 100,000 Gold</td> </tr> <tr> <td>3</td> <td>Turns</td> <td><input class='txt' type='text' name='txt'/></td> <td>1 = 500 Turns</td> </tr> <tr> <td>4</td> <td>Points</td> <td><input class='txt' type='text' name='txt'/></td> <td>10 = 1 Points</td> </tr> <tr> <td>5</td> <td>Donator Days</td> <td><input class='txt' type='text' name='txt'/></td> <td>1 = 10 Donator Days</td> </tr> <tr> <td>6</td> <td>Smoking Levels</td> <td><input class='txt' type='text' name='txt'/></td> <td>1 = 1,000 Smoking Levels</td> </tr> <tr id='summation'> <td>*</td> <td align='right'>Total to Pay :</td> <td align='center'>$<span id='sum'>0</span></td> </tr> </table> <script> var arg = new Array(); $(document).ready(function(){ //iterate through each textboxes and add keyup //handler to trigger sum event $('.txt').each(function() { arg.push(this); $(this).keyup(function(){ calculateSum(); }); }); }); function calculateSum() { var sum = 0; //iterate through each textboxes and add the values $('.txt').each(function() { //add only if the value is number if(!isNaN(this.value) && this.value.length!=0) { sum += parseFloat(this.value); } }); //.toFixed() method will roundoff the final sum to 2 decimal places $('#sum').html(sum.toFixed(2)); $('input[name=item_name]').val('<?php echo $domain; ?>|Custom|M='+arg[0].value+'|G='+arg[1].value+'|T='+arg[2].value+'|P='+arg[3].value+'|DD='+arg[4].value+'|SL='+arg[5].value+'|<?php echo $userid ?>'); $('input[name=amount]').val(sum.toFixed(2)); } </script> <form action='https://www.paypal.com/cgi-bin/webscr' method='post' target='_blank'> <input type='hidden' name='cmd' value='_xclick'> <input type='hidden' name='business' value='<?php echo $set['paypal']; ?>'> <input type='hidden' name='item_name' value='<?php echo $domain; ?>|Custom|M=|G=|T=|P=|DD=|SL=|<?php echo $userid ?>'> <input type='hidden' name='amount' value='0'> <input type='hidden' name='no_shipping' value='1'> <input type='hidden' name='return' value='http://<?php echo $domain; ?>/donatordone.php?action=done&type=special'> <input type='hidden' name='cancel_return' value='http://<?php echo $domain; ?>/donatordone.php?action=cancel'> <input type='hidden' name='notify_url' value='http://<?php echo $domain; ?>/ipn_donator.php'> <input type='hidden' name='cn' value='1'> <input type='hidden' name='currency_code' value='USD'> <input type='hidden' name='tax' value='0'> <input type='image' src='https://www.paypal.com/en_US/i/btn/x-click-but21.gif' border='0' name='submit' alt='Make payments with PayPal'> </form> Work's perfect for me. With the code supplied above, remember to add back the $h->endpage and the include at the top.
-
I was not asking if your limited to certain script's. What method's do you use? As SRB mentioned. There's program's or there's the DIY.
-
What method's do you use for your penetration testing?
-
You saying CG uses ezRPG? If not, his trying to sell a module, not asking for opinions.
-
$brave = (level / 10) ? brave + 10 : 0;
-
Glad i could help. Anyone else that need's the fix: Open up internet option's -> Advanced Tag -> (LIST) Security Options -> Check for Server Certificate (needs to be unchecked). And the admin's can now close this thread :P
-
You should really try replying abit faster. <?php include_once('globals.php'); $name = 'crystals'; //Name it points or crystals? if(isset($_POST['match']) && is_numeric($_POST['match'])) { $q = $db->query("SELECT * FROM fifty WHERE bet_id = {$_POST['match']}"); $r = $db->fetch_row($q); $win = floor($r['wager']*(1.8)); if($ir['second'] < $r['wager']) {exit('You are trying to bet more than you have.'.$h->endpage());} if($ir['userid'] == $r['bettor']) {exit('You cannot match your own bet\s.'.$h->endpage());} $db->query('UPDATE `users` SET `second` = `second` - '.$r['wager'].' WHERE `userid` = '.$ir['userid']); if(mt_rand(0,1)) {// either word's. if true or false $db->query('UPDATE `users` SET `second` = `second` + '.$win.' WHERE `userid` = '.$r['bettor']); event_add($r['bettor'], 'You won your 50/50 bet of '.number_format($r['wager']).' '.$name.' and earned '.floor($r['wager'] * 1.8).' '.$name.'!'); event_add($ir['userid'], 'You lost your 50/50 bet of '.number_format($r['wager']).' points.'); } else { $db->query('UPDATE `users` SET `second` = `second` + '.$win.' WHERE `userid` = '.$ir['userid']); event_add($ir['userid'], 'You won your 50/50 bet of '.number_format($r['wager']).' '.$name.' and earned '.floor($r['wager'] * 1.8).' '.$name.'!'); event_add($r['bettor'], 'You lost your 50/50 bet of '.number_format($r['wager']).' points.'); } $db->query('DELETE FROM `fifty` WHERE `bet_id` = '.$r['bet']); } if(isset($_POST['crystals']) && is_numeric($_POST['crystals'])){ if($_POST['crystals'] < 10) {exit('You are not betting enough.'.$h->endpage());} if($_POST['crystals'] > 5000) {exit('You are trying to bet too much.'.$h->endpage());} if($ir['second'] < $_POST['crystals']) {exit('You are trying to met more than you have.'.$h->endpage());} $db->query('UPDATE `users` SET `second` = (`second` - '.$_POST['crystals'].') WHERE `userid` = '.$ir['userid']); $db->query('INSERT INTO `fifty` VALUES(NULL, '.$ir['userid'].', '.intval($_POST['crystals']).' WHERE `userid` = '.$ir['userid']); } echo '<h2>50/50 '.ucfirst($name).' Game</h2>'; echo '<p>The rules are simple. 2 players wager the same bet, the winner gets 90% of the pot. The house keeps 10%</p>'; echo '<p>The maximum bet is 5000 points but you may wager more than once.</p>'; echo '<p> <form method="post" action=""> <input type="text" name="crystals" size="8" maxlength="7" /> '.ucfirst($name).' (10-5000) <input type="submit" name="bet" value="Place Bet" /> </form> </p> <h3>Awaiting Bets</h3> <p> <table width="90%"> <tr> <th><strong>Mobster</strong></td> <th><strong>Points</strong></td> <th><strong>Bet Age</strong></td> <th align="center"><strong>Bet</strong></td> </tr>'; $q = $db->query('SELECT `f`.`wager`, `f`.`bet_time`, `f`.`bet_id`, `u`.`username` FROM `fifty` `f` LEFT JOIN `users` `u` ON `f`.`bettor` = `u`.`userid` ORDER BY `bet_id` ASC'); while($r = mysql_fetch_assoc($q)) { echo ' <tr> <td>'.$r['username'].'</td> <td>'.$r['wager'].'</td> <td>'.date('G:s', $r['bet_time']).'</td> <td><form method="post"><input type="hidden" name="match" value="'.$r['bet_id'].'" /><input type="submit" value="Match Bet"></form></td> </tr>'; } echo ' </table> </p>'; ?> I've now tested this in my XAMPP and came out with 0 error's.
-
how to make website work in all browsers, anyone know?
HauntedDawg replied to LearningCoder's topic in Support
Unfortunately you sir, is not going to get any help. Your supposed to copy the script into yours. Not try what it said.