Jump to content
MakeWebGames

killer60

Members
  • Posts

    16
  • Joined

  • Last visited

Everything posted by killer60

  1. Yesterday, 7:36pm By SlanderDesign http://www.musicbattle.com http://www.darkmob.net (soon to be finished)<------- im liking this mate mate the other one not sure about it its not summat that catches my eye sorry but there both good in a way but liking darkmob the best They are many but most fail.
  2. Quit Was Hacked
  3. Re: [V2] Item Weight nice one sniko +1
  4. Re: Another Usersonline nice work m8
  5. Re: Any chance for 10 seonds of your time? dont know if u can do that but if u have the v2 version of gangs you could convert to v1 that would work
  6. Re: New Explore Page i didnt actually
  7. Re: New Explore Page i made it hitman for u i can give away it if i want
  8. Re: New Explore Page thx m8
  9. Re: New Explore Page lol i just wanted to do something diffrent m8
  10. Re: New Explore Page found problem in explore now fixed enjoy   <?php include "globals.php"; ?> <?php function format($str) { if(is_numeric($str)) { return number_format($str); } else { return nl2br(stripslashes(htmlspecialchars($str))); } } ?> <?php function denied() { global $ir, $h; if($ir['jail'] || $ir['hospital']) { echo sprintf("You cannot access this whilst in %s!", $ir['hospital'] ? 'hospital' : 'jail'); $h->endpage(); exit; } } ?> <center>[b]You begin exploring the area you're in, you see a bit that interests you.[/b]</center> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="299"> <tr> <td width="33%" height="19"> <p align="center"><u>Market Place</u></td> <td width="33%" height="19"> <p align="center"><u>Serious Money Makers</u></td> <td width="34%" height="19"> <p align="center"><u>Dark Side</u></td> </tr> <tr> <td width="33%" height="108"> <p align="center"> [url="shops.php"]Shops[/url] | [url="itemmarket.php"]Item Market[/url] | [url="cmarket.php"]Crystal Market[/url]</td> <td width="33%" height="108"> <p align="center"> [url="monorail.php"]Travel Agency[/url] | [url="estate.php"]Estate Agent[/url] | [url="bank.php"]City Bank[/url]</td> <td width="34%" height="108"> <p align="center"> [url="gangcentral.php"]Gangs[/url] | [url="gangwars.php"]Gang Wars[/url] | [url="fedjail.php"]Federal Jail[/url] | <a href="slotsmachine.php?tresde=428"> Slots Machine</a> | <a href="roulette.php?tresde=428"> Roulette</a> | <a href="lucky.php"> Lucky Boxes</a></td> </tr> <tr> <td width="33%" height="19"> <p align="center"><u>Statistics Dept</u></td> <td width="33%" height="19"> <p align="center"><u>Mysterious</u></td> <td width="34%" height="19"> <p align="center"><u>Coming Soon!!</u></td> </tr> <tr> <td width="33%" height="150"> <p align="center"> [url="userlist.php"]User List[/url] | [url="stafflist.php"]Staff List[/url] | <a href="halloffame.php"> Hall of Fame</a> | <a href="stats.php"> Game Stats</a> | [url="usersonline.php"]Users Online[/url]</td> <td width="33%" height="150"> <p align="center"> <a href="crystaltemple.php">Crystal Temple</a> | <a href="battletent.php"> Battle Tent</a></td> <td width="34%" height="150"> </td> </tr> </table> </body> </html>
  11. i bin working on a new explore page and here is the finished one <?php include "globals.php"; ?> <?php function format($str) { if(is_numeric($str)) { return number_format($str); } else { return nl2br(stripslashes(htmlspecialchars($str))); } } ?> <?php function denied() { global $ir, $h; if($ir['jail'] || $ir['hospital']) { echo sprintf("You cannot access this whilst in %s!", $ir['hospital'] ? 'hospital' : 'jail'); $h->endpage(); exit; } } ?> <center>[b]You begin exploring the area you're in, you see a bit that interests you.[/b]</center> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="299"> <tr> <td width="33%" height="19"> <p align="center"><u>Market Place</u></td> <td width="33%" height="19"> <p align="center"><u>Serious Money Makers</u></td> <td width="34%" height="19"> <p align="center"><u>Dark Side</u></td> </tr> <tr> <td width="33%" height="108"> <p align="center"> [url="shops.php"]Shops[/url] | [url="itemmarket.php"]Item Market[/url] | [url="cmarket.php"]Crystal Market[/url]</td> <td width="33%" height="108"> <p align="center"> [url="monorail.php"]Travel Agency[/url] | [url="estate.php"]Estate Agent[/url] | [url="bank.php"]City Bank[/url]</td> <td width="34%" height="108"> <p align="center"> [url="gangcentral.php"]Gangs[/url] | [url="gangwars.php"]Gang Wars[/url] | [url="fedjail.php"]Federal Jail[/url] | <a href="slotsmachine.php?tresde=428"> Slots Machine</a> | <a href="roulette.php?tresde=428"> Roulette</a> | <a href="lucky.php"> Lucky Boxes</a></td> </tr> <tr> <td width="33%" height="19"> <p align="center"><u>Statistics Dept</u></td> <td width="33%" height="19"> <p align="center"><u>Mysterious</u></td> <td width="34%" height="19"> <p align="center"><u>Coming Soon!!</u></td> </tr> <tr> <td width="33%" height="150"> <p align="center"> [url="userlist.php"]User List[/url] | <a href="stafflist.php">{$set['game_name']} Staff</a> | <a href="halloffame.php"> Hall of Fame</a> | <a href="stats.php"> Game Stats</a> | [url="usersonline.php"]Users Online[/url]</td> <td width="33%" height="150"> <p align="center"> <a href="crystaltemple.php">Crystal Temple</a> | <a href="battletent.php"> Battle Tent</a></td> <td width="34%" height="150"> </td> </tr> </table> </body> </html> screenshot enjoy
  12. Re: Advanced Bug Report System fine have all i give up
  13. Re: Advanced Bug Report System karlos i added that it edit of your code so id like to hand half credit to karlos everyone
  14. Re: crystal market   <?php include "globals.php"; print "<h3>Crystal Market</h3>"; echo sprintf(" You have %d money</p>",$ir['money']); $_GET['ID'] = abs(intval($_GET['ID'])); switch($_GET['action']) { case "buy":crystal_buy();break; case "remove":crystal_remove();break; case "add":crystal_add();break; default:cmarket_index();break; } function cmarket_index() { global $db,$ir,$c,$userid,$h; $st=($_GET['st']) ? $_GET['st'] : 0; $cnt = $db->query("SELECT cm.*, u.* FROM crystalmarket cm LEFT JOIN users u ON u.userid=cm.cmADDER ORDER BY cmPRICE/cmQTY ASC LIMIT $st,15"); $membs=mysql_num_rows($cnt); $pages=(int) ($membs/15)+1; $no1=$st+1; $no2=$st+15; if($membs % 100 == 0) { $pages--; } echo "Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*15; echo "[url='cmarket.php?st=$stl&ord=$ord']$i[/url] "; } $no1=$st+1; $no2=$st+15; echo " Showing crystal listing $no1 to $no2 "; echo " [url='cmarket.php?action=add']Add A Listing[/url] Viewing all listings... <table width=75% cellspacing=1 class='table'> <tr style='background:gray'> <th>Adder</th> <th>Qty</th> <th>Price each</th> <th>Price total</th> <th>Links</th> </tr>"; while($r=$db->fetch_row($q)) { if($r['cmADDER'] == $userid) { $link = "[url='cmarket.php?action=remove&ID={$r[']Remove[/url]"; } else { $link = "[url='cmarket.php?action=buy&ID={$r[']Buy[/url]"; } $each= (int) $r['cmPRICE'] / $r['cmQTY']; echo "\n<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>{$r['cmQTY']}</td> <td> \$" . number_format($each)."</td> <td>\$".number_format($r['cmPRICE'])."</td> <td>[$link]</td> </tr>"; } echo "</table>"; } function crystal_remove() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM crystalmarket WHERE cmID={$_GET['ID']} AND cmADDER=$userid"); if(!$db->num_rows($q)) { echo "Error, either these crystals do not exist, or you are not the owner. [url='cmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=$db->fetch_row($q); $db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} where userid=$userid"); $db->query("DELETE FROM crystalmarket WHERE cmID={$_GET['ID']}"); echo "Crystals removed from market! [url='cmarket.php']> Back[/url]"; } function crystal_buy() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM crystalmarket cm WHERE cmID={$_GET['ID']}"); if(!$db->num_rows($q)) { echo "Error, either these crystals do not exist, or they have already been bought. [url='cmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=$db->fetch_row($q); if($r['cmPRICE'] > $ir['money']) { echo "Error, you do not have the funds to buy these crystals. [url='cmarket.php']> Back[/url]"; $h->endpage(); exit; } $db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} where userid=$userid"); $db->query("DELETE FROM crystalmarket WHERE cmID={$_GET['ID']}"); $db->query("UPDATE users SET money=money-{$r['cmPRICE']} where userid=$userid"); $db->query("UPDATE users SET bankmoney=bankmoney+{$r['cmPRICE']} where userid={$r['cmADDER']}"); event_add($r['cmADDER'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought your {$r['cmQTY']} crystals from the market for \$".number_format($r['cmPRICE']).".",$c); echo "You bought the {$r['cmQTY']} crystals from the market for \$".number_format($r['cmPRICE'])."."; } function crystal_add() { global $db,$ir,$c,$userid,$h; $_POST['amnt'] = abs((int) $_POST['amnt']); $_POST['price'] = abs((int) $_POST['price']); if($_POST['amnt']) { if($_POST['amnt'] > $ir['crystals']) { die ("You are trying to add more crystals to the market than you have."); } $tp=$_POST['amnt']*$_POST['price']; $db->query("INSERT INTO crystalmarket VALUES('',{$_POST['amnt']},$userid,$tp)"); $db->query("UPDATE users SET crystals=crystals-{$_POST['amnt']} WHERE userid=$userid"); echo "Crystals added to market! [url='cmarket.php']> Back[/url]"; } else { echo "[b]Adding a listing...[/b] You have [b]{$ir['crystals']}[/b] crystals that you can add to the market.<form action='cmarket.php?action=add' method='post'><table width=50% border=2><tr> <td>Crystals:</td> <td><input type='text' name='amnt' value='{$ir['crystals']}' /></td></tr><tr> <td>Price Each:</td> <td><input type='text' name='price' value='200' /></td></tr><tr> <td colspan=2 align=center><input type='submit' value='Add To Market' /></tr></table></form>"; } } $h->endpage(); ?>   securred for you F4R1D
  15. Re: crystal market   <?php include "globals.php"; print "<h3>Crystal Market</h3>"; $_GET['ID'] = abs(intval($_GET['ID'])); switch($_GET['action']) { case "buy": crystal_buy(); break; case "remove": crystal_remove(); break; case "add": crystal_add(); break; default: cmarket_index(); break; } function cmarket_index() { global $db,$ir,$c,$userid,$h; print "[url='cmarket.php?action=add']> Add A Listing[/url] Viewing all listings... <table width=75% cellspacing=1 class='table'> <tr style='background:gray'> <th>Adder</th> <th>Qty</th> <th>Price each</th> <th>Days Left</th> <th>Price total</th> <th>Links</th> </tr>"; $q=$db->query("SELECT cm.*, u.* FROM crystalmarket cm LEFT JOIN users u ON u.userid=cm.cmADDER ORDER BY cmPRICE/cmQTY ASC"); while($r=$db->fetch_row($q)) { if($r['cmADDER'] == $userid) { $link = "[url='cmarket.php?action=remove&ID={$r[']Remove[/url]"; } else { $link = "[url='cmarket.php?action=buy&ID={$r[']Buy[/url]"; } $each= (int) $r['cmPRICE'] / $r['cmQTY']; print "\n<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>{$r['cmQTY']}</td> <td> \$" . number_format($each)."</td> <td>{$r['cmDAYS']} Days.</td> <td>\$".number_format($r['cmPRICE'])."</td> <td>[$link]</td> </tr>"; } print "</table>"; } function crystal_remove() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM crystalmarket WHERE cmID={$_GET['ID']} AND cmADDER=$userid"); if(!$db->num_rows($q)) { print "Error, either these crystals do not exist, or you are not the owner. [url='cmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=$db->fetch_row($q); $db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} where userid=$userid"); $db->query("DELETE FROM crystalmarket WHERE cmID={$_GET['ID']}"); print "Crystals removed from market! [url='cmarket.php']> Back[/url]"; } function crystal_buy() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM crystalmarket cm WHERE cmID={$_GET['ID']}"); if(!$db->num_rows($q)) { print "Error, either these crystals do not exist, or they have already been bought. [url='cmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=$db->fetch_row($q); if($r['cmPRICE'] > $ir['money']) { print "Error, you do not have the funds to buy these crystals. [url='cmarket.php']> Back[/url]"; $h->endpage(); exit; } $db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} where userid=$userid"); $db->query("DELETE FROM crystalmarket WHERE cmID={$_GET['ID']}"); $db->query("UPDATE users SET money=money-{$r['cmPRICE']} where userid=$userid"); $db->query("UPDATE users SET money=money+{$r['cmPRICE']} where userid={$r['cmADDER']}"); event_add($r['cmADDER'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought your {$r['cmQTY']} crystals from the market for \$".number_format($r['cmPRICE']).".",$c); print "You bought the {$r['cmQTY']} crystals from the market for \$".number_format($r['cmPRICE'])."."; } function crystal_add() { global $db,$ir,$c,$userid,$h; $_POST['amnt'] = abs((int) $_POST['amnt']); $_POST['price'] = abs((int) $_POST['price']); $_POST['days'] = abs(intval($_POST['days'])); if($_POST['amnt']) { if($_POST['amnt'] > $ir['crystals']) { die ("You are trying to add more crystals to the market than you have."); } if(!in_array($_POST['days'], array(1,5,10))) { echo 'Amount of days is invalid!'; $h->endpage(); exit; } $b=$db->query("SELECT * FROM crystalmarket WHERE cmADDER=$userid"); if ($db->num_rows($b) > 2) { die("<center>You Are Only Allowed 3 Crystal Sales At A Time [url='cmarket.php?action=add'] Back[/url]"); } $tp=$_POST['amnt']*$_POST['price']; $db->query("INSERT INTO crystalmarket VALUES('',{$_POST['amnt']},$userid,$tp,{$_POST['days']})"); $db->query("UPDATE users SET crystals=crystals-{$_POST['amnt']} WHERE userid=$userid"); print "Crystals added to market! [url='cmarket.php']> Back[/url]"; } else { print "[b]Adding a listing...[/b] You have [b]{$ir['crystals']}[/b] crystal(s) that you can add to the market.<form action='cmarket.php?action=add' method='post'><table width=50% border=2><tr> <td>Crystals:</td> <td><input type='text' name='amnt' value='{$ir['crystals']}' /></td></tr><tr> <td>Price Each:</td> <td><input type='text' name='price' value='200' /></td></tr><tr> <td>Days:</td> <td><select type='dropdown' name='days' value='{$ir['cmDAYS']}' />> <option value='1'>1 <option value='5'>5 <option value='10'>10</select> </tr> <td colspan=2 align=center><input type='submit' value='Add To Market' /></tr></table></form>"; } } $h->endpage(); ?>   here secured for you
  16. this is a edit i did to the advanced player reports now works fully as bug report and fully tested first add the sql CREATE TABLE `mod_bug_reports` ( `Id` int(7) unsigned NOT NULL auto_increment, `Place` int(7) unsigned NOT NULL default '0', `Reporter` int(7) unsigned NOT NULL default '0', `Time` int(10) unsigned NOT NULL default '0', `OffenseType` varchar(25) character set latin1 NOT NULL default 'Low', `Report` text, `Status` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`Id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;   right now make a file called breport.php   <?php //Made by Karlos -- edited by killer60 include_once ('globals.php'); if (!function_exists('Error')) { function Error($Message) { echo '<span style="color: #FF0000;">Error! [i]',stripslashes($Message),'[/i]</span>'; exit(headers::endpage()); } } $_GET['Id'] = isset($_GET['Id']) && ctype_digit($_GET['Id']) ? $_GET['Id'] : 0; $Options = array('Low', 'Medium', 'High', 'Very High'); echo '<div style="text-align: left; padding-left: 25px;"> <h3 style="text-decoration: underline;">Bug Report Center</h3>'; if (isset($_POST['Id'], $_POST['Offense'], $_POST['Report'])) { $Max = $db->query("SELECT `userid` FROM `users` WHERE `userid`='".$_POST['Id']."' LIMIT 1"); if (!ctype_digit($_POST['Id']) || $db->num_rows($Max) == 0) { Error('Invalid Id.'); } else if (!in_array($_POST['Offense'], $Options)) { Error('Invalid Offense.'); } else if (strlen($_POST['Report']) < 30 || strlen($_POST['Report'] > 2000)) { Error('Your Report Must Be Between 30 & 2000 Characters.'); } else { $Report = $db->escape($_POST['Report']); $db->query("INSERT INTO `mod_bug_reports` (`Place`, `Reporter`, `Time`, `OffenseType`, `Report`, `Status`) VALUES (".$_POST['Id'].", ".$ir['userid'].", UNIX_TIMESTAMP(), '".$_POST['Offense']."', '".$Report."', 1)"); echo '<span style="color: green;">Your Report Has Been Added! Thx for your help at stopping game exploits!</span> > [url="index.php"]Go Home[/url]'; } } else { echo ' <form method="post"> <table border="1" cellpadding="3" width="75%" cellspacing="0" class="table"> <tr> <th style="text-align: center;">ID:</th> <td><input type="text" name="Id" value="',$_GET['Id'],'" /></td> </tr> <tr> <th style="text-align: center;">Emergency Level:</th> <td> <select name="Offense">'; foreach($Options as $Value) { echo '<option value="',$Value,'">',$Value,'</option>'; } echo ' </select> </td> </tr> <tr> when you fill in your report dont forget to tell us were you found the bug and what page it is on <th style="text-align: center;">Your Bug Reports:</th> <td><textarea name="Report" rows="5" cols="75"></textarea></td> </tr> <tr> <th colspan="2" style="text-align: center;"><input type="submit" value="Submit Bug Report" /></th> </tr> </table> </form>'; } echo '</div>'; $h->endpage(); ?>   now make file called staff_breports.php   <?php //Made by Karlos -- edited by killer60 include_once ('sglobals.php'); if (!function_exists('Error')) { function Error($Message) { echo '<span style="color: #FF0000;">Error! [i]',stripslashes($Message),'[/i]</span>'; exit(headers::endpage()); } } if (!function_exists('Access')) { function Access($Array) { global $ir; if (!in_array($ir['user_level'], array($Array))) { Error('Unauthorised Access.'); } } } echo '<div style="text-align: left; padding-left: 25px;"> <h3 style="text-decoration: underline;">Bug Report Processing Center</h3> ',$ir['userid'] == 1 ? '<h4>[url="staff_breports.php?act=Truncate"]Truncate Bug Reports[/url]</h4>' : NULL; $_GET['act'] = isset($_GET['act']) && ctype_alpha($_GET['act']) ? $_GET['act'] : FALSE; switch($_GET['act']) { case 'Edit': Edit(); break; case 'Truncate': Truncate(); break; default: Index(); break; } function Index() { Access(2, 3, 5); global $db; $_GET['Start'] = isset($_GET['Start']) ? $_GET['Start'] : 0; $Reports = $db->num_rows($db->query("SELECT `Id` FROM `mod_bug_reports`")); $Pages = ceil($Reports / 10); echo 'Pages: '; for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*10; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="staff_breports.php?act=Index&Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } echo ' <table border="1" cellpadding="3" width="95%" cellspacing="0" class="table"> <tr style="text-align: center;"> <th width="8%">Report Id</th> <th width="10%">Reporter</th> <th width="50%">Report</th> <th width="10%">Date & Time</th> <th width="12%">Status</th> <th width="5%">Options</th> </tr>'; $Select = $db->query("SELECT `Id`, `place`, `Reporter`, `Time`, `OffenseType`, `Report`, `Status` FROM `mod_bug_reports` ORDER BY `Id` ASC LIMIT ".$_GET['Start'].",10"); if ($db->num_rows($Select)) { while($Re = $db->fetch_row($Select)) { $StatColourArray = array(1 => '#FF0000', 2 => 'orange', 3 => 'green'); $StatColour = $StatColourArray[$Re['Status']]; $StatNameArray = array(1 => 'Not Being Fixed', 2 => 'Being Fixed', 3 => 'Fixed'); $Status = $StatNameArray[$Re['Status']]; $Of = $db->fetch_row($db->query("SELECT `username` FROM `users` WHERE `userid`='".$Re['place']."'")); $Mp = $db->fetch_row($db->query("SELECT `username` FROM `users` WHERE `userid`='".$Re['Reporter']."'")); echo ' <tr> <td style="text-align: center;">[b]',number_format($Re['Id']),'[/b]</td> <td>',number_format($Re['Reporter']),' (',stripslashes($Mp['username']),')</td> <td>',htmlspecialchars(stripslashes($Re['Report']), ENT_QUOTES, 'UTF-8'),'</td> <td>',date('d/m/Y\<\b\r\ >H:i', $Re['Time']),'</td> <td><span style="color: ',$StatColour,';">',$Status,'</span></td> <td>[url="staff_breports.php?act=Edit&Id=',$Re['Id'],'"]Edit[/url]</td> </tr>'; } } else { echo '<td colspan="7" style="text-align: center;">There Are Currently No Bug Reports!</td>'; } echo '</table>'; echo 'Pages: '; for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*10; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="staff_breports.php?act=Index&Start=',$Start,'"]',number_format($i),'[/url] '; } if($i % 25 == 0) { echo ' '; } } } function Edit() { global $db; Access(2, 3, 5); $_GET['Id'] = isset($_GET['Id']) && ctype_digit($_GET['Id']) ? $_GET['Id'] : 0; if (isset($_POST['Id'], $_POST['Status'])) { $Max = $db->query("SELECT `Id` FROM `mod_bug_reports` WHERE `Id`='".$_POST['Id']."' LIMIT 1"); if (!ctype_digit($_POST['Id']) || $db->num_rows($Max) == 0) { Error('Invalid Id.'); } else if (!in_array($_POST['Status'], array(1, 2, 3))) { Error('Invalid Status.'); } else { $db->query("UPDATE `mod_player_reports` SET `Status`='".$_POST['Status']."' WHERE `Id`='".$_POST['Id']."'"); stafflog_add('Edited Bug Report '.$_POST['Id'].' Status'); echo '<span style="color: green;">The Report Has Been Edited!</span> > [url="staff_breports.php"]Go Back[/url]'; } } else { $StatNameArray = array(1 => 'Not Being Fixed', 2 => 'Being Fixed', 3 => 'Fixed'); echo ' <form action="staff_breports.php?act=Edit" method="post"> Report ID: <input type="text" name="Id" value="',$_GET['Id'],'" /> New Status: <select name="Status" type="dropdown">'; $i = 0; foreach($StatNameArray as $Values) { ++$i; echo '<option value="',$i,'">',$Values,'</option>'; } echo '</select> <input type="submit" value="Submit" /> </form>'; } } function Truncate() { global $db; Access(2); if (isset($_POST['Truncate'])) { if ($_POST['Truncate'] === 'No') { exit(header('Location: staff_breports.php')); } else if ($_POST['Truncate'] === 'Yes') { $db->query("TRUNCATE TABLE `mod_bug_reports`"); stafflog_add('Truncated The Player Reports'); echo '<span style="color: green;">The Bug Reports Has Been Emptied!</span> > [url="staff_breports.php"]Go Back[/url]'; } else { Error('Invalid Answer.'); } } else { echo ' <h3>Do You Wish To Delete Every Bug Report You Have?</h3> <form action="staff_breports.php?act=Truncate" method="post"> Yes <input type="radio" name="Truncate" value="Yes" /> No <input type="radio" name="Truncate" value="No" /> <input type="submit" value="Submit Option" /> </form>'; } } echo '</div>'; $h->endpage(); ?>   now go onto smenu.php and find link > Player Reports "; and change to > Player Reports > Bug Reports "; and then you done enjoy hope mod okey fully tested that it works as bug report
×
×
  • Create New...