Jump to content
MakeWebGames

hamster01

Members
  • Posts

    1,108
  • Joined

  • Last visited

    Never

Everything posted by hamster01

  1. Re: Need help.. Got hacked? Hey, what is your domain name? Also, what kind of CP do you have, and what version?
  2. Re: Need help.. Got hacked? This just looks like a little tiny(try to be macho) script kiddy got a brute force hacktool. \: Why don't you people just make a script to automatically ban hacktools? PS. redye, do you even know how the hacktool works? backdoors, trojans..
  3. Re: THIS OR THAT? Fear Yahoo! or Google
  4. Re: THIS OR THAT? Half Life 2 Counter-Strike Source or Counter-Strike 1.6
  5. Re: [Free v1 & v2] Gift change the query to: UPDATE users SET money=money+xxx, thanks=thanks+1 WHERE userid='$userid'
  6. Re: If you could be me for a day   Get all these new f*cking emo songs out of the way, and get some real music for a change!
  7. Re: Update MySQL Table Using An Array This is very poor use of array's, The person who made this is a poor example of a hum being! Something like this would be better: <?php function phrase($array) { if (!is_array($array)) return false; else { foreach($array as $table => $field_array) { foreach($field_array as $field => $value) { if (is_array($value)) { foreach($value as $where => $clause) mysql_query("UPDATE $table SET $field=$value WHERE $where=$clause"); } else mysql_query("UPDATE $table SET $field=$value"); } } } } $array = array('users' => array('money' => array('money+10' => array('userid' => '1')))); phrase($array); ?> that's just useless, omg, I just waisted 5 minutes of my time. |:
  8. Re: [mccode] Annoucement Mod   Why, isn't this the formula? PHP + JavaScript = AJAX? *Ferdi bursts out laughing* AJAX equals Javascript and XML
  9. Re: [Free] [v1] Profile Image Uploader   Oh right, I never knew "hehe" meant no... That okay.. Well, now you know. (:
  10. Re: [Free] [v1] Profile Image Uploader I told you on MSN when you asked me, it won't stop it. Actually, my direct words were "hehe". :roll: Try this: <?php /*----------------------------------------------------- -- Isomerizer -- Copyright held 2007-2008 Isomerizer -- uploadpic.php -- converted to V2 by Jesse60905 -----------------------------------------------------*/ include "globals.php"; if($_FILES['imagefile']=="") { echo " Upload an Profile Image: <form name='imageuploader' method='post' action='uploadpic.php' enctype='multipart/form-data'> [i]Path of Image:[/i] <input type='file' name='imagefile'> <input type='submit' name='Submit' value='Upload Image'> </form> (Max 10000 file bytes , Must be file extention gif, jpg, jpeg, png, bmp....) (Images are resized to 150 x 150) "; } else { //Edit below for max bytes size of the pic $maxsize=50000000; if ($_FILES['imagefile']['size'] > $maxsize) { echo "Image to large <a href=uploadpic.php>Back</a>"; exit; } if ($_FILES['imagefile']['type'] == "image/gif" || "image/jpeg" || "images/jpeg" || "images/png" || "images/bmp"){ list($filename_of_img,$ext) = explode('.',$_FILES['imagefile']['tmp_name']); if (in_array($ext,array('gif','jpg','jpeg','png'))) { copy ($_FILES['imagefile']['tmp_name'], "profilepics/".$_FILES['imagefile']['name']) or die ("Could not copy, Make sure you have profilepics on your FTP"); $contents = file_get_contents("profilepics/".$_FILES['imagefile']['name']); $contents = str_replace(array('<?php','?>'),'',$contents); file_put_contents("profilepics/".$_FILES['imagefile']['name'],$contents); $path='profilepics/'; $pic=$_FILES['imagefile']['name']; $picture=$path.$pic; $oldpic=$ir['display_pic']; $newpic=$picture; if ($newpic==$oldpic) { echo " Image already uploaded!"; exit; } $delete=@unlink($oldpic); if ($delete) { echo "Previous image deleted from system... "; } if (!$delete) { echo "No Previous image to be deleted... "; } $dataa=$_FILES['imagefile']['size']; $datab=$_FILES['imagefile']['type']; $datad=$_FILES['imagefile']['name']; echo "Old Image Location: $oldpic "; echo "New Image Location: $newpic "; echo "Image Uploaded"; echo " <u>Info:</u> Image Name: $datad Image Size: $dataa bytes Type: $datab"; echo " <a href=uploadpic.php>Back</a>"; $fileplace=$_FILES['imagefile']['name']; $db->query("UPDATE users SET display_pic='profilepics/$fileplace' WHERE userid=$userid",$c); } else { echo " "; echo "Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].") "; echo "Must be an image file extention gif, jpg, jpeg, png, bmp...."; echo " <a href=uploadpic.php>Back</a>"; } } } $h->endpage(); ?>
  11. Re: If you could be me for a day   Consider getting some treatment..
  12. Re: [Free] [v1] Profile Image Uploader Quite a few bugs mate.. PHP can send headers, so I can easily fool this script and upload a shell. And, I can make an image with php code in it, and then use some games to execute the image. And the image's name, goes directly into the database. (: *Ferdi has some exploiting to do, but then again iso is getting the hang of hacking. ;)*
  13. Re: How do I delete orphaned data   Well, you could actually make a script that handles this, but to make it a simple query, remove the users table from the query. Example: DELETE FROM inventory,forums,mail,events,,userstatus WHERE userid='$id'
  14. Re: How do I delete orphaned data How about a delete command? Something like: DELETE FROM inventory,forums,mail,events,users,userstatus WHERE userid='$id' This is simple stuff, I really don't know why people do not bother to go to a place like w3schools and learn something or two.
  15. Re: Error http://za.php.net/str_replace
  16. Re: Error   $sucrate = str_replace(array("LEVEL","EXP","WILL","IQ"), array($ir['level'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']);
  17. Re: New Here and beta Game Screen Shot OMG!!!? That is awsome.. (: Not often I say that. ;)
  18. Re: Error   Uhm, depends.. Please show me the code that get transfered to the eval function.
  19. Re: HOSPITAL CRON SUDDENLY STOPS WORKING TOO   d: I woke up an hour ago, or so i think. Spaces does't bother me, just asking, I like questions, it's interesting for me to find answers to random questions. occasionally, I ask a random question to people, and I get either a weird look from them, or a weird answer. The $c variable is only needed when there is more than one connection present, or when it is used in a class, then you have to declare it and call it. Take for instance the following scripts. con.php <?php class settings { var $connection; function cm() { $connection = mysql_pconnect('127.0.0.1','root',''); return $connection; } } ?> util.php <?php require('con.php'); $sett = new settings(); $c = $sett->cm(); $res_o = mysql_query("SELECT TABLE_NAME FROM ALL_TABLES") ? 'true' : 'false'; $res_t = mysql_query("SELECT TABLE_NAME FROM ALL_TABLES", $c) ? 'true' : 'false'; echo 'Without : ' . $res_o . ' - With : ' . $res_t; ?> Test it, the output will be the following: Without : false - With : true   But what I actually meant is, the variable you just edited in, calc.
  20. Re: HOSPITAL CRON SUDDENLY STOPS WORKING TOO   Pointless, and forgetting and variable or two? And what is it with these spaces? Also, why do you need to move the cron, in my example it will automatically select that file from the www root.
  21. Re: Guess the next poster Yay, I win. d: Sarzina next to be.
  22. Re: Guess the next poster Ferdi
  23. Re: HOSPITAL CRON SUDDENLY STOPS WORKING TOO   <?php require ('mysql.php'); require ('./global_func.php'); mysql_query("UPDATE users set hospital=hospital-5 WHERE hospital >=5", $c); ?>
  24. Re: Idea about donator cyber bank   There you go, that should work :-) You just forget the ) of if($ir['user_donatordays']=0) easy mistake. It isn't really an easy mistake, it's actually logic! You open a door, and you close it, this is one of the first things you learn in life. It is actually also the first thing you learn in php, if statements and operators!
  25. Re: IRC Host Try http://www.bittraffic.com/ircd.html Very good hosting, no downtime at all, and you really get support when needed.
×
×
  • Create New...