Jump to content
MakeWebGames

Isomerizer

Members
  • Posts

    1,170
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Isomerizer

  1. Re: 3 Word Game actually experienced since
  2. Re: [Free] [v1] User Verification [Captcha]   Do what excactly, Make it so they have to verfiy every x amount of times except for each time? If so give me the amount of times and i'll have a pop :P
  3. Re: mysql inquiry Gbay Auctions is :? my mistake... :|
  4. Re: mysql inquiry Erm, not to be horrible, But i dont think this is in right place, This is DBS Support forum, I think its only suppose to be for DBS problems ...Sorry. Try posting it under PHP / MySQL Forum.
  5. Re: SORRY ABOUT THIS BUT I NEED HELP AGAIN ITS URGENT Doubt its a bug, can be random, Not to long ago i made some NPC's with alot higher stats the all the players, But the players killed them quite easily.... Thats how the attack system works :|
  6. Re: SORRY ABOUT THIS BUT I NEED HELP AGAIN ITS URGENT Did you equip the test account with a weapon? Make sure its other stats are higher then yours too not just strength.
  7. Re: Can you help me debug my codes I think for the first script this should work:   <?php if (isset($_POST['Login'])) { $Username = mysql_real_escape_string($_POST['Username']); $Password = mysql_real_escape_string($_POST['Password']); mysql_connect("localhost", "root", "private") or die (mysql_error()); mysql_select_db("databasename") or die (mysql_error()); $chkUSERNAME = mysql_query("SELECT * FROM `userregistration` WHERE `Username` = '".$_POST['Username']."'"); $getUSERNAME = mysql_fetch_object($chkUSERNAME); if($_POST['Username'] != $getUSERNAME->Username) { die('Username or password is incorrect, please check your spelling!'); } $chkPASSWORD = mysql_query("SELECT * FROM `userregistration` WHERE `Password` = '".$_POST['Password']."'"); $getPASSWORD = mysql_fetch_object($chkPASSWORD); if($_POST['PASSWORD'] != $getPASSWORD->Password) { die('Username or password is incorrect, please check your spelling!'); } header("Location: success.php"); } ?>   Changed a few }'s around, Also if you get header output alreay send out use html redirection instead.
  8. The Minesweeper Mod... This is a mod requiring no extra sql. Its mainly sessions. This mod is not excactly like the orignal game but is based off of it, Users have 50 squares, 10 are bombs, If they hit the bomb they lose the game it is then reset, And they lose money, If they hit a blank square they win $$ and continue on playing, Can be intense for users and will keep them hooked on the edge of there seat. There enjoy playing this for hours. And will keep users more active on your game, Easy to set up, Very fun! And best of all only $5!!!. Price: $5 Paypal Email: [email protected] Screenshots (Mod will be sent to paypal email address compressed folder.) Can be seen working @ www.amazon-survival.com
  9. Re: [Mccode][Free] House Pictures Its easier to just use something like this in index.php:   if ($ir['hNAME']=="Hole") { echo "Picture of a {$ir['hNAME']}"; } if ($ir['hNAME']=="Box") { echo "Picture of a {$ir['hNAME']}"; } if ($ir['hNAME']=="Under tree") { echo "Picture of a {$ir['hNAME']}"; } if ($ir['hNAME']=="Tree") { echo "Picture of a {$ir['hNAME']}"; } if ($ir['hNAME']=="Tree house") { echo "Picture of a {$ir['hNAME']}"; } if ($ir['hNAME']=="Tent") { echo "Picture of a {$ir['hNAME']}"; } if ($ir['hNAME']=="Bunker") { echo "Picture of a {$ir['hNAME']}"; } if ($ir['hNAME']=="Hut") { echo "Picture of a {$ir['hNAME']}"; } if ($ir['hNAME']=="Bungalow") { echo "Picture of a {$ir['hNAME']}"; } if ($ir['hNAME']=="Base") { echo "Picture of a {$ir['hNAME']}"; } if ($ir['hNAME']=="Mansion") { echo "Picture of a {$ir['hNAME']}"; }
  10. Re: [v1] [Free] Personal Notes [simple] Ok, i read up on them, still dont understand them to well, I allways thought they were used when people used $_GET, didnt know they could be used on $_POST. From now on i'll try using the mysql_real_escape_string on variables used in a mysql query.
  11. Re: [v1] [Free] Personal Notes [simple] Ok, updated it again, looked up mysql_real_escape_string and it showed me aload of php security code / tips. I dont know if ive used the functions correctly, But it works, Not sure if its preventing sql injections, Can ya tell me if ive done it wrong? And i'll correct. :-)
  12. Re: [v1] [Free] Personal Notes [simple] Ok... String replace added, That will secure it right?
  13. Ok, well i didnt know if i should even bother posting this, as its very simple and i didnt see it on here and i had to make it myself. But can be a great add on, especially for the begginer coders. Its a simple add on that will allow users to have there own personal notes on index.php Create a new file called personalnotes.php with:   <?php //* Free personal notes mod made by Isomerizer (Very Simple) *\\ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $notes=stripslashes($_POST['notes']); $notes=str_replace(array("<", ">", "sql", "query", "_"), array("", "", "", "", ""), $notes); $perform= sprintf("UPDATE users SET notes='$notes' WHERE userid=$userid"); mysql_real_escape_string($notes, $c); mysql_query($perform, $c); echo "Personal Notes Updated! Back"; echo " > Clear Notes < "; if (mysql_affected_rows($c) < 0 || mysql_affected_rows($c) > 1) { echo "Error"; exit; } if ($_GET['action']==clear) { mysql_query("UPDATE users SET notes='Recently Cleared' WHERE userid=$userid",$c); echo "Personal Notes Cleared!"; } $h->endpage(); ?> ?>   Open index.php & add where ever you want the note box to be...   echo " </pre> <table>Personal Notes:{$ir['notes']} </table>   SQL:   ALTER TABLE `users` ADD `notes` TEXT NOT NULL ;
  14. Re: Gang OCs v2 Not sure for v2, But for v1, its under phpmyadmin, under orgcrimes. Try searching your DB :)
  15. Re: Mod Discussion Voted Anti Piracy
  16. Re: User Bars Anyway to fix it? :lol:
  17. Ok now and then, not allways when user bars are full, the picture isnt actually full up. If you get my drift. Leys say Happy / Motivation w/e is 100% the userbar will have a bit of red at the end :S. Sometimes this doesnt happen, sometimes it does, it annoys me. Any idea what may be causing this and how it can be fixed? :?
  18. Re: [Free] [v1] User Verification [Captcha]   maybe could change the if statement to $_SESSION['verified']==10 then set $_SESSION['verified']=0 and everytime it sets $_SESSION['verified']=$_SESSION['verified']+1 think something like that should work, But i'd rather have it everytime >.<
  19. Re: [Free] [v1] User Verification [Captcha]   No no, maybe your understanding me wrong, A user can verify then train, then once they actually train they unset the session and have to verify again, so if you did make a bot it would train at the max once, Not much point tbh :)
  20. Re: [Free] [v1] User Verification [Captcha]   1. Validate every time you train at least once. So not every login. 2. Everything can be bypassed now a days. 3. Incorrect , not needed :-P lol.
  21. Ok, this mod will add user verification on the gym page, to stop bots and refresher's. It can also be added to the register.php and crimes if you want, just fiddle about with the sessions and file names. No SQL Required :-o Remember to create images/captcha directory. Updates: - Hidden value md5 encrypted. - Compatible with all browsers!   Create validate.php with the code:   <?php /*----------------------------------------------------- -- Isomerizer copyright 2007 -- A product of isomerizer.com -- validate.php -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.*,j.*,jr.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON jr.jrID=u.jobrank WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $hidden=htmlspecialchars($_POST['code'], ENT_QUOTES); if (empty($hidden)) { echo "Human Verification"; echo " "; $im = ImageCreate(100, 25); $white = ImageColorAllocate($im, 47, 79, 79); $black = ImageColorAllocate($im, mt_rand(200,250),mt_rand(100,150),mt_rand(150,200)); srand((double)microtime()*1000000); $rand1=rand(1,9); $rand2=rand(1,9); $rand3=rand(1,9); $rand4=rand(1,9); $rand5=rand(1,9); $verification ="$rand1 $rand2 $rand3 $rand4 $rand5"; $thevalue=md5("abczskfotldofj".session_id().$rand1.$rand2.$rand3.$rand4.$rand5); ImageFill($im, 0, 0, $black); ImageString($im, 6, 11, 5, $verification, $white); $rander=rand(100000,999999); Imagejpeg($im, "images/captcha/verify$rander.jpeg"); ImageDestroy($im); echo ""; echo "[img=images/captcha/verify$rander.jpeg] "; echo "Type in the above : "; echo ' '; } else { if ($_POST['hiddenvalue']==md5("abczskfotldofj".session_id().$_POST['code'])) { echo ' CONTENT="0; URL=gym.php">'; $_SESSION['verified']=1; } if ($_POST['hiddenvalue']!=md5("abczskfotldofj".session_id().$_POST['code'])) { echo "What you typed in was wrong Re Try"; } } ?>   Open under crons braveupdate.php & at the bottom just before ?> before add:   function recursive_remove_directory($directory, $empty=FALSE) { if(substr($directory,-1) == '/') { $directory = substr($directory,0,-1); } if(!file_exists($directory) || !is_dir($directory)) { return FALSE; }elseif(!is_readable($directory)) { return FALSE; }else{ $handle = opendir($directory); while (FALSE !== ($item = readdir($handle))) { if($item != '.' && $item != '..') { $path = $directory.'/'.$item; if(is_dir($path)) { recursive_remove_directory($path); }else{ unlink($path); } } } closedir($handle); // if the option to empty is not set to true if($empty == FALSE) { if(!rmdir($directory)) { return FALSE; } } // return success return TRUE; } } @recursive_remove_directory('/path/to/directory/images/captcha',TRUE);   Open gym.php & find:   if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }   Under add:   if($_SESSION['verified']==0) { header("Location: validate.php");exit; }
  22. Re: [V1] FREE! ID refiller/counter I guess you have to wait a day for this mod to kick in? :wink: Needed something like this just deleted 700 user's. :/
  23. Re: 3 Word Game because something funny
  24. Re: [Free] [v1] Profile Image Uploader   The address? :| Well it will be hosted on yours... So most probaly ftp://sitename.com
  25. Re: [Free] [v1] Profile Image Uploader     Open up your FTP server, wait until it connects, then double click public_html. Then create a new file / directory in there called "profilepics" and it should work fine. :wink:
×
×
  • Create New...