Jump to content
MakeWebGames

Haunted Dawg

Members
  • Posts

    2,933
  • Joined

  • Last visited

    Never
  • Days Won

    1

Everything posted by Haunted Dawg

  1. Re: Need a custom mod made? Its not that i dont want you here :lol: It's just that i like to prove my points and if that affects you then oh well.
  2. Re: [FAQ] How do I redirect users? (Location Header)   You might be wrong there. Ive tried it the other way arround and unfortunatly it does not work for me. If i put the header() at the bottom of the text it says Warning: headers already sent. So i might be wrong or its just the normal php xD You are right that is is header('Refresh: 3; url=index.html'); the refresh MUST be uppercased. I was just proving a nice point of what you can do with a header() function.
  3. Re: Need a custom mod made? If its for free why not post it in the free game modifications as that stands out for "FREE". And as far as i can see you posting in the "PAID" game modifications. So next time you should clear your states.
  4. Re: Need a custom mod made? With your "how much your willing to pay for it" stands out to me saying and how much you are willing to pay for me to make it. So in either way, they will get some one else to make it.
  5. Re: Updated Mailbox [v1] Use this working v2 one:   <?php include "globals.php"; if($ir['mailban']) { die("<center><font color=red><font size='4' face='Arial, Helvetica, sans-serif'>Error</font> You have been mail banned for {$ir['mailban']} days. [b]Reason: {$ir['mb_reason']}</font>[/b]"); } $_GET['ID'] = abs((float) $_GET['ID']); print "<center><font size='4' face='Arial, Helvetica, sans-serif'>Mail Box</font><hr width=90%><table width=90% border=0><tr> <td width=20% align=center>> [url='mailbox.php?action=compose'] Compose[/url]</td> <td width=20% align=center>> [url='mailbox.php?action=outbox'] Outbox[/url]</td> <td width=20% align=center>> [url='mailbox.php?action=archive'] Save[/url]</td> <td width=20% align=center>> [url='mailbox.php?action=delall'] Delete All[/url]</td> <td width=20% align=center>> [url='mailbox.php?action=mailhome'] Inbox[/url]</td> </tr></table><hr width=90%>"; 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; case 'delall': mail_delall(); break; case 'delall2': mail_delall2(); break; case 'archive': mail_archive(); break; case 'read': mail_view(); break; case 'mailhome': mail_home(); break; default: mail_home(); break; } function mail_home() { global $ir,$c,$userid,$h,$db; print "Below are the Last 10 Messages Sent to You<hr width=90%> <table width=90% cellpadding=3 class='table'> <tr> <th width=30%>From</th> <th width=40%>Subject</th> <th width=15%>Status</th> <th width=15%>Manage</th> </tr> <tr>"; $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 10",$c); while($r = $db->fetch_row($q)) { $sent = date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td>"; if($ir['userid'] == 0) { echo 'SYSTEM'; } else { echo '[url="viewuser.php?u='.$r['userid'].'"]'.$r['username'].' ['.$r['userid'].'][/url]'; } $fm = urlencode($r['mail_subject']); if($r['mail_read'] == 0) { $status = "<font color=red>Unread</font>"; } else { $status = "<font color=green>Read</font>"; } print " </td> <td> [b]Subject:[/b] [url='mailbox.php?action=read&ID={$r[']{$r['mail_subject']}[/url] [i]Sent at: $sent[/i] </td> <td> <center> $status </center> </td> <td> <center> [[url='mailbox.php?action=delete&ID={$r[']Delete[/url]] [[url='mailbox.php?action=read&ID={$r[']Read[/url]] </center> </td> </tr>"; } echo '</table>'; } function mail_view() { global $ir,$c,$userid,$h,$db; print " <table width=90% cellpadding=3 class='table'>"; $id= abs((int) $_GET['ID']); $q=$db->query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_from=u.userid WHERE m.mail_id=$id LIMIT 1"); while($r=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td bgcolor=#AAAAAA>"; if($r['userid']) { print "[b]Mail From: [/b][url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=urlencode($r['mail_text']); print "<th bgcolor=#AAAAAA width=75%>[b]Subject:[/b] {$r['mail_subject']}</th></tr><tr><td>Sent at: $sent [url='mailbox.php?action=compose&ID={$r[']Reply[/url] [url='mailbox.php?action=delete&ID={$r[']Delete[/url] [url='preport.php?ID={$r[']Report[/url]</td><td>{$r['mail_text']}</td></tr></table> <form action='mailbox.php?action=send' method='post'> <table width=90% cellpadding=3 class='table'><th colspan=2[b]Reply To This Message[/b]</th> <tr> <td>User's ID:</td> <td><input type='text' name='userid' value='{$r['userid']}' size='5' maxlength='10' /> [i]<font size=1.9>(E.g. 123456)</font>[/i]</td></tr><tr> <td>Subject:</td> <td><input type='text' name='subject' size='50' maxlength='50' value=' ' /> [i]<font size=1.9>(E.g. Hello there)</font>[/i]</td></tr><tr> <td>Message:</td> <td><textarea rows='10' cols='75%' name='message'></textarea></td></tr><tr> <td colspan=2><center><input type='submit' value='Send' /></td></tr></form>"; } $db->query("UPDATE mail SET mail_read=1 WHERE mail_id=$id",$c); echo '</table>'; } function mail_outbox() { global $ir,$c,$userid,$h,$db; print "Below are the Last 10 Messages You have Sent<hr width=90%> <table width=90% cellpadding=3 class=maintable><tr bgcolor=AAAAAA><th width=35%>From</th><th width=50%>Subject</th><th width=15%>Manage</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 10",$c); while($r=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td>"; if($r['userid']) { print "[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=urlencode($r['mail_subject']); if($r['mail_read'] == 0) { $status="<font color=red>Unread</font>"; } else { $status="<font color=green>Read</font>"; } print "</td>\n<td>[b]Subject:[/b] [url='mailbox.php?action=read&ID={$r[']{$r['mail_subject']}[/url] [i]Sent at: $sent[/i]</td><td><center>[[url='mailbox.php?action=read&ID={$r[']Read[/url]]</td></tr>"; } echo '</table>'; } function mail_compose() { global $ir,$c,$userid,$h,$db; print "<form action='mailbox.php?action=send' method='post'> <table width=90% cellpadding=3 class='table'> <tr><td colspan=3>[b] Send a Message[/b]</td></tr><tr> <td>User's ID:</td> <td><input type='text' name='userid' value='' size='5' maxlength='10' /> [i]<font size=1.9>(E.g. 123456)</font>[/i]</td></tr><tr> <td>Subject:</td> <td><input type='text' name='subject' size='50' maxlength='50' value=' ' /> [i]<font size=1.9>(E.g. Hello there)</font>[/i]</td></tr><tr> <td>Message:</td> <td><textarea rows='10' cols='75%' name='message'></textarea></td></tr><tr> <td colspan=2><center><input type='submit' value='Send' /></td></tr></table></form><hr width=90%>> [url='mailbox.php']Back to Messages[/url]<hr width=90%>"; if($_GET['ID']) { print " <table width=90% cellpadding=3 class='maintable'><tr><td colspan=2 bgcolor=#AAAAAA>[b]Your last 5 mails to/from this person:[/b]</td></tr>"; $q=$db->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=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td bgcolor=#AAAAAA>$sent</td> <td bgcolor=#AAAAAA>[b]{$r['sender']} wrote:[/b] {$r['mail_text']}</td></tr>"; } print "</table>"; } } function mail_send() { global $ir,$c,$userid,$h,$db; $subj=str_replace(array("\n"),array(" "),strip_tags($_POST['subject'])); $msg=str_replace(array("\n"),array(" "),strip_tags($_POST['message'])); $codes = array( ':]', ':D', ':oo:', 'O.o', ':/', ':angry:', ':?:', ':lol:', ':-:', ':O', ':(', 'O.O', ':roll:', ':zzz:', ':)', ':P', ':S', ':nut:', ';)', ':heart:', 'XD', ); $images = array( '[img=smilies/happy.gif]', '[img=smilies/biggrin.gif]', '[img=smilies/cool.gif]', '[img=smilies/blink.gif]', '[img=smilies/dry.gif]', '[img=smilies/angry.gif]', '[img=smilies/huh.gif]', '[img=smilies/laugh.gif]', '[img=smilies/mellow.gif]', '[img=smilies/ohmy.gif]', '[img=smilies/sad.gif]', '[img=smilies/ph34r.gif]', '[img=smilies/rolleyes.gif]', '[img=smilies/sleep.gif]', '[img=smilies/smile.gif]', '[img=smilies/tongue.gif]', '[img=smilies/unsure.gif]', '[img=smilies/wacko.gif]', '[img=smilies/wink.gif]', '[img=smilies/wub.gif]', '[img=smilies/XD.gif]', ); $newmsg = str_replace($codes, $images, $msg); $to= (int) $_POST['userid']; mysql_query("UPDATE users SET new_mail=new_mail+1 WHERE userid='{$to}'") or die(mysql_error()); $db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmsg')",$c) or die(mysql_error()); print "Your Message has been Sent. [url='mailbox.php']> Back[/url]"; } function mail_delete() { global $ir,$c,$userid,$h,$db; $db->query("DELETE FROM mail WHERE mail_id={$_GET['ID']} AND mail_to='{$ir['userid']}'",$c); print "Message deleted. [url='mailbox.php']> Back[/url]"; } function mail_delall() { global $ir,$c,$userid,$h,$db; print "This will delete all the messages in your inbox. There is [b]NO[/b] undo, so be sure. [url='mailbox.php?action=delall2']> Yes, delete all messages[/url] [url='mailbox.php']> No, go back[/url]"; } function mail_delall2() { global $ir,$c,$userid,$h,$db; $db->query("DELETE FROM mail WHERE mail_to=$userid",$c); print "All ".mysql_affected_rows($c)." mails in your inbox were deleted. [url='mailbox.php']> Back[/url]"; } function mail_archive() { global $ir,$c,$userid,$h; print "This tool will download an archive of all your messages. [url='dlarchive.php?a=inbox']> Download Inbox[/url] [url='dlarchive.php?a=outbox']> Download Outbox[/url]"; } $h->endpage(); ?>
  6. Re: [FAQ] How do I redirect users? (Location Header) Or you can use a php refresh method:   header("refresh 3; url='index.php'"); echo 'You are going to be redirected to index.php in 3 seconds.';
  7. Re: Need a custom mod made? You should post more information than just 1 line. Post how long have you been coding for. Post what mods have you made befor. Post what games you have owned befor. Post what games you have coded for. Post in what are you experianced. As for now if some one is going to trust you on these forums it may well be your friend if you just posting 1 line. They would go to some one who has made & sold many mods on here like isomerizer, and others. So just posting 1 line wont help you.
  8. Re: Crime Problem I had this same problem when i was a first newbie. You should check your header because what happend to my game it refreshed the page after i clicked it. Say if i do a 7 brave crime it takes 14 brave away. So you should check your header.php
  9. Re: Game Monitor [$200] Lol me again posting. Not to sound rude or anything but if he is going to go through all your files moderating it i doubt he will take 3 hours 30 minutes. I ran a scan on my v2 game and it has 154 files and not to mention this is a new game. Imagine killah-city.com or any other game he would take more. And plus if it is that by going through all your files just find some one on google or such or some one who is experianced in php programing and they would most likely charge you like $80 - $150 to secure all your files. I think oxi here is charging for v1 more for than v2 because v1 i think has more files when v2 has more options but less files. I dont know maybe im wrong.
  10. Re: Advanced Player Search [v2] Well thats because my advsearch came from me :lol:. I saw a couple on a game so i actualy wanted one. Contacted owner they said "FU** OFF" so i said blah waited a month and no one came to me with the mod so? i paid for it to be made that was when i was a newb at php. :lol:
  11. Re: Advanced Player Search [v2] http://www.killah-city.com/advsearch.php it came with my v2 maybe bcoz i bought mine xD
  12. Re: Advanced Player Search [v2] Just like the advsearch.php that v2 comes with :|
  13. Re: Game Monitor [$200] Any screen shots of this? And how can we be assure that your services are still loyal? After seeing you dump your ptc's we need something to assure that it works. After your mods has been sold ive come to find many people ask me to fix them. Alot of has happend in your absence and i wouldnt buy anything from you unless im assure it will work. If you take this reply as a bad way then fine, but if you take it as some thing else cool because all i know is im not trying to be mean here at all.
  14. Re: Forum error   Was it supposed to be funny? Because i did say "Added some security in there"
  15. Re: I need help with explore.php and logo's   Should be: <u style='color: yellow; font-family: arial;'>Serious Money Makers</u>   Unfortunatly i dont do css so....
  16. Re: I need help with explore.php and logo's   <u><font color=yellow><font style='font-style:arial;'>Serious Money Makers</font></u>
  17. Re: Forum error Try:   $_GET['topic'] = abs(@intval($_GET['topic'])); $q = mysql_query("SELECT * FROM forum_topics WHERE ft_id='{$_GET['topic']}'") or die(mysql_error());   :wink: added some security in there ;D
  18. Re: Guess the next poster Nope Matt
  19. Re: TwIsTeD WiShEs ! Granted but when you got there you died. I wish i could get my new rs 250 aprilia sooner than the 11th of june 2008 :-(
  20. Re: Energy Orb [$5] Nope ben. Not to be mean or ruin your post but Iso's 1 is preferebly better. It comes with the donator page and everything set.   When i bought your's it don't really work all you get is 150% Energy, Then when you attack someone it cost 75% energy and the gym also has problem's. Yes matt when you bought his it never worked but remmember i got it working ;)
  21. Re: TwIsTeD WiShEs ! Granted, But they all became so good at coding you are taken out. I wish everyone would die :D
  22. Re: Guess the next poster Nope -Matt-
  23. Re: Honour Awards Help Damn go read your blog rather :P Type of honor: Level Award Variable in DB: level Table honor apears in: users How much of a variable: 50 So it will be a level honor award with level in the db apearing in the users table so he has to have 50 to get it CAPISH? Do you understand now?
  24. Re: New at cs2   Well i am asking for help you got a problem with it?
  25. Ok i am new at cs2 and i just finished making a picture. I come to find that the file is 777kb big, i wanted to know how to make this smaller. Any suggestions?
×
×
  • Create New...