-
Posts
1,099 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by Lithium
-
user: demo pass: demo
-
Spudinski, i do know about FF memory issues, though Chrome is getting even worst than FF! :)
-
Actually... Chrome WAS the way to go. Used it for quite sometime, until noticing a few quirks with it... Chrome is nowadays more of a memory eater than FF!
-
and one other thing i just noticed, eregi() becomes deprecated as of PHP 5.3!
-
really? $check = mysql_query("SELECT * FROM `users` WHERE `activateCode` = '$activateCode' AND `username` = '$user' AND `verified` = '1'"); if($check == 1) { I see it failing here. And, after so many times everyone talking about the same... Is it really needed to use the SELECT * to check/update a single value?
-
by any chance you are testing that on a remote server? If you are trying to use it on a local computer, most likely running windows it will never work...
-
1. As RoZ said you need to secure the whole thing. 2. As it is you might be "activating" more than one account at a time. You should create unique activation codes for each player. The way you have can generate the same code for more than one. 3. SRB pointed the exact spot why you can't update the activation, and never will having that! 4. Use a second token (let's say email address or username) to the activation and make a query somehow along these lines... mysql_query("SELECT `username`, `activate` FROM `grpgusers` WHERE `actcode` = $codesenttomail AND `username` = $usersenttomail");
-
"Stop the SPAM" :P Now... i already have it here, though... it's still on the zip file! :) But... wouldn't HTTP cache be easier to use if set up directly on Apache (or whatever webserver people use)?
-
http://css-tricks.com/sending-nice-html-email-with-php/
-
Good luck on that! Seems you don't know how those tolerate scammers...
-
lastactive is going to pull the online time not the one on the forum table unless you have defined it so on classes! Meaning that whenever you make a "new User()" the lastactive will be defined as it is on User() class! $this->lastactive = $worked['lastactive']; so you need either to add a new line on the classes let's say $this->activeforum and need to add the query previously to the call, or make the sql's directly in the function
-
Happy birthday oldman
-
changing $a += floor($x+1500*pow(4, ($x/7))); play around with those values! both in experience() and Get_Level() they have to be the exact same.
-
[REQUEST] Looking for donator/IPN system
Lithium replied to Seker's topic in Requests & In Production
"there's no way to make the V2 IPN work with V1", honestly... i didn't knew Paypal had 2 different IPN's and/or even mccodes specific ones... The V2 is easily converted backwards as so v1 to v2, once again, using the search function, if you don't know how to make the conversion, there was a topic covering that same subject. http://makewebgames.io/forumdisplay.php/280-General-Discussion Check the sticky ones and you shall find your answer! -
[REQUEST] Looking for donator/IPN system
Lithium replied to Seker's topic in Requests & In Production
http://makewebgames.io/search.php?searchid=1287511 is enough? -
for around that value there are users here that make the full template... and pretty good ones actually!
-
<hr> is simply.. . fugly, make a small gif, with the minimum size (height and width) possible and use it instead the <hr> tag!
-
heh, considering the earlier screenshot... almost 30% less, if my memory is not tricking me! :)
-
meh! i must say those are excellent news! Seems i'll be doing what i wanted at first! :)
-
@sniko, you're being kind :P The problem without sanitizing, something along the lines sniko suggested, may lead to more serious problems than the one sniko showed! :)
-
See you used my approach to do it! :) One call for attention... if(isset($_POST['submit'])){ $theme = $_POST['layout']; $result = mysql_query("UPDATE `grpgusers` SET `layout` = '".$_POST['layout']."' WHERE `id` = '".$user_class->id."'"); Post can be manipulated, and you make no sanitize.... that can lead to issues! ;)
-
hmmm... first... add layout to user... ALTER TABLE `grpgusers` ADD `layout` VARCHAR( 30 ) NOT NULL DEFAULT 'default.css' on classes.php add $this->layout = $worked['layout']; To display the css <link rel="stylesheet" href="styles/<?php echo $user_class->layout; ?>" type="text/css" /> Now on user preferences, get a combobox to display all your color schemes, allowing the user to choose... Something along these lines... <form method="post"> <select name="layout" id="layout"> <option value="blue.css">Blue Layout</option> <option value="red.css">Red Layout</option> <option value="green.css">Green Layout</option> <option value="pink.css">Pink Layout</option> </select> <input type="submit" value="Change" /> </form> Obviously you will need to add a few extra lines, but i think you can manage to handle the $_POST Easier than this... impossible! :)
-
Same as Mccodes dice game, changed to work with GRPG. <?php include(DIRNAME(__FILE__) ."/header.php"); $maxbet = $user_class->level*500; $amount = (isset($_GET['bet'])) ? abs((int) $_GET['bet']) : ""; if (isset($_GET['bet'])) { if($amount > $user_class->money) { echo Message("You're trying to bet more than you have."); } elseif($amount > $maxbet) { echo Message("You have gone over the max allowed bet for your level ($".prettynum($maxbet).")."); } else { $slot[1] = abs((int) rand(1,6)); $slot[2] = abs((int) rand(1,6)); $slot[3] = abs((int) rand(1,6)); $slot[4] = abs((int) rand(1,6)); if($slot[1]==$slot[2] && $slot[2]==$slot[3] && $slot[3]==$slot[4]) { $won = $amount*12; $gain = $amount*11; mysql_query("UPDATE `grpgusers` SET `money` = `money` + ".$gain." WHERE `id` = '".$user_class->id."'"); echo Message("You took the dice and rolled them.<br /> You see the numbers: <strong>".$slot[1]." ".$slot[2]." ".$slot[3]." ".$slot[4]."</strong><br /> Your bet was: <strong>$".prettynum($amount)."</strong><br /> You won $".prettynum($won)." by rolling 4 numbers.<br /> After taking your bet you made $".prettynum($gain)." extra."); } else if (($slot[1] == $slot[2] && $slot[2] == $slot[3]) || ($slot[1] == $slot[3] && $slot[3] == $slot[4]) || ($slot[2] == $slot[3] && $slot[3] == $slot[4]) || ($slot[1] == $slot[2] && $slot[2] == $slot[4])) { $won=$amount*5; $gain=$amount*4; mysql_query("UPDATE `grpgusers` SET `money` = `money` + ".$gain." WHERE `id` = '".$user_class->id."'"); echo Message("You took the dice and rolled them.<br /> You see the numbers: <strong>".$slot[1]." ".$slot[2]." ".$slot[3]." ".$slot[4]."</strong><br /> Your bet was: <strong>$".prettynum($amount)."</strong><br /> You won $".prettynum($won)." by rolling 3 numbers.<br /> After taking your bet you made $".prettynum($gain)." extra."); } else { mysql_query("UPDATE `grpgusers` SET `money` = `money` - ".$amount." WHERE `id` = '".$user_class->id."'"); echo Message("Better luck next time. You just lost $".prettynum($amount)."!"); } } } ?> <tr> <td class="contenthead">Dice Game - Make a bet!</td> </tr> <tr> <td class="contentcontent"> Ready to try your luck? Play today!<br /> The max bet for your level is $<?php echo prettynum($maxbet); ?>.<br /> <form action='dice.php' method='get'> Bet: $<input type='text' name='bet' value='500' onkeyup="this.value=this.value.replace(/\D/g,'')" /><br /> <input type='submit' value='Roll!!' /> </form> </td></tr> <?php include(DIRNAME(__FILE__) ."/footer.php"); ?>
-
Seems to me that the scammer here... is you, but what do i know?