Joel
Members-
Posts
1,169 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Joel
-
Re: MCCODES + Graphic I have a background image, I put my background image in Header.php : / It was Complicated thou XD
-
Re: Adding Citys V2 Yepp hes Correct, Search the Forums and im Positive its here somewhere! But if you Carnt be Bothered then Ill just post my Working One, Replace staff_cities.php with this: <?php include "sglobals.php"; if($ir['user_level'] > 2) { die("403"); } //This contains city stuffs switch($_GET['action']) { case "addcity": addcity(); break; case "editcity": editcity(); break; case "delcity": delcity(); break; default: print "Error: This script requires an action."; break; } function addcity() { global $db, $ir, $c, $h, $userid; $minlevel=abs((int) $_POST['minlevel']); $name=$_POST['name']; $desc=$_POST['desc']; if($minlevel and $desc and $name) { $q=$db->query("SELECT * FROM cities WHERE cityname='{$name}'"); if($db->num_rows($q)) { print "Sorry, you cannot have two cities with the same name."; $h->endpage(); exit; } $db->query("INSERT INTO cities VALUES(NULL, '$name', '$desc', '$minlevel')"); print "City {$name} added to the game."; stafflog_add("Created City $name"); } else { print "<h3>Add City</h3><hr /> <form action='staff_cities.php?action=addcity' method='post'> Name: <input type='text' name='name' /> Description: <input type='text' name='desc' /> Minimum Level: <input type='text' name=minlevel' /> <input type='submit' value='Add City' /></form>"; } } function editcity() { global $db, $ir, $c, $h, $userid; switch($_POST['step']) { case "2": $minlevel=abs((int) $_POST['minlevel']); $name=$_POST['name']; $desc=$_POST['desc']; $q=$db->query("SELECT * FROM cities WHERE cityname='{$name}' AND cityid!={$_POST['id']}"); if($db->num_rows($q)) { print "Sorry, you cannot have two cities with the same name."; $h->endpage(); exit; } $name=$_POST['name']; $q=$db->query("SELECT * FROM cities WHERE cityid={$_POST['id']}"); $old=$db->fetch_row($q); $db->query("UPDATE cities SET cityminlevel=$minlevel, citydesc='$desc', cityname='$name' WHERE cityid={$_POST['id']}"); print "City $name was edited successfully."; stafflog_add("Edited city $name"); break; case "1": $q=$db->query("SELECT * FROM cities WHERE cityid={$_POST['city']}"); $old=$db->fetch_row($q); print "<h3>Editing a City</h3><hr /> <form action='staff_cities.php?action=editcity' method='post'> <input type='hidden' name='step' value='2' /> <input type='hidden' name='id' value='{$_POST['city']}' /> Name: <input type='text' name='name' value='{$old['cityname']}' /> Description: <input type='text' name='desc' value='{$old['citydesc']}' /> Minimum Level: <input type='text' name='minlevel' value='{$old['cityminlevel']}' /> <input type='submit' value='Edit City' /></form>"; break; default: print "<h3>Editing a City</h3><hr /> <form action='staff_cities.php?action=editcity' method='post'> <input type='hidden' name='step' value='1' /> City: ".location_dropdown($c, "city")." <input type='submit' value='Edit City' /></form>"; break; } } function delcity() { global $db,$ir,$c,$h,$userid; if($_POST['city']) { $q=$db->query("SELECT * FROM cities WHERE cityid={$_POST['city']}"); $old=$db->fetch_row($q); if($old['cityid']==1) { die("This city cannot be deleted."); } $db->query("UPDATE users SET location=1 WHERE location={$old['cityid']}"); $db->query("UPDATE shops SET shopLOCATION=1 WHERE shopLOCATION={$old['cityid']}"); $db->query("DELETE FROM cities WHERE cityid={$old['cityid']}"); print "City {$old['cityname']} deleted."; stafflog_add("Deleted city {$old['cityname']}"); } else { print "<h3>Delete City</h3><hr /> Deleting a city is permanent - be sure. Any users and shops that are currently in the city you delete will be moved to the default city (ID 1).<form action='staff_cities.php?action=delcity' method='post'> City: ".location_dropdown($c, "city")." <input type='submit' value='Delete City' /></form>"; } } function report_clear() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $_GET['ID'] = abs((int) $_GET['ID']); stafflog_add("Cleared player report ID {$_GET['ID']}"); $db->query("DELETE FROM preports WHERE prID={$_GET['ID']}"); print "Report cleared and deleted! [url='staff_users.php?action=reportsview']> Back[/url]"; } $h->endpage(); ?>
-
Re: Count Backwards :D 4968
-
Re: Count Backwards :D 4969
-
Re: [$25] Treasure Map! Ill buy this mod very soon :) Nice work aswell! :)
-
Re: [v2]Attack Ban[v2] Thank You Mate, Looks Good :)
-
Re: [V2] Better Explore Page [V2] Well if you Dont really like it, Why have you got it on your Game?
-
Re: ruby market V2 Well since no one decided to Post on this Topic, Nice Work Mate! :-D
-
I really really need help with my Mailbox, When i send a message to some one or they send a mail to me it doesnt show (1) next to the mailbox it just stays at (0) and i dont no whats causing this to happen, It use to work like a charm but now its not, Ive deleted all the messages and still doesnt work and I've put the Normal V2 Mailbox back in and it still doesnt work, I thought it would have something to with my mainmenu.php but im not shaw, Please have a look at my 2 Files Below and see if you can see whats up with them, Please!!! mailbox.php <?php ################################### ## Made By -Freek- ## ## Mail Box Adds on ## ## Copyright 2007 Deadly Mafia ## ################################### include "globals.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']); print "<table width=100% class='table' cellspacing='1'> <tr> <td align=center>[url='mailbox.php?action=inbox']Inbox[/url]</td> <td align=center>[url='mailbox.php?action=outbox']Sent Messages[/url]</td> <td align=center>[url='mailbox.php?action=compose']Compose Message[/url]</td> <td align=center>[url='mailbox.php?action=delall']Delete All Messages[/url]</td> <td align=center>[url='mailbox.php?action=archive']Archive Messages[/url]</td> <td align=center>[url='contactlist.php']My Contacts[/url]</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; case 'delall': mail_delall(); break; case 'delall2': mail_delall2(); break; case 'archive': mail_archive(); break; case 'read': mail_view(); break; case 'del': mail_massdel(); break; default: mail_inbox(); break; } function mail_inbox() { global $db,$ir,$c,$userid,$h; print<<<END <SCRIPT><!-- HIDE function setCheckboxes(the_form, do_check) { var elts = (typeof(document.forms[the_form].elements['ID[]']) != 'undefined') ? document.forms[the_form].elements['ID[]'] : (typeof(document.forms[the_form].elements['ID[]']) != 'undefined') ? document.forms[the_form].elements['ID[]'] : document.forms[the_form].elements['ID[]']; var elts_cnt = (typeof(elts.length) != 'undefined') ? elts.length : 0; if (elts_cnt) { for (var i = 0; i < elts_cnt; i++) { elts[i].checked = do_check; } // end for } else { elts.checked = do_check; } // end if... else return true; } // STOP HIDING --></SCRIPT> END; print <<<OUT Only the last 25 messages sent to you are visible. <table width=100% class=table cellspacing="1"> <tr> <td class="h" align=center>From</td> <td class="h" align=center>Subject</td> <td class="h" align=center>Status</td> <td class="h" align=center>Read</td> <td class="h" align=center>Delete</td> </tr> <form name='masssell' method=post action=mailbox2.php?action=del> 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 25"); $i=0; while($r=$db->fetch_row($q)) { print "<tr class=\"d".($i & 1)."\"><td align=center>"; $i++; if($r['userid']) { print "[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=$r['mail_subject']; if($r['mail_read'] == 0) { $status="<font color=red>Unread</font>"; } else { $status="<font color=green>Read</font>"; } print " </td> <td align=center> $fm </td> <td align=center> $status </td> <td align=center> [url='mailbox.php?action=read&ID={$r[']Open[/url] </td> <td align=center> <a href='mailbox.php?action=delete&ID={$r['mail_id']}'> <img src=images/trash.gif height=20 width=20 > </a> <input type='checkbox' name='del$i' value='yes'> <input type='hidden' name='id$i' value='{$r['mail_id']}'> </td></tr>"; } print<<<END <tr> <td colspan=5 align=center> <input name=sellmass type=submit id=sellmass value='Delete selected'><a href=# onClick="setCheckboxes('masssell',true); return false;'> Check All</A> | [url="#"]Uncheck All[/url] </form> </td> </tr> </table> END; } /* These are off function mail_inbox() { global $db,$ir,$c,$userid,$h; print <<<OUT Only the last 25 messages sent to you are visible. <table width=100% class="table" border="0" cellspacing="1"> <tr> <td class="h" width="30%">From</td> <td class="h" width="70%">Subject/Message</td> </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 25"); 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_text']); print <<<EOF </td> <td>{$r['mail_subject']}</td> </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> 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>'; } OFF */ function mail_outbox() { global $db,$ir,$c,$userid,$h; print "Only the last 25 messages you have sent are visible. <table width=100% cellspacing=1 class='table'><tr style='background:gray'><th>To</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 25"); while($r=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td>[url='viewuser.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>"; } print "</table>"; } function mail_compose() { global $db,$ir,$c,$userid,$h; print "<form action='mailbox.php?action=send' method='post'> <table width=100% cellspacing=1 class='table'> <tr> <td>Contact to send to:</td> <td>"; $q=$db->query("SELECT c.*, u.username FROM contactlist c LEFT JOIN users u ON c.cl_ADDED=u.userid WHERE c.cl_ADDER={$userid} ORDER BY u.username ASC"); if($db->num_rows($q) == 0) { print "You have no contacts!"; } else { print "<select class='textbox' name='user1' type='dropdown'><option value=''><select a contact...></option>"; while($r=$db->fetch_row($q)) { print "<option value='{$r['username']}'>{$r['username']}</option>"; } print "</select>"; } if($_GET['ID']) { $user=$db->fetch_single($db->query("SELECT username FROM users WHERE userid={$_GET['ID']}")); } print "</td></tr><tr> <td>[b]OR[/b] Enter a username to send to:</td><td><input class='textbox' type='text' name='user2' value='{$user}' /></td></tr><tr> <td>Subject:</td> <td><input class='textbox' type='text' name='subject' /></td></tr><tr> <td>Message:</td> <td> <textarea class='textbox' rows=5 cols=40 name='message'></textarea> <table class=textbox border=0 cellspacing=0 width=100%> <td>[b] :] [/b] <td>[img=smilies/happy.gif] <td>[b] :D [/b] <td>[img=smilies/biggrin.gif] <td>[b] :oo: [/b] <td>[img=smilies/cool.gif] <td>[b] O.o [/b] <td>[img=smilies/blink.gif] <td>[b] :/ [/b] <td>[img=smilies/dry.gif] </table> <table class=textbox border=0 cellspacing=0 width=100%> <td>[b] ;) [/b] <td>[img=smilies/wink.gif] <td>[b] :?: [/b] <td>[img=smilies/huh.gif] <td>[b] :lol: [/b] <td>[img=smilies/laugh.gif] <td>[b] :-: [/b] <td>[img=smilies/mellow.gif] <td>[b] :angry: [/b] <td>[img=smilies/angry.gif] </table> <table class=textbox border=0 cellspacing=0 width=100%> <td>[b] :( [/b] <td>[img=smilies/sad.gif] <td>[b] O.O [/b] <td>[img=smilies/ph34r.gif] <td>[b] :roll: [/b] <td>[img=smilies/rolleyes.gif] <td>[b] :zzz: [/b] <td>[img=smilies/sleep.gif] <td>[b] :) [/b] <td>[img=smilies/smile.gif] </table> <table class=textbox border=0 cellspacing=0 width=100%> <td>[b] :P [/b] <td>[img=smilies/tongue.gif] <td>[b] :S [/b] <td>[img=smilies/unsure.gif] <td>[b] :nut: [/b] <td>[img=smilies/wacko.gif] <td>[b] :O [/b] <td>[img=smilies/ohmy.gif] <td>[b] :heart: [/b] <td>[img=smilies/wub.gif] </table> </td></tr><tr> <td colspan=2><input type='submit' class='textbox' value='Send' /></td></tr></table></form>"; if($_GET['ID']) { print " <table width=75% border=2><tr><td colspan=2>[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>$sent</td> <td>[b]{$r['sender']} wrote:[/b] {$r['mail_text']}</td></tr>"; } print "</table>"; } } function mail_send() { global $db,$ir,$c,$userid,$h; $subj=str_replace(array("\n"),array(" "),strip_tags($_POST['subject'])); $msg=str_replace(array("\n"),array(" "),strip_tags($_POST['message'])); if($_POST['user1'] && $_POST['user2']) { die("Please do not select a contact AND enter a username, only do one. [url='mailbox.php']> Back[/url]"); } if(!$_POST['user1'] && !$_POST['user2']) { die("You must select a contact or enter a username. [url='mailbox.php']> Back[/url]"); } $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=($_POST['user1']) ? $_POST['user1'] : $_POST['user2']; $q=$db->query("SELECT userid FROM users WHERE username='{$to}'"); if($db->num_rows($q)==0) { die("You cannot send mail to nonexistant users. [url='mailbox.php']> Back[/url]"); } $to=$db->fetch_single($q); $db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmsg')"); $db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid={$to}"); print "Message sent. [url='mailbox.php']> Back[/url]"; } function mail_delete() { global $db,$ir,$c,$userid,$h; $db->query("DELETE FROM mail WHERE mail_id={$_GET['ID']} AND mail_to=$userid"); print "Message deleted. [url='mailbox.php']> Back[/url]"; } function mail_delall() { global $ir,$c,$userid,$h; 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 $db,$ir,$c,$userid,$h; $db->query("DELETE FROM mail WHERE mail_to=$userid"); print "All ".$db->affected_rows()." 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]"; } function mail_view() { global $db,$ir,$c,$userid,$h; print <<<OUT <table width=100% class="table" border="0" cellspacing="1"> <tr> <td class="h" width=25%>From</td> <td class="h" width=75%>Subject/Message</td> </tr> OUT; $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"); $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_text']); print "</td>\n<td>{$r['mail_subject']}</td></tr><tr><td>Sent at: $sent "; if($ir['mailban'] == 0) { print "[url='mailbox.php?action=compose&ID={$r[']Reply[/url] "; } print "[url='mailbox.php?action=delete&ID={$r[']Delete[/url] [url='preport.php?ID={$r[']Report[/url]</td><td>{$r['mail_text']}</td></tr>"; if($r['mail_read'] == 0) { $db->query("UPDATE mail SET mail_read=1 WHERE mail_to=$userid AND mail_id=$id LIMIT 1"); $db->query("UPDATE users SET new_mail=new_mail-1 WHERE userid=$userid"); } print "</table>"; } function mail_massdel() { global $db,$ir,$c,$userid,$h; $counter = 1; $deleted=0; while ($counter < 25) { $dodel = "del" . $counter; if ($_POST[$dodel] == "yes") { $delid = "id" . $counter; $db->query("DELETE FROM mail WHERE mail_to=$userid AND mail_id={$_POST[$delid]}") or die(mysql_error()); $deleted++; } $counter++; } print "<center> $deleted messages deleted. <a href=mailbox.php>> Back</a>"; } print " Mail count mixed up? Click [url='fix.php?fix=1']Here[/url] to fix"; $h->endpage(); ?> Like i said I've tried the Old V2 Mailbox and it still dont work! mainmenu.php <?php global $db,$c,$ir, $set; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; if($ir['hospital']) { print "[url='hospital.php']<font color=red>Hospital ($hc)[/url] [url='inventory.php']Inventory[/url] "; } elseif($ir['jail']) { print "[url='jail.php']<font color=red>Jail ($jc)[/url] "; } else { print "[url='index.php']Home[/url] [url='inventory.php']Inventory[/url] "; } if($ec > 0) { print "[url='events.php']Events ($ec)[/url] "; } else { print "[url='events.php']Events (0)[/url] "; } if($mc > 0) { print "[url='mailbox.php']Mailbox ($mc)[/url] "; } else { print "[url='mailbox.php']Mailbox (0)[/url] "; } if($ir['jail'] and !$ir['hospital']) { print "[url='gym.php']Jail Gym[/url] [url='hospital.php']Hospital ($hc)[/url] "; } else if (!$ir['hospital']) { print "[url='explore.php']Explore[/url] [url='gym.php']Gym[/url] [url='gym2.php']Brutal Gym[/url] [url='criminal.php']Crimes[/url] [url='job.php']Your Job[/url] [url='education.php']Local School[/url] <hr>[url='hospital.php']Hospital ($hc)[/url] [url='jail.php']Jail ($jc)[/url] [url='bored.php']Are You Bored![/url] "; } else { print "[url='jail.php']Jail ($jc)[/url] "; } print "[url='/forum/phpBB3/']Forums[/url] "; if($ir['new_announcements']) { print "[url='announcements.php']Announcements ({$ir['new_announcements']})[/url] "; } else { print "[url='announcements.php']Announcements (0)[/url] "; } print " [url='newspaper.php']Newspaper[/url] [url='search.php']Search[/url] "; if(!$ir['jail'] && $ir['gang']) { print "[url='yourgang.php']Your Gang[/url] "; } if($ir['user_level'] < 2) { print "<hr /> [b]<u>Link's</u>[/b] [url='pictures.php']Pictures[/url] [url='http://www.mozilla-europe.org/en/products/firefox/']Get Firefox Now[/url] [url='downloadstuff.php']Download Stuff[/url] [url='http://criminalexistence.com/']Criminal Existence[/url] [url='http://www.google.com']Google[/url] [url='http://www.bebo.com']Bebo[/url] [url='http://www.mccodes.com']Mccode's[/url] [url='termsofservice.php']Terms of Service[/url] \n"; } if($ir['user_level'] > 2) { print "<hr /> [b]<u>Link's</u>[/b] [url='http://www.mozilla-europe.org/en/products/firefox/']Get Firefox Now[/url] [url='http://criminalexistence.com/']Criminal Existence[/url] [url='termsofservice.php']Terms of Service[/url] \n"; } if($ir['user_level'] > 1) { print "<hr /> [url='staff.php']Staff Panel[/url] \n"; print "<hr />[b]Staff Online:[/b] "; $q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC"); while($r=$db->fetch_row($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } print "[url='viewuser.php?u={$r[']{$r['username']}[/url] ($la $unit) "; } } if($ir['donatordays']) { print "<hr /> [b]Donators Only[/b] [url='friendslist.php']Friends List[/url] [url='blacklist.php']Black List[/url]"; } print "<hr /> [url='preferences.php']Preferences[/url] [url='preport.php']Player Report[/url] [url='helptutorial.php']Help Tutorial[/url] [url='gamerules.php']Game Rules[/url] [url='viewuser.php?u={$ir[']My Profile[/url] [url='chooseyourbrowser.php']Logout[/url] <hr> [b]Time is now[/b] "; echo date ('F j, Y')."-".date('g:i:s a'); ?> Please Help me with this one Pleaseeeeeeeeeee :oops:
-
How do i add (Events Logs) in admin.php, Im using V1.1 off mccodes, Please Help, thanks
-
Re: [V2] Better Explore Page [V2] Yeh Maybe, But for N00bz who carnt code, It would be better for them And plus the old Explore page is Boring so, Yes I Improved it a Little :|
-
Re: [mccodes] Free Crystal Bank [v1] Are you using the version 2 set of code? the function query() is specific to v2, it is not used in version 1 coding. <?php // Crystal Bank mod // Absolute Zero // [url]www.battlefield-online.com[/url] // Free for criminal existence members include "globals.php"; print "<center><h3>Crystal Bank</h3></center><hr />"; if($ir['bankcrystal']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>49999) { print " <center> Congratulations, you bought the crystal and money bank for \$50,000! <a href='crystalbank.php'> Start using my accounts! </a> </center>"; mysql_query("UPDATE users SET money=money-50000,bankcrystal=0 WHERE userid=$userid",$c); } else { print " <center> You do not have enough money to open the crystal and money bank accounts! <a href='index.php'> Home </a> </center>"; } } else { print " <center> Open a crystal and money bank account today, just \$50,000! <a href='crystalbank.php?buy'> Yes, sign me up! </a> </center>"; } } function index() { global $ir,$c,$userid,$h; print " <center>\n[b]You currently have {$ir['bankcrystal']} crystals in the crystal bank.[/b] There is no interest involved with crystal bank, only for army bank! </center><center> <table width='75%' border='1'> <th bgcolor=gray width=50%>Deposit Crystals</th> <th bgcolor=gray width=50%>Withdraw Crystals</th> <tr><td> <center>There is no fee on crystals deposits. <form action='crystalbank.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['crystals']}' /> <input type='submit' value='Deposit' /></form></td> <td> <center>There is no fee on crystal withdrawals. <form action='crystalbank.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['bankcrystal']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['crystals']) { print "<center> You do not have enough crystals to deposit this amount. </center>[url='index.php']Home[/url]</center>"; } else { $gain=$_POST['deposit']-$fee; $ir['bankcrystal']+=$gain; mysql_query("UPDATE users SET bankcrystal=bankcrystal+$gain, crystals=crystals-{$_POST['deposit']} where userid=$userid",$c); print "<center> You hand over {$_POST['deposit']} crystals and they are deposited. You now have [b]{$ir['bankcrystal']}[/b] crystals in the bank. [url='crystalbank.php'] Back[/url]"; } } function withdraw() { global $ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['bankcrystal']) { print "<center> You do not have enough banked crystals to withdraw this amount. [url='crystalbank.php']Back[/url]</center>"; } else { $gain=$_POST['withdraw']; $ir['bankcrystal']-=$gain; mysql_query("UPDATE users SET bankcrystal=bankcrystal-$gain, crystals=crystals+$gain where userid=$userid",$c); print "<center>You withdraw $gain crystals from your bank. You now have [b]{$ir['bankcrystal']}[/b] crystals in the bank. [url='crystalbank.php'] Back[/url]</center>"; } } $h->endpage(); ?> BlackDragons Code dont work, Mine does for V2
-
Re: Some free Apps for your Game Site! Yep Maybe so :|
-
Re: Some free Apps for your Game Site! Hmm, I dont no you ask me Some people think its fun and some people think its not, But its your choice if you want it on your Game website, But its more entertainment to your site :|
-
Re: Main Menu Open Header.php and find this: a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } Then under that add this: a:hover { cursor: none; background:#; text-decoration: underline; } I dont no how to make it Gold as i aint done that yet, But it underlines the text when you Hover over it :-D
-
Hi, I want my players to see the whole travel thing, So they can see where to travel even if there not level 500, Like if there level 1 they can only see the place they can go, but i want them to see all the places they can go, Say if Im a Level 1 and The city name is for Level 500, I carnt see it but if im level 500 i can see it, So i wud like someone to tell me how my users can see al the cities in Mccodes V2, Thanks Ive tried for ages and cannot do it :| Please help
-
Replace this with your Explore.php <?php include "globals.php"; $tresder=(int) rand(100,999); if($ir['jail'] or $ir['hospital']) { die("This Page Cannot be Accessed while in Jail or Hospital."); } if ($ir['donatorpack'] == 0) { print" <hr><form action=starterkit.php><input type='submit' value='Claim your free Starter Kit now!'></form>"; } $eon = mysql_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'")); echo "<hr>{$eon['cityname']} <hr>"; $eon = mysql_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'")); echo "<marquee>Your Currently Exploring {$eon['cityname']}, Theres Shops, Markets, Crystal GYM, Pick Three, Lottery, Buckys, City Bank, Lucky Boxes, Gangs, Jail, Polling Both, [NEW] Brutal Player, And What Else You Can See!</marquee> <hr> <table width=90% cellspacing=1 class='table'><tr style='background:grey'> <td valign=top> <center><u><font color=#0066FF><h3>Shops and Markets</h3></u> [url='shops.php']Shops[/url] [url='itemmarket.php']Item Market[/url] [url='dmarket.php']Donator Days Market[/url] [url='cmarket.php']Crystal Market[/url]</td> <td valign=top> <center><u><font color=#0066FF><font-family: verdana><h3>Local City</h3></u> [url='monorail.php']Travel Agency[/url] [url='estate.php']Estate Agent[/url] [url='bank.php']City Bank[/url] [url='search1.php']Rummage Around[/url]"; if($ir['location'] == 5) { print " [url='cyberbank.php']Cyber Bank[/url] "; } print "</td> <td valign=top> <center><u><font color=#0066FF><h3>Dark Side</h3></u> [url='drugfarm.php?action=mydrugs']Drugs[size="1"]<font color=red>(NEW)</font>[/size][/url] [url='drugsmarket.php']Drugs Market[size="1"]<font color=red>(NEW)</font>[/size][/url] [url='gangcentral.php']Gangs[/url] [url='gangwars.php']Gang Wars[/url] [url='guesswho.php']Guess Who[/url] [url='marital.php']Wedding Ceremony[/url] "; if ( $ir['married']) { print "[url='partner.php?action=divorce']Divorce Partner[/url] "; } print " [url='slotsmachine.php?tresde=$tresder']Slots Machine[/url] [url='roulette.php?tresde=$tresder']Roulette[/url] [url='lucky.php']Lucky Boxes[/url]"; if($ir['location'] == 5) { print " [url='slotsmachine3.php']Super Slots[/url] "; } print "</td></tr><tr height=100> <td valign=top> <center><u><font color=#0066FF><h3>Statistics Dept</h3></u> [url='userlist.php']User List[/url] [url='stafflist.php']{$set['game_name']} Staff[/url] [url='halloffame.php']Hall of Fame[/url] <a href=staffpos.php>Staff Positions</a> [url='stats.php']Game Stats[/url] [url='gymrecord.php']GYM Record[/url] [url='cstaff.php']Contact Staff[/url] [url='bugreporter.php']Bug Reporter[/url] [url='blogs.php']Blogs[size="1"]<font color=red>(NEW)</font>[/size][/url] [url='usersonline.php']Users Online[/url]</td><td valign=top> <center><u><font color=#0066FF><h3>Mysterious</h3></u> [url='searchengine.php']Brutal Impact Search Engine[/url] [url='pick3.php']Pick Three[/url] [url='polling.php']Polling Booth[/url] [url='lottery.php']Lottery[/url] [url='horsing.php']Buckys[/url] [url='maths.php']Maths Test[/url] [url='crystalgym.php']Crystal GYM[/url] [url='crystaltemple.php']Crystal Temple[/url] [url='brutalplayer.php']Brutal Player[size="1"]<font color=red>(NEW)</font>[/size][/url] [url='youtube.php']Built in Youtube[size="1"]<font color=red>(NEW)</font>[/size][/url] [url='brutalmaps.php']Brutal Maps[size="1"]<font color=red>(NEW)</font>[/size][/url] [url='battletent.php']Battle Tent[/url]</td><td valign=top> <center><u><font color=#0066FF><h3>Jails</h3></u> [url='fedjail.php']Federal Jail[/url] [url='fedjail.php']City Jail[/url] "; print "</td></tr></table> <font color=black><hr>This is your referal link: http://{$domain}/brutalregister.php?REF=$userid Every signup from this link earns you 30 valuable crystals!<hr>"; if($ir['user_level'] > 1) { print " [url='ownerpanel.php']| Owner Panel |[/url]\n [url='staff.php']| Staff Panel |[/url] <hr>\n"; } $h->endpage(); ?> Screenshot: You may need to replace some off the features that you aint got Made by me :-D
-
Re: Some free Apps for your Game Site! Yeh forget about them lol :-D
-
Re: Some free Apps for your Game Site! Yeh lol... Its awsome aint it all my Users love it you can Search for almost every song in the world it plays Videos and streams them off youtube and also has a radio , this app is brilliant :-D
-
I fount some off these Apps around the Internet and there Awsome i edited them abit to make them work with PHP, It will keep your Players Entertained because my Players like them and so should yours! ------------------------- Video, Music, Radio Player ------------------------- Make a File Called musicplayer.php or anything else and put this in it: <?php include "globals.php"; print "<hr><h3>Brutal Player</h3><hr>"; print "<html>"; print "<h2>Application is Loading....</h2> <embed src='http://www.dizzler.com/player/pod.swf' FlashVars='p=KmF8MjE4NzA0MQ==' width=500 height=340 quality='best' scale='noborder' pluginspage='http://www.macromedia.com/go/getflashplayer type='application/x-shockwave-flash' wmode='transparent' allowFullScreen='true'></embed> </center></td></tr></table></body> </html>"; ?> Demo: http://www.brutalimpact.net/brutalplayer.php You have to Sign in to Preview the Demo ------------------------- Google Maps ------------------------- Make a File Called maps.php and put this in it: <?php include "globals.php"; print "<hr><h3>Brutal Maps</h3><hr>"; print "<html>"; print "<h2>Application is Loading....</h2> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='content-type' content='text/html; charset=utf-8'/> <title>Google Maps JavaScript API Example</title> <script src='http://maps.google.com/maps?file=api&v=2&key=YOURKEYHERE' type='text/javascript'></script> <script type='text/javascript'> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById('map')); map.setCenter(new GLatLng(37.4419, -122.1419), 13); map.enableScrollWheelZoom(); map.setMapType(G_SATELLITE_MAP); } } //]]> </script> </head> <body onload='load()' onunload='GUnload()'> <div id='map' style='width: 600px; height: 500px'></div> </body> </html> </html>"; ?> Demo: http://www.brutalimpact.net/brutalmaps.php You have to Sign in to Preview the Demo! You have to get a API Key to use this on your website, Where it says (YOURKEYHERE) Put your key there, You can get a API Key from http://code.google.com/apis/maps/ Ill add more when I get round to it, Adajo :-D
-
Re: Profile Music Yes but, I click on the Extension and then it says Unknown Extension (text/html) and im using Firefox, So i dont no What extension it is :|
-
Re: Profile Music Good mod, But how do i play the videos, It says i have to install a plugin (text/html), Ive used Firefox, Internet Explorer, Opera Can some one tell me the plugin please, Thanks
-
Re: new login.php Its alright, People can re-arrange things easier in that new Login page It looks easier to edit then the original login page anyway :|
-
Re: Help with Marriage Pro Mod V2 by Oxi Ok no Prob, I will
-
Re: [v2]Reset Specific User[v2] Nice, Ill have try it out, Thanks