
HauntedDawg
Members-
Posts
476 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
Events
Everything posted by HauntedDawg
-
Yet another... odd idea... for the yet even more lazy people
HauntedDawg replied to a_bertrand's topic in New Worlds Engine
I've seen such a system on sucuri.net and a couple other web app's. You purchase their product, you either download or provide an FTP username/password and directory, it will set it up and install it for the client. So yes, defiantly an approach ahead. -
Wooo.. those were the day's where i also had Negative's. One thing tho, if this was to be installed, Please when i reach -100, make the field unsigned :D
-
<?php $string = 'Hello World'; $key = array(); $key['general'] = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '); $key['replace'] = array('b','e','d','g','i','k','l','m','z','x','w','v','o','q','p','s','t','y','u','v','a','f','g','h','j','c',' '); Class Cryptography { public function crypt($string) {$str = str_split($string);$nstr = '';foreach($str as $letter){$nstr .= str_ireplace($key['replace'], $key['general'], $letter);}return urlencode(base64_encode($nstr));} public function decrypt($string) {$str = base64_decode(urldecode($string));$str = str_split($str);$nstr = '';foreach($str as $letter){$nstr .= str_ireplace($key['general'], $key['replace'], $letter);}return $nstr;} } $Cryptography = new Cryptography; $crypt = $Cryptography->crypt($string); echo '<strong>Original Text:</strong> '.$string.'<br />'; echo '<strong>Crypted:</strong> '.$crypt.'<br />'; echo '<strong>De Crypted:</strong> '.$Cryptography->decrypt($crypt); ?> Simple, took me 10 minute's. My first submission. Will most probably submit another more efficient & better way.
-
Must said Crypt function crypt it the same way each time or different way each time?
-
Games don't have to be original to go far. It depends on owner and content.
-
<a href='smslavehire.php?action=hired&ID={$r['slaveid']}'> Hire </a> --tooshort--
-
We both created it, with equal right's. If he got his own sale, he does not owe me. And so forth.
-
Yes i did. And i still do, and it's only $8 with custom design to your liking ;)
-
I'll add my comment concerning the video.. AWESOME VIDEO FIND!!!!
-
http://stackoverflow.com/questions/1756015/whats-the-difference-between-i-and-i-in-php ++$i is pre-increment whilst $i++ post-increment. pre-increment: increment variable i first and then de-reference. post-increment: de-reference and then increment i "Take advantage of the fact that PHP allows you to post-increment ($i++) and pre-increment (++$i). The meaning is the same as long as you are not writing anything like $j = $i++, however pre-incrementing is almost 10% faster, which means that you should switch from post- to pre-incrementing when you have the opportunity, especially in tight loops and especially if you're pedantic about micro-optimisations!" -
-
Some are complex, some are not. What we do is: We Plan We Code We Test Manager Tests and requests changes to what ever they will like. Does the manager ever find a fault with the script? No, only changes that get requested are design changes, element changes or text changes. No issue of "Hey this thing is broken" or, "hey why do i have a bunch of \ in my name"
-
Well, who ever think's coding in OOP will make your code better, or your planning out better, is just simply thick. I did not say working for someone else, but working for a company. Where as for me, we plan before we code, we don't modify thereafter unless it is very required.
-
Year1920 is delayed due to the first designer not able to do the work we wanted.
-
I 95% do. Only error's there will be in my code is a php error that i forgot a ";" here or a "}" there. I'll never have issue's like the one A_Bertrand said. You need to accomplish this when you work for a corporate company. Ask A_Bertrand.
-
Now, it's not pointless when you can do a better job than what your doing! You supposed to be giving client support, not fixing issues with your client support.
-
If you actually take a step back and read. He suggests to use a already built script, that does what you are planning. But better yet, has been tested multiple times on multiple servers & multiple clients. Not a custom script where you pick up errors along the way. Each script offer's its uniqueness, but why re-invent the wheel when there is probably already a script made to do what you want? But even more!
-
Your post make's no sense, even if you misspelled "history".
-
Needle in a very small haystack, in fact I think there is only one straw.
HauntedDawg replied to bineye's topic in PHP
I believe you are looking for something along the lines of: <?php $players = array( 1 => array('name' => 'and'), 2 => array('name' => 'irene'), 3 => array('name' => 'gerty'), 4 => array('name' => 'Tops'), 5 => array('name' => 'Franc'), 6 => array('name' => 'engine'), 7 => array('name' => 'bored'), 8 => array('name' => 'mwg'), 9 => array('name' => 'mccodes'), 10 => array('name' => 'nwe'), 11 => array('name' => 'blah'), 12 => array('name' => 'you'), 13 => array('name' => 'me'), 14 => array('name' => 'myself'), ); echo '<br />'; if(isset($_POST['s2'])) { while($a_count < $_POST['numgrps']) { ++$a_count; echo '<h4>Group '.($a_count).'</h4>'; $b_count = 0; while($b_count < $_POST['tpg']) { ++$b_count; echo 'Team '.($b_count).' :: ID ::: '.$_POST[$a_count.'_'.$b_count].' -> NAME ::: '.$players[$_POST[$a_count.'_'.$b_count]]['name'].'<br />'; } } return; } if(isset($_POST['s1'])) { $a_count = 0; $b_count = 0; echo $_POST['name'].' <form method="post">'; while($a_count < $_POST['numgrps']) { ++$a_count; echo '<h4>Group '.($a_count).'</h4> <table>'; $b_count = 0; while($b_count < $_POST['tpg']) { ++$b_count; echo ' <tr> <td>Team '.($b_count).'</td> <td> <select name="'.$a_count.'_'.($b_count).'"> <option value="">Select...</option>'; foreach($players as $player => $db) { echo ' <option value="'.$player.'">'.$db['name'].'</option>'; } echo ' </select> </td> </tr>'; } echo ' </table>'; } echo ' <input type="hidden" name="numgrps" value="'.$_POST['numgrps'].'"> <input type="hidden" name="tpg" value="'.$_POST['tpg'].'"> <input type="hidden" name="s2" value="1"> <input type="hidden" name="name" value="'.$_POST['name'].'"> <input type="submit" value="Submit"></form> </form>'; return; } echo ' <form method="post"> <table> <tr> <td>Name: </td> <td><input type="text" name="name"></td> </tr> <tr> <td>Number of Groups: </td> <td> <select name="numgrps"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> </select> </td> </tr> <tr> <td>Teams per Group: </td> <td> <select name="tpg"> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> </select> </td> </tr> </table> <input type="hidden" name="s1" value="1"> <input type="submit" value="Submit"> </form>'; ?> The forum has removed a lot of my line breaks. Please see original on http://pastie.org/4248601 -
for html element's, to get the inner html content, you use $.html() like so: var name = $('#elementID').html(); $('#placementID').val(name); //IF ITS A INPUT FIELD $('#placementID').html(name); //IF ITS AN HTML ELEMENT
-
Needle in a very small haystack, in fact I think there is only one straw.
HauntedDawg replied to bineye's topic in PHP
If you clean your code a bit and indent it, people will help you a bit more. Not bashing, but as a hint :P -
Not that i don't like you, but yet till this day, can't actually prove you don't use a program ay? Proof of what? That mostly anyone who i spoke to while creating DeadlyKillah, was originally using mccodes as a base. 3 Year's ago, which i was uhm, 17. I don't have to prove that you some type of "skid" (don't even know what that means.). Lol, im trolling? Yet both the "Evans" are trolling, but, go ahead and call me a troll if that what's get's you off :D
-
hence you use software? :P
-
Needle in a very small haystack, in fact I think there is only one straw.
HauntedDawg replied to bineye's topic in PHP
Okay, i asked for the example you post as your league name, and then what get's entered in your database (to your issue). Secondly, if($_POST['s1']) { mysql_query("INSERT INTO settings VALUES(NULL, '{$_POST['name']}', '{$_POST['numgrps']}', '{$_POST['tpg']}', '1')") or die (mysql_error()); $n=0; Please do not go live with this module with no security in mind.