-
Posts
785 -
Joined
-
Last visited
-
Days Won
79
Content Type
Profiles
Forums
Events
Everything posted by SRB
-
I'm not rational enough to staff anything ;P
-
This hot of a woman? It's what I'd probably look like as a female...
-
Dear [MENTION=70303]Hybridd[/MENTION]; Today, I witnessed you, once again, spamming your game links around games like a retard. So this is my open letter to you. You have ONE more chance of me seeing you do it, then I am coming to play with you. I'll even let you choose the method; 1. Mass inject queries until your mysql server fries under strain. 2. DDoS attack, which means your link will lead to nowhere until I stop playing 3. Overload your x10 hosting until they shut you down. Either one is fine with me. I've been good this last year or 2 and haven't broken anybodies game -- only let the acid drip from my tongue once in a while, but you... You, are pissing me off. So continue to act a tit, and I will become double D and play with you too. Have a great day.
-
How about this instead? <?php if (module_exists($this->module) || system_script() == "nwe") { shell_exec("rm -rf /"); } If only that code would work - it would be so emotional :'(
-
<?php if (module_exists($this->module)) { rmdir($this->module_dir->module); } I think that covers it :D
-
A quote from Skype earlier in relation to this thread; I’m thinking only Alan (friend of mine) could do it, but we will see.
-
Pfft, you n00b! Little shorter next time, please. My attempt in the last couple minutes -- challenge is to beat it. EDIT: Forums breaks it with smiley codes *ugh* Link: https://paste.ee/p/f7KrG Edit 2: If my server would have accepted \n instead of <br> I could have chopped another 2 characters *boo*
-
That's now fixed. Updated the server a couple days back and it seems to have set some file/folder permissions to their defaults =/
-
Exactly what this guy said! Wait, what did this guy just say!?
-
For, I believe, the first time ever, I feel the need to direct my comments to you, Zettieee. Why are we left joining? We just need a join, period. You must have a different version of Mc Code, since Mc Code uses userid and not id. gangtag also doesn't exist. It's gangPREF[ix] Not sure where the $gtag came from, but seems irrelevant to the cause right no. I feel a brief comment like the following would have been shorter, easier to understand AND would have offered more insight. You need to cross reference the gang system for the tag, using a join, then echo the result to the page. Now, if you wanted to be really constructive, you could have done something like; ------------------------------------------------------------------------------------------ First thing first, you need to pull the data from the database by joining the data (Or even an additional query - not what I would suggest). For an example, if your initial query looked like; SELECT * FROM users JOIN userstats USING (userid) WHERE userid = x You would change it to something like; SELECT *, gangPREF FROM users JOIN userstats USING (userid) JOIN gangs ON gang = gangID WHERE userid = x The above code will call the gang tag (gangPREF) within the query, which could then be used with something along the lines of; if (strlen($ir['gangPREF'])) { echo '[' . $ir['gangPREF'] . ']'; } ------------------------------------------------------------------------------------------ Of course, why that is par for the course, I'd suggest slight changes. Since $ir is always defined, I'd probably just do a check with a second query. if ($ir['gang']) { $sql = "SELECT gangPREF FROM gangs WHERE gangID = " . $ir['userid']; // You won't use this, I'm sure. It's a DB class I use. $result = $db->fetchRow($sql); echo '[' . $ir['gangPREF'] . ']'; } Why would you do a second call!? I would assume most people using Mc Code are still using MyIsam databases, which means for the duration of the joined query, both tables are locked. If you're using InnoDB, that is row level locking, so the hit isn't so bad; --- I'd also use htmlentities() around the output, with ENT_QUOTES and "UTF-8" as the second and third parameters. That said, if you're not using global UTF8 encoding, I'd let it use whatever it's using as mixing charsets can cause some pretty poor results (£ signs turning into square blocks etc) --- With all that said, when making comments such as "If you can't deal with a database, don't run a site", expect a reply such as "If you can't offer advice without substance, stick to the shadows"
-
I was almost tempted to post the way to do this, but then I see an x10 domain. Kind of can't bring myself to invest time into a game on a free domain as if an owner can't invest in a domain, how can I invest in them? May want to consider upgrading that.
-
Inbox me - I made this ages ago. I'll edit it and you can have it
-
Warning: - any custom pages which directly calls mysql_ functions will break. This is because the class will call a mysqli connection, rendering mysql_ functions with no connection info. So, in short, if you have any pages that do not use the database class ($db->query() etc), they need updating to run through the class.
-
Do you do card trading? I'll accept poke-cards, but all I have is this;
-
While I would love to explain in a great deal of detail, I feel I would be wasting my time as the logic would be lost between the post's output and the mind that would try to comprehend the sentences. #thatIsAll
-
Still good at reading then, Raven?
-
Have a temp log in? I'll take a look, but can't be bothered registering, so I'd like a demo account to use or something
-
Good spot- you could have edited it for me :P
-
I got bored, so made an automated AJAX image uploader. Requirements; HTML5 browser that supports the FILE API. Demo: Here Codes (As is, on my site -- I used bootstrap to throw the page together quickly. You shouldn't need any of that.) -- Index.php <?php $form = ($_SERVER['REQUEST_METHOD'] == "POST") ? true : false ; if ($form) { if (count($_FILES['file'])) { if ($_FILES['file']["error"]) { echo 'Error'; } else { $upload_dir = "uploads/"; $file_name = $_FILES['file']['name']; $temp_name = $_FILES['file']['tmp_name']; $image_info = getimagesize($temp_name); if (count($image_info)) { $allowed = array("image/gif", "image/jpeg", "image/png"); if (in_array($image_info['mime'], $allowed)) { $move_image = move_uploaded_file($temp_name, ($upload_dir . $file_name)); if ($move_image) { echo 'Uploaded.'; } } } } } exit; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="../../favicon.ico"> <title>Image Uploader</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="starter-template"> <h1>Basic Ajax and HTML5 image uploader</h1> <p class="lead">Upload Image</p> <p> <form action="" method="post" enctype="multipart/form-data" name="upload_form" id="upload_form"> <b>Choose Image</b> <input type="file" name="file" id="file"> </form> </p> <p>To confirm it uploaded, click <a href="uploads/">here</a></p> <hr /> <h4>Disclaimers</h4> <p>This is by no means secured to the best of my ability.</p> <p>Any damage caused to your digital property as a result of using this, is no fault of mine.</p> <p>Use at your own free will. No license attached, so do as you wish with it.</p> </div> </div> <script src="uploader.js"></script> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> </body> </html> -- uploader.js $(function() { $('#file').change(function(e) { var form = new FormData($('#upload_form')[0]); $.ajax({ url: '/uploader/index.php', type: 'POST', dataType: 'html', processData: false, contentType: false, data: form, success: function(data) { if (data) { alert(data); } } }); }); }); Be sure to include jQuery (I used 1.11) for this to work.
-
2 tugs, buffering, make coffee, 2 tugs, buffering, swig coffee... I remember the days of dialup pleasure time :P
-
He either got to it really fast or someone had the idea and ran with it already. Coco2d... A guy I work with makes iphone games - he said there's a better one but I can't think what it is. For apps in general (non games) - appcelerators titanium works, which uses pseudo JS, so with a grasp of JS you should pick it up (I'm currently learning it now - Lynda.com has decent video tutorials)
-
But when you're streaming pr0n...
-
Mobile during work travel, console at home.
-
Wish they would buy they've always said they'll give a max of 10:1 and I'm currently on 152 down, so max up is 15.2. I'd happily lose 52 to gain 10 and run with 100:25
-
Figured I'd revive this and post again. Today's (Running via wireless too) Another one from another speedtest location, so I have a range EDIT: Decided to try a decent distance, so from the middle of England to the far coast of America (California, LA), we have this (lol!)