
Danny.W
Members-
Posts
19 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Danny.W
-
Congratulations Paul and Equinox, I'm sure you will give your utmost effort into moderating the forum.
-
My firsth thoughts of Firefox 4 was "Hmmm this is unlike a Firefox browser"... But after a couple of hours using it so on getting use to it, It actually isn't a bad web browser at all, Yes it has 1/2 things that could be improved, But everything can be improved nothing is perfect.. I Would say Mozilla have done a great job with this browser, and i hope they can keep the good work up for future releases...
-
I Must say i would have never even looked at IE 9 if a_bertrand never spoke about it on the great wsiRC chat ;)... But what can i say he said it was a great improvement from the other older version, And what was my outcome off the IE 9 Browser, Well it is a huge step forward for Microsoft in their browser department, Now i am just looking for them to continue to advance in this area. You never know in a few years i could start using IE for all my browsing!
-
There we go.... <?php include "globals.php"; $_GET['u'] = abs((int) $_GET['u']); if (!$_GET['u']) { echo "Invalid use of file"; } else { $q = $db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}"); if ($db->num_rows($q) == 0) { echo "Sorry, we could not find a user with that ID, check your source."; } else { $r = $db->fetch_row($q); if ($r['user_level'] == 1) { $userl = "Member"; } else if ($r['user_level'] == 2) { $userl = "Admin"; } else if ($r['user_level'] == 3) { $userl = "Secretary"; } else if ($r['user_level'] == 0) { $userl = "NPC"; } else { $userl = "Assistant"; } $lon = ($r['laston'] > 0) ? date('F j, Y g:i:s a', $r['laston']) : "Never"; $sup = date('F j, Y g:i:s a', $r['signedup']); $ts = $r['strength'] + $r['agility'] + $r['guard'] + $r['labour'] + $r['IQ']; $d = ""; if ($r['laston'] > 0) { $la = time() - $r['laston']; $unit = "seconds"; if ($la >= 60) { $la = (int) ($la / 60); $unit = "minutes"; } if ($la >= 60) { $la = (int) ($la / 60); $unit = "hours"; if ($la >= 24) { $la = (int) ($la / 24); $unit = "days"; } } $str = "$la $unit ago"; } else { $str = "--"; } if ($r['last_login'] > 0) { $ll = time() - $r['last_login']; $unit2 = "seconds"; if ($ll >= 60) { $ll = (int) ($ll / 60); $unit2 = "minutes"; } if ($ll >= 60) { $ll = (int) ($ll / 60); $unit2 = "hours"; if ($ll >= 24) { $ll = (int) ($ll / 24); $unit2 = "days"; } } $str2 = "$ll $unit2 ago"; } else { $str2 = "--"; } if ($r['donatordays']) { $r['username'] = "<font color=Blue>[b]{$r['username']}[/b]</font>"; $d = "[img=Donator.png]"; } if ($r['laston'] >= time() - 15 * 60) { $on = "<font color=green>[b]Online[/b]</font>"; } else { $on = "<font color=red>[b]Offline[/b]</font>"; } echo "<h3>Profile for {$r['username']}</h3><table width=100% cellspacing=1 class='table'><tr style='background:gray'></tr><tr>Name: {$r['username']} [{$r['userid']}] $d User Level: $userl Duties: {$r['duties']} Online: $on Level: {$r['level']} Game Rank: $rank Health: {$r['hp']}/{$r['maxhp']} Property: {$r['hNAME']} Days Old: {$r['daysold']} Location: {$r['cityname']} Referals: "; $rr = $db->query("SELECT * FROM referals WHERE refREFER={$r['userid']}"); print $db->num_rows($rr); echo " Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} <td>"; $sh = ($ir['user_level'] > 1) ? "Staff Info" : ""; echo "</td></tr>Faction: "; if ($r['gang']) { echo "[url='factions.php?action=view&ID={$r[']{$r['gangNAME']}[/url]"; } else { echo "N/A"; } if ($r['fedjail']) { echo " [b]<font color=red>In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}</font>"; } if ($r['hospital']) { echo " [b]<font color=red>In hospital for {$r['hospital']} minutes. {$r['hospreason']}</font>[/b]"; } if ($r['jail']) { echo " [b]<font color=red>In jail for {$r['jail']} minutes. {$r['jail_reason']}</font>[/b]"; } echo "</td><td>[[url='mailbox.php?action=compose&ID={$r[']Send Mail[/url]] [[url='sendcash.php?ID={$r[']Send Cash[/url]] "; if ($set['sendcrys_on']) { echo "[[url='sendcrys.php?ID={$r[']Send Points[/url]] "; } echo "[[url='attack.php?ID={$r[']Attack[/url]] [[url='contactlist.php?action=add&ID={$r[']Add Contact[/url]] [[url='display.php?ID={$r[']Display Case[/url]]"; if ($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { echo " [[url='jailuser.php?userid={$r[']Jail[/url]] [[url='mailban.php?userid={$r[']MailBan[/url]]"; } if ($ir['donatordays'] > 0) { echo " [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]] "; } echo "</td><td>"; if ($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { $r['lastiph'] = @gethostbyaddr($r['lastip']); $r['lastiph'] = checkblank($r['lastiph']); $r['lastip_loginh'] = @gethostbyaddr($r['lastip_login']); $r['lastip_loginh'] = checkblank($r['lastip_loginh']); $r['lastip_signuph'] = @gethostbyaddr($r['lastip_signup']); $r['lastip_signuph'] = checkblank($r['lastip_signuph']); echo "<h3>Internet Info</h3><table width='100%' border='0' cellspacing='1' class='table'><tr><td></td><td class='h'>IP</td><td class='h'>Hostname</td></tr><tr><td class='h'>Last Hit</td><td>$r[lastip]</td><td>$r[lastiph]</td></tr><tr><td class='h'>Last Login</td><td>$r[lastip_login]</td><td>$r[lastip_loginh]</td></tr><tr><td class='h'>Signup</td><td>$r[lastip_signup]</td><td>$r[lastip_signuph]</td></tr></table>"; echo "<form action='staffnotes.php' method='post'>Staff Notes: <textarea rows=7 cols=40 name='staffnotes'>{$r['staffnotes']}</textarea> <input type='hidden' name='ID' value='{$_GET['u']}' /><input type='submit' value='Change' /></form>"; } else { echo ""; } echo "</tr></table>"; } } function checkblank($in) { if (!$in) { return "N/A"; } return $in; } $h->endpage(); ?>
-
Well done look's like a good modification, Keep up the good work! Note: Feel free to space your code as much as you like it's your modification! If they don't like it, then they can create their own... :)
-
I Love the concept of this modification, Gives the players of your game even more to edit the game to their preferences.. Great code, Great modification, Well done!...
-
Your welcome, Hah.. Yes of course you are, It's your thread ;)
-
Looking great Paul, I'm sure this will bring you great success and rewards!.. Well done *Can't wait for release* ;)
-
Looking good, Hope it goes well for you :)..
-
Well done Maniak, Nice modification... Simular to the support system i use on my upcoming game!, Well done.
-
Nice work illusions, Looks like a great bargain at only $20! If only i was using MCC I Would have definently purchased. Well done.
-
I Agree, I'm a new member here i will admit, And it's not giving me a very good example by always going down with an error. To be fair if it wasn't for a very few people who i have met here, I Doubt i would still be here, Because it really does just get annoying.
-
It happen's to me quite a bit too, It is a bit frustrating sometimes especially if your PM'ing or Replying on a thread hah... I Hope they will fix it.
-
Hi LegendFTW, Well done on making this mod im sure there are many people who like it... Anyways i decided to clean it a little for you. rateexchange.php: <?php include(DIRNAME(__FILE__) . '/globals.php'); if($ir['jail'] || $ir['hospital']) { echo 'This page is not accessible whilst in the '.(($ir['jail']) ? 'Jail':'Hospital').'. > [url="index.php"]Go Back[/url] '; exit($h->endpage()); } if (!$_GET['spend']) { if ($ir['ratings'] > 11) { $ea = "[url='rateexchange.php?spend=refill']Buy[/url]"; } else { $ea = "N/A"; } if ($ir['ratings'] > 19) { $ba = "[url='rateexchange.php?spend=brave']Buy[/url]"; } else { $ba = "N/A"; } if ($ir['ratings'] > 49) { $ha = "[url='rateexchange.php?spend=health']Buy[/url]"; } else { $ha = "N/A"; } if ($ir['ratings'] > 999) { $dpa = "[url='rateexchange.php?spend=dp']Buy[/url]"; } else { $dpa = "N/A"; } echo " The Rate Exchange. What Do You Want To Spend Your {$ir['ratings']} Rates On? <table width=90% border=1 cellspacing=1 class='table'> <tr> <th>Reward</th> <th>Rates Needed</th> <th>Buy</th> </tr> <tr><td>Energy Refill</td><td>12</td><td>$ea</td></tr> <tr><td>Brave Refill</td><td>20</td><td>$ba</td></tr> <tr><td>Health Refill</td><td>50</td><td>$ha</td></tr> <tr><td>DP (Pack One)</td><td>1000</td><td>$dpa</td></tr> <tr><td>IQ</td><td>1 Rate for 1 IQ</td><td>[url='rateexchange.php?spend=IQ']Buy[/url]</td></tr> <tr><td>Money</td><td>1 Rate per \$200</td><td>[url='rateexchange.php?spend=money']Buy[/url]</td></tr> </table>"; } else { if ($_GET['spend'] == 'refill') { if ($ir['ratings'] < 12) { echo "You don't have enough rates!"; } else if ($ir['energy'] == $ir['maxenergy']) { echo "You already have full energy."; } else { $db->query("UPDATE users SET energy=maxenergy,ratings=ratings-12 WHERE userid=$userid", $c) or die("Energy refill area is down, please retry in 5 minutes."); echo "Your energy is now full and you have paid 12 rates."; } } else if ($_GET['spend'] == 'IQ') { $amm = $ir['ratings'] * 1; echo "Type in the amount of rates you want to swap for IQ. You can get [b]$amm[/b] IQ with all your [b]{$ir['ratings']}[/b] rates One rate = 1 IQ. <form action='rateexchange.php?spend=IQ2' method='post'> <input type='text' name='ratings' value='{$ir['ratings']}' /> <input type='submit' value='Swap' /></form>"; } else if ($_GET['spend'] == 'IQ2') { $_POST['ratings'] = (int) $_POST['ratings']; if ($_POST['ratings'] <= 0 || $_POST['ratings'] > $ir['ratings']) { echo "Error, you either do not have enough rates or did not fill out the form. [url='rateexchange.php?spend=IQ']Back[/url]"; } else { $iqgain = $_POST['ratings'] * 1; $db->query("UPDATE users SET ratings=ratings-{$_POST['ratings']} WHERE userid=$userid", $c); $db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid", $c); echo "You have gained $iqgain IQ and have just spent {$_POST['ratings']} rates."; } } else if ($_GET['spend'] == 'money') { $acm = $ir['ratings'] * 200; echo "Type in the amount of rates you want to trade for cash. You can get \$$acm Cash for {$ir['ratings']} Rates. One rate = \$200. <form action='rateexchange.php?spend=money2' method='post'> <input type='text' name='ratings' value='{$ir['ratings']}' /> <input type='submit' value='Swap' /></form>"; } else if ($_GET['spend'] == 'money2') { $_POST['ratings'] = (int) $_POST['ratings']; if ($_POST['ratings'] <= 0 || $_POST['ratings'] > $ir['ratings']) { echo "Error, you either do not have enough rates or did not fill out the form. [url='rateexchange.php?spend=money']Back[/url]"; } else { $iqgain = $_POST['ratings'] * 200; $db->query("UPDATE users SET ratings=ratings-{$_POST['ratings']},money=money+$iqgain WHERE userid=$userid", $c); echo "You have recieved \$$iqgain and have spent {$_POST['ratings']}."; } } else if ($_GET['spend'] == 'brave') { if ($ir['ratings'] < 20) { echo "You don't have enough rates!"; } else if ($ir['brave'] == $ir['maxbrave']) { echo "You already have full brave."; } else { $nowcrys = $ir['ratings'] - 20; $db->query("UPDATE users SET brave=maxbrave,ratings=ratings-20 WHERE userid=$userid", $c); echo "You now have full brave and have spent 20 rates. You now have $nowcrys Rates."; } } else if ($_GET['spend'] == 'health') { if ($ir['ratings'] < 50) { echo "You don't have enough rates!"; } else if ($ir['health'] == $ir['maxhealth']) { echo "You already have full health."; } else { $nowcs = $ir['ratings'] - 50; $db->query("UPDATE users SET health=maxhealth,ratings=ratings-50 WHERE userid=$userid", $c); echo "You now have full health and have spent 50 rates. You now have $nowcs rates."; } } else if ($_GET['spend'] == 'dp') { if ($ir['ratings'] < 1000) { echo "You don't have enough rates!"; } else { $noww = $ir['ratings'] - 1000; if ($noww = 0) { $noww = "no"; } $db->query("UPDATE users SET donatordays=donatordays+30,ratings=ratings-1000 WHERE userid=$userid", $c); echo "You have a DP (Pack One) and have spent 1000 rates.You wont recieve any benefits with this donator-pack."; } } } $h->endpage(); ?> Enjoy! Note: Good mod, Well done!
-
Hi Everyone, As some of you may know my expertise is in CSS/HTML Area and have made many layouts in the past... However i have been thinking about making 4/5 CSS/HTML Layouts for the MCCodes engine, When i say CSS/HTML It means no Graphical layouts, Pure CSS/HTML You may get 1/2 images. (small).. Also with me doing this i may need some assistance from a user on MWG for adding the CSS/HTML Layout into a header.php version... I can do login,register,authenticate... Anyways i would love to get your reaction and views on this! Thanks, TNS!
-
Hmmm tried that :/.... still have the same problem.
-
I Was thinking that but ive looked through it and cannot spot anything :s..
-
Hi MWG i am having a slight problem with my mailbox for some reason when i compose a mail and click send it does nothing... It would be great if someone could help me with this. Screenshot (Composing mail): http://www.image-upload.net/viewer.php?file=s78n3k5gzi6hujgd2lyi.jpg Screenshot (Clicked send): http://www.image-upload.net/viewer.php?file=ikvtebd5fb7d7y3v85.jpg <?php include_once(DIRNAME(__FILE__) . '/includes/system.php'); include_once(DIRNAME(__FILE__) . 'bbcode.php'); if ($ir['mailban']) { die("<font color=red><h3>! ERROR</h3> You have been mail banned for {$ir['mailban']} days. [b]Reason: {$ir['mb_reason']}</font>[/b]"); } $_GET['ID'] = abs((int) $_GET['ID']); echo "<table width='100%' align='center' cellspacing='0'> <tr> <td style='text-align:center;'><a href='mail.php?action=inbox'>[img=images/inbox.png] Inbox</a></td> <td style='text-align:center;'><a href='mail.php?action=outbox'>[img=images/outbox.png] Outbox</a></td> <td style='text-align:center;'><a href='mail.php?action=compose'>[img=images/compose.png] Compose</a></td></tr></table> "; switch ($_GET['action']) { case 'inbox': mail_inbox(); break; case 'outbox': mail_outbox(); break; case 'compose': mail_compose(); break; case 'delete': mail_delete(); break; case 'send': mail_send(); break; default: mail_inbox(); break; } function mail_inbox() { global $db, $ir, $c, $userid, $h; print <<<OUT <div class="h3">Mail Inbox</div> Below are the last 15 messages you have recieved. <table width="100%" class="table" cellspacing="0"> <tr> <th width="25%">From</th> <th>Subject/Message</th> </tr> OUT; $q = $db->query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_from=u.userid WHERE m.mail_to=$userid ORDER BY mail_time DESC LIMIT 15"); while ($r = $db->fetch_row($q)) { $sent = date('F j, Y, g:i:s a', $r['mail_time']); echo "<tr><td>"; if ($r['userid']) { echo "[url='profile.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]"; } else { echo "SYSTEM"; } $fm = urlencode($r['mail_text']); print <<<EOF </td> <td>{$r['mail_subject']}</td> </tr> <tr> <td>Sent at: {$sent} [url='mail.php?action=compose&ID={$r[']Reply[/url] [url='mail.php?action=delete&ID={$r[']Delete[/url] [url='preport.php?ID={$r[']Report[/url] </td> <td>{$r['mail_text']}</td> </tr></table> EOF; } if ($ir['new_mail'] > 0) { $db->query("UPDATE mail SET mail_read=1 WHERE mail_to=$userid"); $db->query("UPDATE users SET new_mail=0 WHERE userid=$userid"); } echo "</table>"; } function mail_outbox() { global $db, $ir, $c, $userid, $h; echo '<div class="h3">Mail Outbox</div> Below are the last 15 messages you have sent. <table width="100%" class="table" cellspacing="0"> <tr> <th width="25%">Receiver</th> <th>Subject/Message</th> </tr>'; $q = $db->query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_to=u.userid WHERE m.mail_from=$userid ORDER BY mail_time DESC LIMIT 15"); while ($r = $db->fetch_row($q)) { $sent = date('F j, Y, g:i:s a', $r['mail_time']); echo "<tr><td>[url='profile.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>{$r['mail_subject']}</td></tr> <tr><td>Sent at: $sent </td><td>{$r['mail_text']}</td></tr>"; } echo "</table>"; } function mail_compose() { global $ir, $c, $userid, $h; echo <<< EOF <script type="text/javascript"> function insert(el,ins) { if (el.setSelectionRange){ el.value = el.value.substring(0,el.selectionStart) + ins + el.value.substring(el.selectionStart,el.selectionEnd) + el.value.substring(el.selectionEnd,el.value.length); } else if (document.selection && document.selection.createRange) { el.focus(); var range = document.selection.createRange(); range.text = ins + range.text; } } </script> <div class="h3">Mail Compose</div> <form action='mail.php?action=send' method='post'> <table width="100%" class='table' cellspacing='0'> <tr> <td width='24%'>Receiver ID:</td><td><input type='text' name='userid' value='{$_GET['ID']}'/> [size="1"][i](Example: 1234)[/i][/size]</td> </tr> <tr> <td>Subject:</td> <td><input type='text' name='subject'/> [size="1"][i](Example: Hello!)[/i][/size]</td> </tr> <tr> <td>Message:</td> <td> <textarea name='message' rows='10' cols='50'></textarea> <input type="image" src="smileys/smile.gif" alt="Smile" title="Smile" onclick="insert(this.form.message,':)'); return false;" /> <input type="image" src="smileys/wink.gif" alt="Wink" title="Wink" onclick="insert(this.form.message,';)'); return false;" /> <input type="image" src="smileys/surprise.gif" alt="Suprised" title="Suprised" onclick="insert(this.form.message,':o'); return false;" /> <input type="image" src="smileys/teeth.gif" alt="Cheesy Grin" title="Cheesy Grin" onclick="insert(this.form.message,':D'); return false;" /> <input type="image" src="smileys/confuse.gif" alt="Confused" title="Confused" onclick="insert(this.form.message,':s'); return false;" /> <input type="image" src="smileys/frown.gif" alt="Sad" title="Sad" onclick="insert(this.form.message,':('); return false;" /> <input type="image" src="smileys/angry.gif" alt="Angry" title="Angry" onclick="insert(this.form.message,':angry'); return false;" /> <input type="image" src="smileys/bigwink.gif" alt="Big Wink" title="Big Wink" onclick="insert(this.form.message,':bigwink'); return false;" /> <input type="image" src="smileys/laugh.gif" alt="Laugh" title="Laugh" onclick="insert(this.form.message,':laugh'); return false;" /> <input type="image" src="smileys/star.gif" alt="Star" title="Star" onclick="insert(this.form.message,':star'); return false;" /> <input type="image" src="smileys/blue.gif" alt="Sick" title="Sick" onclick="insert(this.form.message,':sick'); return false;" /> <input type="image" src="smileys/neutral.gif" alt="Neutral" title="Neutral" onclick="insert(this.form.message,':|'); return false;" /> <input type="image" src="smileys/tongue.gif" alt="Tongue" title="Tongue" onclick="insert(this.form.message,':P'); return false;" /> <input type="image" src="smileys/smile3.gif" alt="Smile other" title="Smile other" onclick="insert(this.form.message,':]'); return false;" /> <input type="image" src="smileys/saint.gif" alt="Saint" title="Saint" onclick="insert(this.form.message,':saint'); return false;" /> <input type="image" src="smileys/cool.gif" alt="Cool" title="Cool" onclick="insert(this.form.message,':cool'); return false;" /> <input type="image" src="smileys/heart.gif" alt="Heart" title="Heart" onclick="insert(this.form.message,':heart'); return false;" /> </td></tr><tr> </td></tr><td></td><td><input type='submit' value='Send Mail'></td></tr></table></form> EOF; if ($_GET['ID']) { echo " <table width=75% border=2><tr><td colspan=2>[b]Your last 5 mails to/from this person:[/b]</td></tr>"; $q = mysql_query("SELECT m.*,u1.username as sender from mail m left join users u1 on m.mail_from=u1.userid WHERE (m.mail_from=$userid AND m.mail_to={$_GET['ID']}) OR (m.mail_to=$userid AND m.mail_from={$_GET['ID']}) ORDER BY m.mail_time DESC LIMIT 5", $c); while ($r = mysql_fetch_array($q)) { $sent = date('F j, Y, g:i:s a', $r['mail_time']); echo "<tr><td>$sent</td> <td>[b]{$r['sender']} wrote:[/b] {$r['mail_text']}</td></tr>"; } } OUT; } function mail_send() { global $ir, $c, $userid, $h; $subj = str_replace(array( "\n" ), array( " " ), strip_tags($_POST['subject'])); $msg = bb2html($_POST['message']); $codes = array( ":)", ";)", ":o", ":D", ":s", ":(", ":angry", ":bigwink", ":laugh", ":star", ":sick", ":|", ":P", ":]", ":saint", ":cool", ":heart" ); $images = array( "<img src=smilies/smile.gif>", "<img src=smilies/wink.gif>", "<img src=smilies/surprise.gif>", "<imgsrc=smilies/teeth.gif>", "<img src=smilies/confuse.gif>", "<img src=smilies/frown.gif>", "<imgsrc=smilies/angry.gif>", "<img src=smilies/bigwink.gif>", "<img src=smilies/laugh.gif>", "<imgsrc=smilies/star.gif>", "<img src=smilies/blue.gif>", "<img src=smilies/neutral.gif>", "<imgsrc=smilies/tongue.gif>", "<img src=smilies/smile3.gif>", "<img src=smilies/saint.gif>", "<imgsrc=smilies/cool.gif>", "<img src=smilies/heart.gif>" ); $newmsg = str_replace($codes, $images, $msg); $to = (int) $_POST['userid']; mysql_query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmsg')", $c) or die(mysql_error()); echo "Mail has been sent! > [url='mail.php']Return[/url]"; } function mail_delete() { global $db, $ir, $c, $userid, $h; $db->query("DELETE FROM mail WHERE mail_id={$_GET['ID']} AND mail_to=$userid"); echo "Mail deleted! > [url='mail.php']Return[/url]"; } $h->footer(); ?> If you require me to post anything else, Let me know. Thank you!
-
mccode-v2 New and improved inventory code sources for free!
Danny.W replied to MDK666's topic in Free Modifications
Hi, First of all it does look like a great mod well done, Also is this a fully working secure version?