Jump to content
MakeWebGames

DELETE ME NOW!

Members
  • Posts

    346
  • Joined

  • Last visited

    Never

Everything posted by DELETE ME NOW!

  1. Re: [mccodes] Pay To Click Addon [$20] lol
  2. Re: [review] criminaltown Looks ok. Things i dont like Background dont like. Shoutbox dont like. Shoutbox background dont like. Border dont like. Login page dont like. Register dont like. You could in prove on theses though:P
  3. Re: [Review] The Darkest Fate Looks ok yeah, looks like you have 2 banners with them ads lol. You could make the layout bit more better :mrgreen: Ill rate it at 5/10
  4. Re: [mccode v2] Easter Egg Hunt Sounds like a good idea the you have 1 hour to finish hunt. Yall need like a cron. When user takes the hunt, make it update the database for the user to start the time.. Sounds good :P
  5. Re: Help Please Very Urgent Something like this.... -- i have only added userid 1 just add more like , "2", "3" ect. $ids = array("1"); if (in_array($_POST['blah'], $ids)) { die("You can not delete this person!"); } Reply (blah) with like (user, or.. userid)...
  6. Re: Cock Fight [$20] Lol
  7. Re: Help Please Very Urgent Have you done it? Edit your code so no one can delete/fed/mailban userid 1 :D simple.
  8. Re: Cock Fight [$20] Wow, nice mod Isomerizer, just been playing it looks nice :) +1
  9. Re: View User Fix Please Help   Yeah i hate when people do that lol
  10. Re: MainMenu Mod! NEW! Yeah, also for reorder function POG1 should me some jquery, what could do it:P
  11. Re: MainMenu Mod! NEW! it dont..., prob when you click a link it takes you to another game because someone has added a new link to it redirects you lol
  12. Re: MainMenu Mod! NEW!   Thankyou :)
  13. Re: [McCodes V2] Unique Template's Looks good Dayo :)
  14. Re: Crime-Network Now Released! You might want to add an index.php or index.htm file in your /main folder everyone can see ur php files :P lol
  15. Re: MainMenu Mod! NEW! Bump Up My Post
  16. Re: MainMenu Mod! NEW! Np :)
  17. Re: MainMenu Mod! NEW! Feel free to mess with the demo mainmenu :D
  18. Re: MainMenu Mod! NEW!   Yes of course ;)
  19. Re: MainMenu Mod! NEW! More updates will be added when i can be arsed lol.
  20. Re: MainMenu Mod! NEW! Just forgot to say that reorder function was from staff reorder groups so dont try moaning, but just little work and its done, all works fine!, you might need to edit some of them links though, because it has /elite/ in them.
  21. Mainmenu Mod. Demo here: CLICK HERE Lets start Run SQL -- -- Table structure for table `mainmenu` -- CREATE TABLE IF NOT EXISTS `mainmenu` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL, `link` varchar(255) NOT NULL, `order` int(11) NOT NULL, `staff` int(11) NOT NULL, `active` smallint(1) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=45 ; -- -- Dumping data for table `mainmenu` -- INSERT INTO `mainmenu` (`id`, `name`, `link`, `order`, `staff`, `active`) VALUES (14, 'Staff Panel', 'staff.php', 25, 1, 0), (26, 'Settings', 'preferences.php', 12, 0, 0), (25, 'Gym', 'gym.php', 6, 0, 0), (20, 'Home', 'index.php', 1, 0, 0), (21, 'Inventory', 'inventory.php', 2, 0, 0), (22, 'Events', 'events.php', 3, 0, 0), (23, 'Mailbox', 'mailbox.php', 4, 0, 0), (24, 'Explore', 'explore.php', 5, 0, 0), (15, 'Change Main Menu ', 'staff_mainmenu.php', 24, 1, 0), (28, 'School', 'education.php', 11, 0, 0), (29, 'Hospital', 'hospital.php', 10, 0, 0), (30, 'Jail', '/elite/jail.php', 9, 0, 0), (27, 'Crime', '/elite/criminal.php', 7, 0, 0), (31, 'Forums', '/elite/forums.php', 15, 0, 0), (32, 'Announcements', '/elite/announcements.php', 16, 0, 0), (33, 'Newspaper', '/elite/newspaper.php', 17, 0, 0), (34, 'Search', '/elite/search.php', 18, 0, 0), (35, 'Friends List', 'friendslist.php', 19, 2, 0), (36, 'Black List', 'blacklist.php', 20, 2, 0), (38, 'Your Gang', '/elite/yourgang.php', 21, 3, 0), (39, 'Player Report', '/elite/preport.php', 22, 0, 0), (41, 'Help Tutorial', '/elite/helptutorial.php', 23, 0, 0), (42, 'Game Rules', '/elite/gamerules.php', 13, 0, 0), (43, 'Logout', '/elite/logout.php', 14, 0, 0);   Now Mainmenu for staff i called mine (staff_mainmenu.php) <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); if($ir['userid'] != 1) { echo 'You are not ment to be here'; $h->endpage(); exit; } $_GET['action'] = ($_GET['action']); switch($_GET['action']) { case "newLink" : new_link(); break; case "editLink" : edit_link(); break; case "deleLink" : dele_link(); break; case "reOrder" : reorder_m(); break; default : index(); break; } function index() { echo '<h3>Mainmenu Settings</h3>'; echo '[url="'. $_SERVER['PHP_SELF'] .'?action=newLink"]Add Menu Link[/url] [url="'. $_SERVER['PHP_SELF'] .'?action=editLink"]Edit Menu Link[/url] [url="'. $_SERVER['PHP_SELF'] .'?action=deleLink"]Delete Menu Link[/url] [url="'. $_SERVER['PHP_SELF'] .'?action=reOrder"]Reorder Menu[/url]'; } function new_link() { global $c; if(!isset($_POST['name'])){ echo '<h3>New Menu</h3>'; echo '<form action="" method="POST">'; echo 'Name: <input type="text" name="name" /> Link: <input type="text" name="link" /> For Staff: <select type="dropdown" name="staff"><option value="0">Everyone</option><option value="1">Staff Only</option><option value="2">Donators Only</option><option value="3">Gangs</option></select> Active: <select type="dropdown" name="active"><option value="0">Yes</option><option value="1">No</option></select> <input type="submit" value="-Add Menu-"></form>'; } else { $name = mysql_real_escape_string(htmlspecialchars($_POST['name'])); $link = mysql_real_escape_string(htmlspecialchars($_POST['link'])); $staff = abs(@intval ($_POST['staff'])); $active = abs(@intval ($_POST['active'])); mysql_query("INSERT INTO `mainmenu` (`name`, `link`, `order`, `staff`, `active`) VALUES('{$name}', '{$link}', '0', '{$staff}', '{$active}')", $c) or die(mysql_error()); echo $name . ' Menu has been added!'; } } function edit_link() { switch($_POST['page']) { case "2": $name = mysql_real_escape_string(htmlspecialchars($_POST['name'])); $link = mysql_real_escape_string(htmlspecialchars($_POST['link'])); $staff = abs(@intval ($_POST['staff'])); $active = abs(@intval ($_POST['active'])); mysql_query("UPDATE `mainmenu` SET `name` = '". $name ."', `link` = '". $link ."', `staff` = '". $staff ."', `active` = '". $active ."' WHERE (`id` = '". $_POST['id'] ."')") or die(mysql_error()); print "Menu has been updated!"; break; case "1": $sql = mysql_query("SELECT * FROM `mainmenu` WHERE (`id` = '". $_POST['mainmenu'] ."')") or die (mysql_error()); $row = mysql_fetch_array($sql); echo '<h3>Editing a menu link</h3><hr /> <form action="'. $_SERVER['PHP_SELF'] .'?action=editLink" method="post"> <input type="hidden" name="page" value="2" /> <input type="hidden" name="id" value="'. $_POST['mainmenu'] .'" /> Name: <input type="text" name="name" value="'. $row['name'] .'" /> Link: <input type="text" name="link" value="'. $row['link'] .'" /> For Staff: <select type="dropdown" name="staff"><option value="0" '; if($row['staff'] == 0) { echo 'selected="selected"'; } echo '>Everyone</option> <option value="1" '; if($row['staff'] == 1) { echo 'selected="selected"'; } echo '>Staff Only</option> <option value="2" '; if($row['staff'] == 2) { echo 'selected="selected"'; } echo '>Donators Only</option> <option value="3" '; if($row['staff'] == 3) { echo 'selected="selected"'; } echo '>Gangs</option></select> Active: <select type="dropdown" name="active"><option value="0" '; if($row['active'] == 0) { echo 'selected="selected"'; } echo '>Yes</option> <option value="1" '; if($row['active'] == 1) { echo 'selected="selected"'; } echo '>No</option></select> <input type="submit" value="-Update Menu-" /></form>'; break; default: echo '<h3>Edit a Menu</h3> <form action="'. $_SERVER['PHP_SELF'] .'?action=editLink" method="POST"> <input type="hidden" name="page" value="1" /> Menu Name: '. mainmenu_dropdown($c, "mainmenu") .' <input type="submit" value="-Edit Menu-" /></form>'; break; } } function dele_link() { if($_POST['mainmenu']) { mysql_query("DELETE FROM `mainmenu` WHERE (`id` = '". $_POST['mainmenu'] ."')") or die (mysql_error()); print "Menu Has just been deleted!"; } else { echo '<h3>Delete a Menu</h3>'; echo 'Make sure you want to delete it, there is no undo, unless you add it back.!'; echo '<form action="'. $_SERVER['PHP_SELF'] .'?action=deleLink" method="POST">'; echo 'Menu Name: '. mainmenu_dropdown($c, "mainmenu") .' '; echo '<input type="submit" value="-Delete Menu, Be Sure-" /></form>'; } } function reorder_m() { global $c, $h; if($_POST['submit']) { unset($_POST['submit']); $used = array(); foreach($_POST as $v) { if(in_array($v, $used)) { echo 'Error, You have used the same Reorder number twice, Please go back and try again!'; $h->endpage(); exit; } $used[] = $v; } foreach($_POST as $k => $v) { $ml = str_replace("order","", $k); if(is_numeric($ml)) { mysql_query("UPDATE `mainmenu` SET `order`='{$v}' WHERE `id`='{$ml}'"); } } echo 'Mainmenu Links has been reordered!'; } else { $sql = mysql_query("SELECT * FROM `mainmenu` ORDER BY `order`"); $rows = mysql_num_rows($sql); $i = 0; echo '<h3>Reorder Mainmenu Links</h3><hr /> <table width="80%" cellspacing="1"> <tr> <th>Menu Names</th> <th>Order</th> </tr> <form action="?action=reOrder" method="POST"> <input type="hidden" name="submit" value="1" />'; while($r = mysql_fetch_array($sql)) { $bgcolor = ($bgcolor == "RED") ? "GREEN" : "RED"; $i++; echo '<tr style="background-color: '. $bgcolor .'"> <td>'. $r['name'] .'</td> <td><select name="order'. $r['id'] .'" type="dropdown">'; for($j = 1; $j <= $rows; $j++) { if($j == $i) { echo '<option value="'. $j .'" selected="selected">'. $j .'</option>'; } else { echo '<option value="'. $j .'">'. $j .'</option>'; } } echo '</select></td></tr>'; } echo '<tr> <td colspan="2" align="center"><input type="submit" value="-Reorder Mainmenu-" /></td> </tr></form></table>'; } } ?>   Now Mainmenu.php Warning! On this code you need to edit!! You see a few lines down? like {$ir['events']} ect replace them with V2 ones or V1 ones other wise it aint going to work!!!! <?php global $c, $ir; $sql = mysql_query("SELECT * FROM `mainmenu` WHERE `active` = '0' && `staff` = '0' ORDER BY `order`", $c) or die(mysql_error()); while($r = mysql_fetch_array($sql)) { $e = ($r['name'] == "Events") ? "({$ir['events']})" : ""; $m = ($r['name'] == "Mailbox") ? "({$ir['mail']})" : ""; $a = ($r['name'] == "Announcements") ? "($announcements)" : ""; $j = ($r['name'] == "Jail") ? "({$set['jail_count']})" : ""; $h = ($r['name'] == "Hospital") ? "({$set['hospital_count']})" : ""; echo '[url="'. $r['link'] .'"]'. $r['name'] .' '. $e .' '. $m .' '. $a .' '. $j .' '. $h .'[/url] '; } if($ir['gang'] > 0) { echo ' [b]Your Gang Area[/b] '; $gsql = mysql_query("SELECT * FROM `mainmenu` WHERE `active` = '0' && `staff` = '3' ORDER BY `order`", $c) or die(mysql_error()); while ($r = mysql_fetch_array($gsql)) { echo '[url="'. $r['link'] .'"]'. $r['name'] .'[/url] '; } } if($ir['donatordays']) { echo ' [b]Donator Area[/b] '; $dsql = mysql_query("SELECT * FROM `mainmenu` WHERE `active` = '0' && `staff` = '2' ORDER BY `order`", $c) or die(mysql_error()); while ($r = mysql_fetch_array($dsql)) { echo '[url="'. $r['link'] .'"]'. $r['name'] .'[/url] '; } } if($ir['user_level'] > 1) { echo ' [b]Staff Area[/b] '; $ssql = mysql_query("SELECT * FROM `mainmenu` WHERE `active` = '0' && `staff` = '1' ORDER BY `order`", $c) or die(mysql_error()); while($r = mysql_fetch_array($ssql)) { echo '[url="'. $r['link'] .'"]'. $r['name'] .'[/url] '; } } ?>   Open global_func.php Find ?>   Before add function mainmenu_dropdown($connection,$ddname="mainmenu",$selected=-1) { $ret = "<select name='$ddname' type='dropdown'>"; $q = mysql_query("SELECT * FROM mainmenu"); if($selected == -1) { $first=0; } else { $first=1; } while($r=mysql_fetch_array($q)) { $ret.="\n<option value='{$r['id']}'"; if ($selected == $r['id'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['name']}</option>"; } $ret.="\n</select>"; return $ret; }   Now i think you should be done, if not reply Thanks :)
  22. Re: [mccodes v2]Sin City [100$] one copy Nice template bro :P
  23. Re: small job problem im a noob :( Lol on all of them with $ir Replace with $r and you should be done.
  24. Re: [McCodes V2] Assassinate user (donator only) Ahh yeah i forgot to remove the , lol and yeah
  25. Re: GFX Cheap. There alright:)
×
×
  • Create New...