Jump to content
MakeWebGames

Lithium

Members
  • Posts

    1,099
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Lithium

  1. Re: Hospital/Jail Count stuck   $blah=mysql_fetch_array(mysql_query("SELECT COUNT(hospital) as in_hospital FROM users WHERE hospital>0",$c)); $bla=mysql_fetch_array(mysql_query("SELECT COUNT(jail) as in_jail FROM users WHERE jail>0",$c)); $hc=$blah['in_hospital']; $jc=$bla['in_jail'];
  2. Re: Hospital/Jail Count stuck why should cron be used to fetch this data? a simple query does the job... and better... it doesn't updates every minute... updates on the "spot"
  3. Re: Hospital/Jail Count stuck SELECT COUNT(hospital) as in_hospital FROM users WHERE hospital>0 and basicly the same to jail SELECT COUNT(jail) as in_jail FROM users WHERE jail>0 and call it using $var['in_hospital'] or $var['in_jail'] where $var would be the name for the given query
  4. Lithium

    Help please

    Re: Help please   localhost for mySQL hostname, and database as 03laceys said, go to cpanel, create the db first and then just place the name of the db you just created.
  5. Re: Database FATAL error seems you need to go into cpanel frist and set the db's / db users and pwd's! :)
  6. Lithium

    Tutorial Search

    Re: Tutorial Search I've already considered, Naggios, Zabbix and Cacti, for a quick glance on how to make what i need, though my problem is that i need a "bridge" between remote servers and OpenView (management server) as some of the actions i need to grab are only triggered if you have the ovo agent on the remote machines, which i want to avoid as they tend to fail quite often in a few traps.
  7. Lithium

    Tutorial Search

    does anyone knows any GOOD tutorial on the usage of PHP and SNMP traps?
  8. Hello all, [infobox] Modifaction is old and used to be paid, however now releasing for free[/infobox] As i was tired to scroll and scroll and scroll on huge listings on other people's games item markets, i came up with myself making a not that original, but yet usefull revamped item market. Instead having a list on everything... you get a full list on items available on game (you can block categories to don't show), and user can search specifically for what he wants, either 1 item at a time or multiple categories items. A few screenies go down for an overall on what it looks like. <?php /* itemmarket.php by Lithium distribution/selling/sharing of this file is illegal without permission. */ include "globals.php"; function quote_smart($value) { if (get_magic_quotes_gpc()) { $value = stripslashes($value); } if (!is_numeric($value)) { $value = "'" . mysql_real_escape_string($value) . "'"; } return $value; } function item_mremove() { global $ir,$c,$userid,$h; $q = mysql_query("SELECT im.*,i.* FROM `itemmarket` `im` LEFT JOIN `items` `i` ON `im`.`imITEM` = `i`.`itmid` WHERE `imID` = '{$_GET['ID']}' AND `imADDER` = $userid"); if(!mysql_num_rows($q)) { ?> Error, either this item does not exist, or you are not the owner. [url="itemmarket.php"]Go Back[/url] <? $h->endpage(); exit; } $r = mysql_fetch_array($q); mysql_query("INSERT INTO `inventory` VALUES('',{$r['imITEM']},$userid,1)",$c) or die(mysql_error()); $i = mysql_insert_id($c); mysql_query("DELETE FROM `itemmarket` WHERE `imID`={$_GET['ID']}",$c); mysql_query("INSERT INTO `imremovelogs` VALUES ('', {$r['imITEM']}, {$r['imADDER']}, $userid, {$r['imID']}, $i, unix_timestamp(), '{$ir['username']} removed a {$r['itmname']} from the item market.')", $c); ?> Item removed from market! [url="itemmarket.php"]Go Back[/url] <? } function item_buy() { global $ir,$c,$userid,$h; $q = mysql_query("SELECT * FROM `itemmarket` `im` LEFT JOIN `items` `i` ON `i`.`itmid` = `im`.`imITEM` WHERE `imID` = {$_GET['ID']}"); if(!mysql_num_rows($q)) { ?> Error, either this item does not exist, or it has already been bought. [url="itemmarket.php"]Go Back[/url] <? $h->endpage(); exit; } $r = mysql_fetch_array($q); if($r['imPRICE'] > $ir['money']) { ?> Error, you do not have the funds to buy this item. [url="itemmarket.php"]Go Back[/url] <? $h->endpage(); exit; } mysql_query("INSERT INTO inventory VALUES('',{$r['imITEM']},$userid,1)",$c) or die(mysql_error()); $i=mysql_insert_id($c); mysql_query("DELETE FROM itemmarket WHERE imID={$_GET['ID']}",$c); mysql_query("UPDATE users SET money=money-{$r['imPRICE']} where userid=$userid",$c); mysql_query("UPDATE users SET money=money+{$r['imPRICE']} where userid={$r['imADDER']}",$c); event_add($r['imADDER'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought your {$r['itmname']} item from the market for \$".number_format($r['imPRICE']).".",$c); mysql_query("INSERT INTO imbuylogs VALUES ('', {$r['imITEM']}, {$r['imADDER']}, $userid, {$r['imPRICE']}, {$r['imID']}, $i, unix_timestamp(), '{$ir['username']} bought a {$r['itmname']} from the item market for \${$r['imPRICE']} from user ID {$r['imADDER']}')", $c); ?> You bought the <?=$r['itmname']?> from the market for $<?=number_format($r['imPRICE'])?>. [url="itemmarket.php"]Go Back[/url] <? $h->endpage(); exit; } function item_gift1() { global $ir,$c,$userid,$h; $q=mysql_query("SELECT * FROM itemmarket im LEFT JOIN items i ON i.itmid=im.imITEM WHERE imID={$_GET['ID']}",$c); if(!mysql_num_rows($q)) { ?> Error, either this item does not exist, or it has already been bought. [url="itemmarket.php"]Go Back[/url] <? $h->endpage(); exit; } $r=mysql_fetch_array($q); if($r['imPRICE'] > $ir['money']) { ?> You do not have the funds to buy this item. [url="itemmarket.php"]Go Back[/url] <? $h->endpage(); exit; } ?> Buying the [b]<?=$r['itmname']?>[/b] for $<?=number_format($r['imPRICE'])?> as a gift... <form action="itemmarket.php?action=gift2" method="post"> <input type="hidden" name="ID" value="<?=$_GET['ID']?>" /> User to give gift to: <?=user_dropdown($c,'user')?> <input type="submit" value="Buy Item and Send Gift" /> </form> <? } function item_gift2() { global $ir,$c,$userid,$h; $q=mysql_query("SELECT * FROM itemmarket im LEFT JOIN items i ON i.itmid=im.imITEM WHERE imID={$_POST['ID']}",$c); if(!mysql_num_rows($q)) { ?> Error, either this item does not exist, or it has already been bought. [url='itemmarket.php']> Back[/url] <? $h->endpage(); exit; } $r=mysql_fetch_array($q); if($r['imPRICE'] > $ir['money']) { ?> Error, you do not have the funds to buy this item. [url='itemmarket.php']Go Back[/url] <? $h->endpage(); exit; } mysql_query("INSERT INTO inventory VALUES('',{$r['imITEM']},{$_POST['user']},1)",$c) or die(mysql_error()); $i=mysql_insert_id($c); mysql_query("DELETE FROM itemmarket WHERE imID={$_POST['ID']}",$c); mysql_query("UPDATE users SET money=money-{$r['imPRICE']} where userid=$userid",$c); mysql_query("UPDATE users SET money=money+{$r['imPRICE']} where userid={$r['imADDER']}",$c); event_add($r['imADDER'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought your {$r['itmname']} item from the market for \$".number_format($r['imPRICE']).".",$c); event_add($_POST['user'], "[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought you a {$r['itmname']} from the item market as a gift.",$c); $u=mysql_query("SELECT * FROM users WHERE userid={$_POST['user']}",$c); $uname=mysql_result($u,0,1); mysql_query("INSERT INTO imbuylogs VALUES ('', {$r['imITEM']}, {$r['imADDER']}, $userid, {$r['imPRICE']}, {$r['imID']}, $i, unix_timestamp(), '{$ir['username']} bought a {$r['itmname']} from the item market for \${$r['imPRICE']} from user ID {$r['imADDER']} as a gift for $uname [{$_POST['user']}]')", $c); ?> You bought the <?=$r['itmname']?> from the market for $<?=number_format($r['imPRICE'])?> and sent the gift to <?=$uname?> <? } /* check which items are valid to use edit $invalid_ids to suit your needs each array placed here won't be listed (category ID on db) */ $invalid_ids = array('8','9','10'); $q = "SELECT itmtypeid,itmtypename FROM itemtypes"; $q1 = "SELECT itmtype,itmid,itmname FROM items"; if(is_array($invalid_ids) && !empty($invalid_ids)) { $q.=" WHERE itmtypeid NOT IN ("; $q1.=" WHERE itmtype NOT IN ("; $count = count($invalid_ids); for($i=0; $i< $count;$i++) { $i_v .= "'".$invalid_ids[$i]."'"; if($i < $count-1) $i_v .= ","; } $q.= $i_v.")"; $q1.= $i_v.")"; } $q.= " ORDER BY itmtypeid"; $q1.= " ORDER BY itmtype"; $x = mysql_query($q,$c); while($xx = mysql_fetch_array($x)) { $title_item[$xx['itmtypeid']] = $xx['itmtypename']; $a[$xx['itmtypeid']][] = array(); } $x = mysql_query($q1,$c); while($xx = mysql_fetch_array($x)) { $a[$xx['itmtype']][] = $xx; } ?> <form id="form" name="form" method="post" action="<?=$_SERVER['PHP_SELF']?>"> <table width="100%" class="inner"> <tr class="fill"> <td colspan=3 class="inner">Item Market</td> </tr> <tr> <td colspan=3 class="inner"> Select the item type you want to buy from the dropdown boxes. If there is any item fro sale it will show you the links to it. </td> </tr> <tr> <td> <? $i=0; foreach ( $a as $key => $value) { $xx = $value; $i++; ?> <table width="100%" class="inner"> <tr class="fill"> <td class="inner"><?=$title_item[$key]?></td> </tr> <tr> <td class="inner"> <select name="s_<?=$key?>" id="s_<?=$key?>"> <option value="0"></option> <option value="-1">Check All</option> <? if(is_array($xx)){ foreach($xx as $x) { if(!empty($x)) { ?> <option value="<?=$x['itmid']?>"> <? echo $x['itmname'];?> </option> <? } } }?> </select> </td> </tr> </table> <? if( $i > 0 && $i < 3) { ?> </td> <td> <? } else { $i = 0; ?> <tr> <td> <? } } for($j=$i;$j > 0; $j--) { ?> </td><td> <? } ?> </td> </tr> <tr class="fill"> <td colspan=3 class="inner"> <input type="submit" name="search" id="search" value="Search" /> </td> </tr> </table> </form> <? switch($_GET['action']) { case "buy": item_buy(); break; case "gift1": item_gift1(); break; case "gift2": item_gift2(); break; case "remove": item_mremove(); break; } if(isset($_POST) && isset($_POST['search'])) { foreach($_POST as $key => $value) { if(preg_match("/^s_(\d*)$/", $key, $match)) { if($value == -1) { $a_it[]= quote_smart($match[1]); } else if($value != 0 && $value != -1) { $a_id[]= quote_smart($value); } } } $sql_get ="SELECT DISTINCT username, userid, itmid, itmname, imPRICE, imID, imADDER FROM itemmarket LEFT JOIN items ON items.itmid = itemmarket.imITEM LEFT JOIN itemtypes ON itemtypes.itmtypeid = items.itmtype LEFT JOIN users ON users.userid = itemmarket.imADDER "; if(isset($a_id) || isset($a_it)) { $sql_get.= "WHERE "; } else { ?> No items found. Please try some other search option! <? $h->endpage(); exit; } if(isset($a_id) && is_array($a_id) && !empty($a_id)) { $count = count($a_id); for($i=0; $i < $count; $i++) { $sql_get.= "itmid = '".$a_id[$i]."' "; if($i < $count - 1) $sql_get.= "OR "; } } if(isset($a_it) && is_array($a_it) && !empty($a_it)) { if(isset($a_id)) $sql_get.= "OR "; $count = count($a_it); for($i=0; $i < $count; $i++) { $sql_get.= "itmtype = '".$a_it[$i]."' "; if($i < $count - 1) $sql_get.= "OR "; } } $sql_get.= " ORDER BY imPRICE ASC"; $q=mysql_query($sql_get); if(!mysql_num_rows($q)) { ?> No items found. Please try some other search option! <? $h->endpage(); exit; } else { ?> <table width="100%" class="inner"> <tr class="fill"> <td colspan="4" class="inner">Your search returned the following results</td> </tr> <tr> <td width="20%" class="inner">Adder</td> <td width="40%" class="inner">Item</td> <td width="20%" class="inner">Price</td> <td width="20%" class="inner">Links</td> </tr> <? $lt=""; while($r=mysql_fetch_array($q)) { if($r['imADDER'] == $userid) { $link = "[[url='itemmarket.php?action=remove&ID={$r[']Remove[/url]]"; } else { $link = "[[url='itemmarket.php?action=buy&ID={$r[']Buy[/url]] [[url='itemmarket.php?action=gift1&ID={$r[']Gift[/url]]"; } ?> <tr> <td class="inner">[url='viewuser.php?u=<?=$r[']'><?=$r['username']?>[/url] [<?=$r['userid']?>]</td> <td class="inner"><?=$r['itmname'] ?></td> <td class="inner">$<?=number_format($r['imPRICE'])?></td> <td class="inner">[[url="iteminfo.php?ID=<?=$r['itmid']?>"]Info[/url]]<?=$link?></td> </tr> <?}?> </table> <? } } $h->endpage(); ?> This works as a plain replacement of itemmarket.php and ought to work without any issues! Thanks Pudda for letting to pull this out of the closet!
  9. Lithium

    PHP Form issue

    Re: PHP Form issue or you could also use bin2dec('$username') and use UNHEX when dealing with DB statements
  10. Re: Guess the next poster Santa Claus next
  11. Lithium

    One Big Code!

    Re: One Big Code! while ( ! ( succeed = try() ) ); ?>
  12. Re: Dodgy header problem Try this one... it is fairly readable to find where potential problems are...   <?php class headers { function startheaders() { global $ir, $set; $back="#333333"; //Define the background colour of your site here. ?> <html> <head> <title><?=$set['game_name']?></title> <style> body { background: $back; font-family: Arial, Helvetica, sans-serif; } table { font-family: Tahoma; font-size: 12px; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#DEDEDE; height:22px; } .table3 td { background-color:#CCCCCC; } td .alt { background-color:#EEEEEE; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } a:link { text-decoration: none; color: #333333; } a:hover { text-decoration: underline; color: #666666; } a:active { text-decoration: none; color: #666666; } a:visited { text-decoration: none; color: #333333; } doodlebee #:1177461 </style> </head> <body> <table align="center" width="900" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <image src="topheaderimage.png"> </td> </tr> <td background="middleheaderimage.png"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="23"></td> <td width="183"> <? } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; ?> Your account may be broken. Please mail help@<?=$domain?> stating your username and player ID <? $h->endpage(); exit; } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=green>[i]{$ir['username']}</font>[/i]"; $d="[img=donator.gif]"; } $gn=""; global $staffpage; $bgcolor = 'FFFFFF'; ?> [b]Name:[/b] <?=$gn($u)?> [<?=$ir['userid']?>] <?=$d?> [b]Money:[/b] <?=$fm?> [b]Level:[/b] <?=$ir['level']?> [b]Points:[/b] <?=$ir['crystals']?> [[url="logout.php"]Emergency Logout[/url]] <hr /> [b]Energy:[/b] <?=$enperc?>% [img=greenbar.png] height="10">[img=redbar.png] height="10"> [b]Will:[/b] <?=$wiperc?>% [img=greenbar.png]" height="10">[img=redbar.png] height="10"> [b]Brave:[/b] <?=$ir['brave']?>/<?=$ir['maxbrave']?> [img=greenbar.png]" height="10">[img=redbar.png]" height="10"> <hr /> <? if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("</td><td width=25></td><td width=643><center><font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; ?> </td><td width="25"></td><td width="643"> <? if($ir['donatordays'] == 1) { ?> Thank you for donating (: <? } elseif($ir['donatordays'] == 0) { ?> [url="donate.php"]* Donate today and gain loads of extra's! *[/url] <? } if($ir['hospital']) { ?> You are currently in hospital for <?=$ir['hospital']?> minutes. <? } if($ir['jail']) { ?> You are currently in jail for <?=$ir['jail']?> minutes. <? } } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; ?> </td><td width="25"></td><td width="643"> <? } function endpage() { global $db; ?> </td><td width="27"></td></tr> </table> </td></tr> <tr><td><image src="bottomheaderimage.png"></td></tr></table> <? } } ?>   Also, all die() statements try to change them to $h->endpage(); exit; (lines 90 to 98 on this attempt). This hasn't been tested as i don't use V2 but it's pretty much readable on dreamweaver ;)
  13. Re: MCCODES Error. have you run the installer properly? and you have the database properly setup on the config files? that error seems you missed one of those
  14. Re: A little jelp with sql   a little more code would be better for someone to help... but at first glance... it seems you got $vars all messed up so it doesn't show...
  15. Re: [mccode] Battle Arena [$20] lol i know about that, i have the same mod :P though, when presenting the mod, Iso did placed the fight types correct. The script is the one that shows 3 nothing more ;)
  16. Re: [mccode] Battle Arena [$20]   Seems you saw it wrong Blackdogg ;)
  17. Re: Anybody use lite version?   Quite true, yet the best way to get everything "under control" as there are less code to fix and you can make it pretty much similar to a v1 with a bit of time spent ;)
  18. Re: [MOD all MCC's] LET IT SNOW   You can set the amount of flakes falling...
  19. Re: [MOD all MCC's] LET IT SNOW Save the code below as snow.js   //Snow - [url]http://www.btinternet.com/~kurt.grigg/javascript[/url] if ((document.getElementById) && window.addEventListener || window.attachEvent){ (function(){ //Configure here. var num = 30; //Number of flakes var timer = 30; //setTimeout speed. Varies on different comps var enableinNS6 = 1 //Enable script in NS6/Mozilla? Snow animation could be slow in those browsers. (1=yes, 0=no). //End. var y = []; var x = []; var fall = []; var theFlakes = []; var sfs = []; var step = []; var currStep = []; var h,w,r; var d = document; var pix = "px"; var domWw = (typeof window.innerWidth == "number"); var domSy = (typeof window.pageYOffset == "number"); var idx = d.getElementsByTagName('div').length; if (d.documentElement.style && typeof d.documentElement.style.MozOpacity == "string") num = 12; for (i = 0; i < num; i++){ sfs[i] = Math.round(1 + Math.random() * 1); document.write('<div id="flake'+(idx+i)+'" style="position:absolute;top:0px;left:0px;width:' +sfs[i]+'px;height:'+sfs[i]+'px;background-color:#ffffff;font-size:'+sfs[i]+'px"><\/div>'); currStep[i] = 0; fall[i] = (sfs[i] == 1)? Math.round(2 + Math.random() * 2): Math.round(3 + Math.random() * 2); step[i] = (sfs[i] == 1)? 0.05 + Math.random() * 0.1 : 0.05 + Math.random() * 0.05 ; } if (domWw) r = window; else{ if (d.documentElement && typeof d.documentElement.clientWidth == "number" && d.documentElement.clientWidth != 0) r = d.documentElement; else{ if (d.body && typeof d.body.clientWidth == "number") r = d.body; } } function winsize(){ var oh,sy,ow,sx,rh,rw; if (domWw){ if (d.documentElement && d.defaultView && typeof d.defaultView.scrollMaxY == "number"){ oh = d.documentElement.offsetHeight; sy = d.defaultView.scrollMaxY; ow = d.documentElement.offsetWidth; sx = d.defaultView.scrollMaxX; rh = oh-sy; rw = ow-sx; } else{ rh = r.innerHeight; rw = r.innerWidth; } h = rh - 2; w = rw - 2; } else{ h = r.clientHeight - 2; w = r.clientWidth - 2; } } function scrl(yx){ var y,x; if (domSy){ y = r.pageYOffset; x = r.pageXOffset; } else{ y = r.scrollTop; x = r.scrollLeft; } return (yx == 0)?y:x; } function snow(){ var dy,dx; for (i = 0; i < num; i++){ dy = fall[i]; dx = fall[i] * Math.cos(currStep[i]); y[i]+=dy; x[i]+=dx; if (x[i] >= w || y[i] >= h){ y[i] = -10; x[i] = Math.round(Math.random() * w); fall[i] = (sfs[i] == 1)? Math.round(2 + Math.random() * 2): Math.round(3 + Math.random() * 2); step[i] = (sfs[i] == 1)? 0.05 + Math.random() * 0.1 : 0.05 + Math.random() * 0.05 ; } theFlakes[i].top = y[i] + scrl(0) + pix; theFlakes[i].left = x[i] + scrl(1) + pix; currStep[i]+=step[i]; } setTimeout(snow,timer); } function init(){ winsize(); for (i = 0; i < num; i++){ theFlakes[i] = document.getElementById("flake"+(idx+i)).style; y[i] = Math.round(Math.random()*h); x[i] = Math.round(Math.random()*w); } snow(); } if (window.addEventListener){ window.addEventListener("resize",winsize,false); window.addEventListener("load",init,false); } else if (window.attachEvent){ window.attachEvent("onresize",winsize); window.attachEvent("onload",init); } })(); }//End.   USAGE: <script type="text/javascript" src="snow.js"> /*********************************************** * Snow Effect without images-by Kurt Grigg at [url]http://www.btinternet.com/~kurt.grigg/javascript[/url] * Script featured & available at Dynamic Drive at [url]http://www.dynamicdrive.com/[/url] * Please keep this notice intact ***********************************************/ </script>   Just to give a hand... this is suitable for darker backgrounds as it uses no images! Also you can find there an identical script but with image use.
  20. Re: Game themes I think you should be more specific... Like... Game engine, version, what guidelines/subject you are looking to a theme, etc etc etc
  21. Re: [mccode] Mod Sale [$10.00 - $80.00] i know this is an old but yet quite interesting topic, and with the example killah showed up... i wouldn't consider it as well, as one $salt is not an option, but getting on the way Nyna told, some random salt would be just much of a better idea. so something like:   $salt = $ir['email']; $password = md5($salt.$ir['password']);   Would be even a better randomly generated salt encryption, making the $salt unique for every single user. Although, you could also, add a few more options to even randomize it even further. Just my $0.02 :)
  22. Re: Voting token exchange Try replacing the echo "error" messages to die(error_message). you need to stop processing the script and echo alone doesn't do it.
  23. Re: Simple Trades [V2]   ermmm... adding a block to multi transfer would be the way to avoid it... those who use this should worry about it and answering to your previous post... you can't see the other players inventory.
  24. Re: Simple Trades [V2]   Am having the same issue, just to note... i placed it on a Lite version, it runs smooth, but after accepting the trade it does absolutely nothing. Some pointers here would be apreciated!
  25. Re: [v1] Travel to User Location button on profiles [FREE]   Indeed, 2 html lines and this "mod" is done... adding the next line somewhere on viewuser.php   [b]Location:[/b] {$r['cityname']} | <font color=red>[[url='monorail.php?to={$r[']<font color=red>Travel to $r[cityname]</font>[/url]]</font>   and a history.back() tag in monorail after the "travel" to return to previous page wouldn't it be enough?
×
×
  • Create New...