-
Posts
2,210 -
Joined
-
Last visited
-
Days Won
47
Content Type
Profiles
Forums
Events
Everything posted by sniko
-
Then surely; var n = 0; $('#form').submit(function (e) { if (n < 1) { e.preventDefault(); } n++; }); jsFiddle
-
But... And... Then, if we take a look at Peters' Skype name: Piotr
-
I think your logic is flawed.
-
They're in love, secretly. :)
-
Considering this thread has already been bumped, allow me to suggest a service provider. Since moving to Digital Ocean, I've experienced their customer support, billing options, and read their tutorials. They're a brilliant company to be with, however they don't offer the cPanel interface AFAIK - you'd have to purchase the license for that, and install it yourself. If you're curious on a further in depth review of mine, read this
-
I can confirm that they are not
-
I did this sort of thing Panther - a timed 'experiment' ;) I wish you luck, and please post what you have accomplished after, irregardless of quality :p
-
Does it offer a admin side of things, whereby you can upload games? Also, search doesn't work; Parse error: syntax error, unexpected '[' in /home/cavellan/public_html/arcade/Logic/Controller/Search.php on line 23
-
You must spread some Reputation around before giving it to Alan again.
-
Run the query in your database interface; i.e phpmyadmin, and see if that gives an error. (Don't put a function in quotes, it will be treated as a string)
-
After the PM with chicka, I've come up with the following; <a href="http://makewebgames.io/showthread.php/43913-Need-a-bot">This was built for Chicka</a> <br /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <?php if (array_key_exists('id', $_POST)) { $id = filter_input(INPUT_POST, 'id', FILTER_VALIDATE_INT) ? abs((int) $_POST['id']) : 0; $goup = filter_input(INPUT_POST, 'goup', FILTER_VALIDATE_INT) ? abs((int) $_POST['goup']) : 10; $goup = $goup > 15 ? 15 : $goup; ?> <script> var dataArray = []; function storeIt(data) { dataArray.push(data); console.log('Data is stored in the array'); console.log(dataArray.length); } dataArray.sort(); setTimeout(function() { if (dataArray.length >= <?php echo $goup - 1; ?>) { $.each(dataArray, function(idx, val) { $("#profile").delay(1000).queue(function(next) { $(this).empty().html(val); next(); }); }); } }, 1000); </script> <?php if ($_POST['direction'] == 'up') { //Count upwards for ($i = 0; $i <= $goup; $i++) { $param = $id + $i; ?> <script> $.get('profile.php?id=' + <?php echo $param; ?>, storeIt); </script> <?php } } else { //Count downwards for ($i = 0; $i <= $goup; $i--) { $param = $id + $i; ?> <script> $.get('profile.php?id=' + <?php echo $param; ?>, storeIt); </script> <?php if ($param < ($id - $goup)) { break; } } } } ?> <div id="profile"></div> <form action="" method="post"> Starting ID: <input type="text" name="id" /> <br /> Increment/Decrement by: <input type="text" name="goup" /> (Default is 10. No higher than 15) <br /> Direction: <select name="direction"> <option value="up" selected>Up</option> <option value="down">Down</option> </select> <br /> <input type="submit" value="Perform Execution" /> </form>
-
What exactly was it you're looking for? I've got some spare time, so I'll give it another shot.
-
Have you setup the API in PayPal? The script I posted above works, as I had to adjust it to their upgraded systems.
-
Something like; <a href="http://makewebgames.io/showthread.php/43913-Need-a-bot">This was built for Chicka</a> <br /> <?php if(array_key_exists('id', $_POST)) { $id = filter_input(INPUT_POST, 'id', FILTER_VALIDATE_INT) ? abs( (int) $_POST['id']) : 0; $goup = filter_input(INPUT_POST, 'goup', FILTER_VALIDATE_INT) ? abs( (int) $_POST['goup']) : 10; $goup = $goup > 50 ? 50 : $goup; echo '<ul>'; if($_POST['direction'] == 'up') { //Count upwards for($i=0;$i<=$goup;$i++) { $param = $id + $i; echo '<li>mysite.com/user.php?id='. $param .'</li>'; } } else { //Count downwards for($i=0;$i<=$goup;$i--) { $param = $id + $i; echo '<li>mysite.com/user.php?id='. $param .'</li>'; if($param < ($id - $goup)) { break; } } } echo '</ul>'; } ?> <form action="" method="post"> Starting ID: <input type="text" name="id" /> <br /> Increment/Decrement by: <input type="text" name="goup" /> (Default is 10. No higher than 50) <br /> Direction: <select name="direction"> <option value="up" selected>Up</option> <option value="down">Down</option> </select> <br /> <input type="submit" value="Perform Execution" /> </form> The math can be done much more efficiently, however.
-
Can you provide proof of the RC engine licence?
-
Saving it for the namespace? Also, check this test run and you will see why it's bool(false). Take note of what the above post says. As you've claimed to be one of the best around here on these forums multiple times, I'd of thought you would have done that.
-
Try this. I've run it through sandbox and live, and it worked. <?php defined('paypal_sandbox', TRUE); //It's set to sandbox.paypal.com $link = 'www.paypal.com'; if (paypal_sandbox) { $link = "www.sandbox.paypal.com"; } // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; $req .= '&' . http_build_query($_POST); // post back to PayPal system to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n"; $header .= "Host: " . $link . "\r\n\r\n"; $fp = fsockopen('ssl://' . $link, 443, $errno, $errstr, 30); // assign posted variables to local variables $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; $site_id = $_POST['custom']; $custom = $_POST['custom']; if (!$fp) { // HTTP ERROR } else { fputs($fp, $header . $req); while (!feof($fp)) { $res = fgets($fp, 1024); if (strcmp($res, "VERIFIED") == 0) { //Paypal returned VERIFIED } } else if (strcmp($res, "INVALID") == 0) { //Paypal returned INVALID } } fclose($fp); } ?>
-
I've started using DigitalOcean. Their customer service, tutorials, (basically everything about them) is prestigious over any other company I've been with.
-
With TopListedGames, I made use of the imgur api - it worked effectively! They return file information with JSON, once uploaded. Apart from that, have a look at these. With regards to the 'which form' issue, it depends how you want to handle it. I'd put it in the same form as everything else, if I were you. <form action="" method="post" class="form-horizontal" enctype="multipart/form-data"> <label>Name</label> <input type="text" name="name" /> <br /> <label>Description</label> <textarea name="desc"></textarea> <br /> <label>Upload 1</label> <input type="file" name="upload1" /> <br /> <label>Upload 2</label> <input type="file" name="upload2" /> <br /> </form> Then, just use the superglobal; $_FILES, and upload as you would by using predefined functions :)
-
Depending on the length. (1 day can still be measured in seconds, so you're not being overly specific). Say the time is 2 seconds, or something equivalent to a minor duration; Put time period in a session Match it to current time, using PHP The time period will be stored in a session using PHP, so timezones won't apply [*]If the time period is still active (i.e: session time is greater than current time), don't execute the recruitment Say the time is a few minutes (5, or perhaps even more) Use timestamps ('cron'-way, or session way, entirely up to you) Say the time is a few hours, or above Use servers automatic tasks; crons :)
-
If this isn't a joke, I'll happily lend you a dollar.
-
Easier to leech off the 'predefined' $ir, than select and store in memory yourself :?
-
Thanks Bennyh789 for the kind words! I'm excited to see what the outcome is!