Jump to content
MakeWebGames

peterisgb

Members
  • Posts

    727
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by peterisgb

  1. you can post it up here as it was a "free" mod.
  2. any demo anywhere?
  3. Heres a fixed up copy. Magictallguy helped me fix it up a little   <?php include "globals.php"; if($ir['jail'] or $ir['hospital']) { echo "<hr width='50%'><h3>! ERROR</h3>This page cannot be accessed while in jail or hospital.<hr width='50%'><a href='index.php'>> Go Home</a><hr width='50%'>"; $h->endpage(); exit; } // Check fight level fight_check(); // End $_GET['action'] = isset($_GET['action']) && ctype_alnum($_GET['action']) ? strtolower(trim($_GET['action'])) : null; switch($_GET['action']) { case 'fight': fight_1(); break; case 'fight2': fight_2(); break; case 'fight3': fight_3(); break; default: fight_index(); break; } function fight_index() { global $ir; ?><h3><u>Fighting</u></h3><hr /> <table width='80%' cellspacing='2' class='table'><tr> <th>Current Stamina:</th><td><b><? echo number_format($ir['stamina'])."/".number_format($ir['maxstamina']); ?></b></td><tr> <th>Fighting Level:</th><td> <b><? echo number_format($ir['fighting_level']); ?></b></td><tr> <th>Fighting Experience:</th><td><b><? echo number_format($ir['fighting_exp'])."/".number_format($ir['fighting_needed']); ?></b></td><tr></table> <hr /><h3><u>Fighting Arena</u></h3> <table width='80%' cellspacing='2' class='table'> <tr> <td style='text-align:center;'>[<a href='fighting.php?action=fight'>Level 1 Fighting Arena</a>]</td> </tr> <tr> <td style='text-align:center;'>[<a href='fighting.php?action=fight2' style='color:#444;'>Level 20 Fighting Arena</a>]</td> </tr> <tr> <td style='text-align:center;'>[<a href='fighting.php?action=fight3' style='color:#444;'>Level 40 Fighting Arena</a>]</td> </tr> </table><? } function fight_1() { global $db,$ir,$h,$c,$userid; if($ir['stamina'] <= 9) { echo "<hr width='50%'><h3>! ERROR</h3>You need 10 stamina to fight here and you have ".number_format($ir['stamina'])."<hr width='50%'><a href='fighting.php'>> Go Back</a><hr width='50%'>"; $h->endpage(); exit; } $db->query("UPDATE `users` SET `stamina` = `stamina` - 10 WHERE `userid` = ".$userid); $cavein = mt_rand(1,10); if($cavein == 1) { $hosptime = mt_rand(1, 8 * $ir['level']); $reasonhosp = 'Lost while fighting.'; $db->query("UPDATE users SET hospital=$hosptime, hospreason='$reasonhosp' WHERE userid=$userid"); echo "<hr width='50%'>Please read the action message.<hr width='50%'><h3>!ACTION</h3>After a few minutes of fighting. You get beatend up quite badly. You barely escape and wake up at the hospital.<hr width='50%'><a href='index.php'>> Go Home</a><hr width='50%'>"; $h->endpage(); exit; } $nothing = mt_rand(1, 3); if($nothing == 1) { echo "<hr width='50%'>Please read the action message.<hr width='50%'><h3>!ACTION</h3>You couldnt find any fights.<hr width='50%'><a href='fighting.php?action=fight'>>Find another fight</a><hr width='50%'>"; $h->endpage(); exit; } $rand_crystals = mt_rand(5,25); $rand_exp = mt_rand(5,25); echo "<hr width='50%'>Please read the confirmation message.<hr width='50%'><h3>! CONFIRMATION</h3>You begin to fight in the level 1 arena and you won and gain {$rand_crystals} Crystals."; $db->query("UPDATE `users` SET `crystals`=`crystals`+ {$rand_crystals}, `fighting_exp`=`fighting_exp`+ {$rand_exp} WHERE userid = $userid"); ?><hr width='50%'> <table width='50%'> <tr> <td width='50%'>> <a href='fighting.php?action=fight'>>Fight again</a></td> <td width='50%'>> <a href='fighting.php'>Back</a></td> </tr> </table> <hr width='50%'><? } $h->endpage(); ?>
  4. i have just found out that today cronus has renewed his domain and his site is back up and running.
  5. can pm on his site because its down.
  6. Anyone know if this site will ever be coming back?
  7. agreed, it would be nice, i think Illusions has made this a paid mod now i think.
  8. fine as you please, i already done this on mine but because peps are lazy and have to comment.   <?php include_once(__DIR__ . '/globals.php'); if(!$_GET['type'] && !$_GET['view']) { echo "<h2>Report Center</h2><hr width='75%' />"; if($ir['user_level'] > 1) { echo "<center><a href='staff_reports.php'><b>Visit Staff Page</b></a></center>"; } echo "<table border='2' bordercolor='black' cellspacing='0' cellpadding='2' width='90%'><tr><td width='20%' valign='top'><b><u>Player Report:-</u></b></td><td width='60%'>If you wanna report about a player for scamming,having mulitple accounts,taking advantage of a game bug or being the middle man in tranfering money from multi accounts than you can choose this option</td><td width='20%' valign='top' align='center'> <a href='report_center.php?type=player'>Report</a> | <a href='report_center.php?view=1'>View Reports</a></td></tr> <tr><td width='20%' valign='top'><b><u>Bug Report</u></b></td><td width='60%'>If you find any bug in the game than feel free to report about it using our bug report center.</td><td width='20%' valign='top' align='center'><a href='report_center.php?type=bug'>Report</a> | <a href='report_center.php?view=2'>View Reports</a></td></tr> <tr><td width='20%' valign='top'><b><u>Staff Report</u></b></td><td width='60%'> If any staff in the game is threatening you or not doing his job than you can report about him in the staff report center.This problem will be solved by the game admin after some verifications </td><td width='20%' valign='top' align='center'><a href='report_center.php?type=staff'>Report</a> | <a href='report_center.php?view=3'>View Reports</a></td></tr> <tr><td width='2%' valign='top'><b><u>Suggestions</u></b></td><td width='60%'> If you wanna be a part in the improvment of the game by suggesting us ideas for visual improvment or modifications than feel free to suggest using our suggestions page. </td><td valign='top' width='20%' align='center'><a href='report_center.php?type=suggest'>Report</a> | <a href='report_center.php?view=4'>View Reports</a></td></tr> </table>"; } elseif($_GET['view']) { $_GET['view']=abs((int) $_GET['view']); if($_GET['view'] == '1') { $view_re=array(); $view_re="Player Reports"; } if($_GET['view'] == '2') { $view_re=array(); $view_re="Bug Reports"; } if($_GET['view'] == '3') { $view_re=array(); $view_re="Staff Reports"; } if($_GET['view'] == '4') { $view_re=array(); $view_re="Suggestions"; } echo "<hr width='75%' /> <h2>".$view_re."</h2><hr width='75%' />"; $report=array(); $report=$db->query("SELECT * FROM `reports` WHERE `r_type`='".$_GET['view']."' ORDER BY `r_id` DESC"); $ri=array(); while($ri=$db->fetch_row($report)) { $ru=array(); $ru=$db->fetch_row($db->query("SELECT * FROM `users` WHERE `userid`='".mysql_real_escape_string($ri['r_reporter'])."'")); if($ri['r_type'] == '1') { $rty=array(); $rty="Player Report"; } elseif($ri['r_type'] == '2') { $rty=array(); $rty="Bug Report"; } elseif($ri['r_type'] == '3') { $rty=array(); $rty="Staff Report"; } elseif($ri['r_type'] == '4') { $rty=array(); $rty="Suggestion"; } if($ri['r_fix'] == '1') { $rfi=array(); $rfi="<font Color='orange'>Read</font>"; } elseif($ri['r_fix'] == '2') { if($ri['r_type'] == '1' || $ri['r_type'] == '3') { $rfi=array(); $rfi='<font color="#090">Solved</font>'; } elseif($ri['r_type'] == '2') { $rfi=array(); $rfi='<font color="#090">Fixed</font>'; } elseif($ri['r_type'] == '4') { $rfi=array(); $rfi='<font color="#090">Usefull</font>'; } } else { $rfi=array(); $rfi="<Font color='#f90000'>Not read by admin</font>"; } $rti = date('F j Y', $ri['r_time']); echo "<table style='border:1px solid #888888;' cellspacing='0' cellpadding='2' width='75%'> <tr><td style='border:1px solid #888888;background:#eeeeee;' width='40%' align='left'> <b>Reporter:</b> <a href='viewuser.php?u=".$ru['userid']."'>".$ru['username']."</a> [".$ru['userid']."]"; if($ri['r_type'] == '1' || $ri['r_type'] == '3') { $rvi=array(); $rvi=$db->fetch_row($db->query("SELECT * FROM `users` WHERE `userid`='".mysql_real_escape_string($ri['r_player'])."'")); echo "<b>Victim:</b> <a href='viewuser.php?u=".$rvi['userid']."'>".$rvi['username']."</a> [".$rvi['userid']."]"; } echo "<b>Report:</b> ".$rty.""; if($ri['r_type'] == '2') { if($ri['r_btype'] == '1') { $rbt=array(); $rbt="Attack "; } elseif($ri['r_btype'] == '2') { $rbt=array(); $rbt="Grammar"; } elseif($ri['r_btype'] == '3') { $rbt=array(); $rbt="Gang"; } elseif($ri['r_btype'] == '4') { $rbt=array(); $rbt="Crimes"; } elseif($ri['r_btype'] == '5') { $rbt=array(); $rbt="Jobs"; } elseif($ri['r_btype'] == '6') { $rbt=array(); $rbt="Forums"; } elseif($ri['r_btype'] == '7') { $rbt=array(); $rbt="Mail"; } else { $rbt=array(); $rbt="Other"; } echo "<b>Bug Type:</b> ".$rbt.""; } if($ri['r_type'] == '4') { if($ri['r_stype'] == '1') { $rst=array(); $rst="New Feature"; } elseif($ri['r_stype'] == '2') { $rst=array(); $rst="Visual Appearance"; } elseif($ri['r_stype'] == '3') { $rst=array(); $rst="Forums/Chat"; } else { $rst=array(); $rst="Other"; } echo "<b>Suggestion Based On:</b> ".$rst.""; } echo "<b>Posted On:</b> ".$rti." <b>Status:</b> ".$rfi." </td><td style='border:1px solid #888888;' width='60%' valign='top'> ".htmlentities($ri['r_report'])." </td> </tr></table><hr width='50%' /> "; } } else { if($_GET['type'] == 'player') { if($_POST['player_r'] && $_POST['preport']) { $_POST['player_r'] == mysql_real_escape_string($_POST['player_r']); $_POST['preport'] == htmlspecialchars($_POST['preport']); $c_v=array(); $c_v=$db->query("SELECT * FROM `users` WHERE `userid`='".$_POST['player_r']."'"); if($db->num_rows($c_v)) { $post_time=array(); $post_time = time(); $db->query("INSERT INTO `reports` VALUES('NULL','".$_POST['player_r']."','".$_POST['preport']."','1','0','0','0','".$post_time."' ,'".mysql_real_escape_string($userid)."')"); echo "<b>You sucessfully reported</b>"; } else { echo "<b>There Is No Player With That ID In The Game"; } } $_GET['type']=abs((int) $_GET['type']); echo "<h4>Player Report</h4>"; echo "<form actions='report_center.php?type=player' method='post'> <table style='border:1px solid #888888;' cellspacing='0' cellpadding='2' width='75%'> <tr><td style='border:1px solid #888888;background:#eeeeee;' width='35%' align='left'> <b>Player ID:-</b> (Enter the ID of the player you wanna report)</td> <td align='center' style='border:1px solid #888888;background:#eeeeee;' width='65%'> <input type='text' style='border:1px solid #333333;width:90%;' name='player_r' /></td></tr> <tr><td style='border:1px solid #888888;background:#cccccc;' width='35%' align='left' valign='top'> <b>Report:-</b> (Enter your complaint against the player)</td> <td align='center' valign='top' style='border:1px solid #888888;background:#cccccc;' width='65%'> <textarea rows='7' cols='43' name='preport' style='border:1px solid #333333;'></textarea> </td></tr> <tr><td style='border:1px solid #888888;background:#eeeeee;' align='center' colspan='2'> <input type='submit' value='Report' /> </td></tr></table> </form> "; } elseif($_GET['type'] == 'bug') { if($_POST['bug_r'] && $_POST['breport']) { $_POST['bug_r'] == mysql_real_escape_string($_POST['player_r']); $_POST['breport'] == htmlspecialchars($_POST['preport']); $post_time=array(); $post_time = time(); $db->query("INSERT INTO `reports` VALUES('NULL','0','".$_POST['breport']."','2','0','".$_POST['bug_r']."','0','".$post_time."' ,'".mysql_real_escape_string($userid)."')"); echo "<b>thank you for reporting the bug</b>"; } $_GET['type']=abs((int) $_GET['type']); echo "<h4>Bug Report</h4>"; echo "<form actions='report_center.php?type=bug' method='post'> <table style='border:1px solid #888888;' cellspacing='0' cellpadding='2' width='75%'> <tr><td style='border:1px solid #888888;background:#eeeeee;' width='35%' align='left'> <b>Bug Type:-</b> (Select the type of bug.If your bug is not in the list,then mention about it in the report.)</td> <td align='center' style='border:1px solid #888888;background:#eeeeee;' width='65%'> <select style='border:1px solid #333333;width:90%;' name='bug_r'> <option value=''>SELECT</option> <option value='1'>Attacking</option> <option value='2'>Grammar</option> <option value='3'>Gangs</option> <option value='4'>Crimes</option> <option value='5'>Jobs</option> <option value='6'>Forum</option> <option value='7'>Mail</option> <option value='0'>Other</option> </select> </td></tr> <tr><td style='border:1px solid #888888;background:#cccccc;' width='35%' align='left' valign='top'> <b>Report:-</b> (Give more details about the bug in the box.)</td> <td align='center' valign='top' style='border:1px solid #888888;background:#cccccc;' width='65%'> <textarea rows='7' cols='43' name='breport' style='border:1px solid #333333;'></textarea> </td></tr> <tr><td style='border:1px solid #888888;background:#eeeeee;' align='center' colspan='2'> <input type='submit' value='Report' /> </td></tr></table> </form>"; } elseif($_GET['type'] == 'staff') { if($_POST['staff_r'] && $_POST['sreport']) { $_POST['staff_r'] == mysql_real_escape_string($_POST['staff_r']); $_POST['sreport'] == htmlspecialchars($_POST['sreport']); $c_v=array(); $c_v=$db->query("SELECT * FROM `users` WHERE `userid`='".$_POST['staff_r']."' and `user_level` > 1"); if($db->num_rows($c_v)) { $post_time=array(); $post_time = time(); $db->query("INSERT INTO `reports` VALUES('NULL','".$_POST['staff_r']."','".$_POST['sreport']."','3','0','0','0','".$post_time."' ,'".mysql_real_escape_string($userid)."')"); echo "<b>You sucessfully reported</b>"; } else { echo "<b>There is no staff with that ID</b>"; } } $_GET['type']=abs((int) $_GET['type']); echo "<h4>Staff Report</h4>"; echo "<form actions='report_center.php?type=staff' method='post'> <table style='border:1px solid #888888;' cellspacing='0' cellpadding='2' width='75%'> <tr><td style='border:1px solid #888888;background:#eeeeee;' width='35%' align='left'> <b>Staff:-</b> (Select The Staff against whome you want to complaint)</td> <td align='center' style='border:1px solid #888888;background:#eeeeee;' width='65%'> <select style='border:1px solid #333333;width:90%;' name='staff_r'><option value=''>SELECT</option>"; $staff_list=array(); $sl=array(); $staff_list=$db->query("SELECT * FROM `users` WHERE `user_level` > 1"); while($sl=$db->fetch_row($staff_list)) { echo "<option value='".$sl['userid']."'>".$sl['username']."</option>"; } echo "</select></td></tr> <tr><td style='border:1px solid #888888;background:#cccccc;' width='35%' align='left' valign='top'> <b>Report:-</b> (Enter your complaint against the player)</td> <td align='center' valign='top' style='border:1px solid #888888;background:#cccccc;' width='65%'> <textarea rows='7' cols='43' name='sreport' style='border:1px solid #333333;'></textarea> </td></tr> <tr><td style='border:1px solid #888888;background:#eeeeee;' align='center' colspan='2'> <input type='submit' value='Report' /> </td></tr></table> </form>"; } elseif($_GET['type'] == 'suggest') { if($_POST['sug'] && $_POST['suggest']) { $_POST['sug'] == mysql_real_escape_string($_POST['sug']); $_POST['suggest'] == htmlspecialchars($_POST['suggest']); $post_time=array(); $post_time = time(); $db->query("INSERT INTO `reports` VALUES('NULL','0','".$_POST['suggest']."','4','0','0','".$_POST['sug']."','".$post_time."' ,'".mysql_real_escape_string($userid)."')"); echo "<b>thank you for suggesting</b>"; } $_GET['type']=abs((int) $_GET['type']); echo "<h4>Suggestions</h4>"; echo "<form actions='report_center.php?type=suggest' method='post'> <table style='border:1px solid #888888;' cellspacing='0' cellpadding='2' width='75%'> <tr><td style='border:1px solid #888888;background:#eeeeee;' width='35%' align='left'> <b>Idea For:-</b></td> <td align='center' style='border:1px solid #888888;background:#eeeeee;' width='65%'> <select style='border:1px solid #333333;width:90%;' name='sug'> <option value=''>SELECT</option> <option value='1'>New Game Features</option> <option value='2'>Visual Appearances</option> <option value='3'>Forums Or Chat</option> <option value='0'>Other</option> </select> </td></tr> <tr><td style='border:1px solid #888888;background:#cccccc;' width='35%' align='left' valign='top'> <b>Report:-</b> (include as much details of your suggestions as possible)</td> <td align='center' valign='top' style='border:1px solid #888888;background:#cccccc;' width='65%'> <textarea rows='7' cols='43' name='suggest' style='border:1px solid #333333;'></textarea> </td></tr> <tr><td style='border:1px solid #888888;background:#eeeeee;' align='center' colspan='2'> <input type='submit' value='Suggest' /> </td></tr></table> </form>"; } } $h->endpage(); ?>
  9. well i changed it on mine, i left it default but working.
  10. All works well other than the report_center.php page which is mess up, however i have fixed this and here is a working copy Replace report_center.php with this: <?php $brain_file=array(); $brain_file="globals.php"; include_once $brain_file; if(!$_GET['type'] && !$_GET['view']) { echo "<h2>Report Center</h2><hr width='75%' />"; if($ir['user_level'] > 1) { echo "<center><a href='staff_reports.php'><b>Visit Staff Page</b></a></center>"; } echo "<table border='2' bordercolor='black' cellspacing='0' cellpadding='2' width='90%'><tr><td width='20%' valign='top'><b><u>Player Report:-</u></b></td><td width='60%'>If you wanna report about a player for scamming,having mulitple accounts,taking advantage of a game bug or being the middle man in tranfering money from multi accounts than you can choose this option</td><td width='20%' valign='top' align='center'> <a href='report_center.php?type=player'>Report</a> | <a href='report_center.php?view=1'>View Reports</a></td></tr> <tr><td width='20%' valign='top'><b><u>Bug Report</u></b></td><td width='60%'>If you find any bug in the game than feel free to report about it using our bug report center.</td><td width='20%' valign='top' align='center'><a href='report_center.php?type=bug'>Report</a> | <a href='report_center.php?view=2'>View Reports</a></td></tr> <tr><td width='20%' valign='top'><b><u>Staff Report</u></b></td><td width='60%'> If any staff in the game is threatening you or not doing his job than you can report about him in the staff report center.This problem will be solved by the game admin after some verifications </td><td width='20%' valign='top' align='center'><a href='report_center.php?type=staff'>Report</a> | <a href='report_center.php?view=3'>View Reports</a></td></tr> <tr><td width='2%' valign='top'><b><u>Suggestions</u></b></td><td width='60%'> If you wanna be a part in the improvment of the game by suggesting us ideas for visual improvment or modifications than feel free to suggest using our suggestions page. </td><td valign='top' width='20%' align='center'><a href='report_center.php?type=suggest'>Report</a> | <a href='report_center.php?view=4'>View Reports</a></td></tr> </table>"; } elseif($_GET['view']) { $_GET['view']=abs((int) $_GET['view']); if($_GET['view'] == '1') { $view_re=array(); $view_re="Player Reports"; } if($_GET['view'] == '2') { $view_re=array(); $view_re="Bug Reports"; } if($_GET['view'] == '3') { $view_re=array(); $view_re="Staff Reports"; } if($_GET['view'] == '4') { $view_re=array(); $view_re="Suggestions"; } echo "<hr width='75%' /> <h2>".$view_re."</h2><hr width='75%' />"; $report=array(); $report=$db->query("SELECT * FROM `reports` WHERE `r_type`='".$_GET['view']."' ORDER BY `r_id` DESC"); $ri=array(); while($ri=$db->fetch_row($report)) { $ru=array(); $ru=$db->fetch_row($db->query("SELECT * FROM `users` WHERE `userid`='".mysql_real_escape_string($ri['r_reporter'])."'")); if($ri['r_type'] == '1') { $rty=array(); $rty="Player Report"; } elseif($ri['r_type'] == '2') { $rty=array(); $rty="Bug Report"; } elseif($ri['r_type'] == '3') { $rty=array(); $rty="Staff Report"; } elseif($ri['r_type'] == '4') { $rty=array(); $rty="Suggestion"; } if($ri['r_fix'] == '1') { $rfi=array(); $rfi="<font Color='orange'>Read</font>"; } elseif($ri['r_fix'] == '2') { if($ri['r_type'] == '1' || $ri['r_type'] == '3') { $rfi=array(); $rfi='<font color="#090">Solved</font>'; } elseif($ri['r_type'] == '2') { $rfi=array(); $rfi='<font color="#090">Fixed</font>'; } elseif($ri['r_type'] == '4') { $rfi=array(); $rfi='<font color="#090">Usefull</font>'; } } else { $rfi=array(); $rfi="<Font color='#f90000'>Not read by admin</font>"; } $rti = date('F j Y', $ri['r_time']); echo "<table style='border:1px solid #888888;' cellspacing='0' cellpadding='2' width='75%'> <tr><td style='border:1px solid #888888;background:#eeeeee;' width='40%' align='left'> <b>Reporter:</b> <a href='viewuser.php?u=".$ru['userid']."'>".$ru['username']."</a> [".$ru['userid']."]"; if($ri['r_type'] == '1' || $ri['r_type'] == '3') { $rvi=array(); $rvi=$db->fetch_row($db->query("SELECT * FROM `users` WHERE `userid`='".mysql_real_escape_string($ri['r_player'])."'")); echo "<b>Victim:</b> <a href='viewuser.php?u=".$rvi['userid']."'>".$rvi['username']."</a> [".$rvi['userid']."]"; } echo "<b>Report:</b> ".$rty.""; if($ri['r_type'] == '2') { if($ri['r_btype'] == '1') { $rbt=array(); $rbt="Attack "; } elseif($ri['r_btype'] == '2') { $rbt=array(); $rbt="Grammar"; } elseif($ri['r_btype'] == '3') { $rbt=array(); $rbt="Gang"; } elseif($ri['r_btype'] == '4') { $rbt=array(); $rbt="Crimes"; } elseif($ri['r_btype'] == '5') { $rbt=array(); $rbt="Jobs"; } elseif($ri['r_btype'] == '6') { $rbt=array(); $rbt="Forums"; } elseif($ri['r_btype'] == '7') { $rbt=array(); $rbt="Mail"; } else { $rbt=array(); $rbt="Other"; } echo "<b>Bug Type:</b> ".$rbt.""; } if($ri['r_type'] == '4') { if($ri['r_stype'] == '1') { $rst=array(); $rst="New Feature"; } elseif($ri['r_stype'] == '2') { $rst=array(); $rst="Visual Appearance"; } elseif($ri['r_stype'] == '3') { $rst=array(); $rst="Forums/Chat"; } else { $rst=array(); $rst="Other"; } echo "<b>Suggestion Based On:</b> ".$rst.""; } echo "<b>Posted On:</b> ".$rti." <b>Status:</b> ".$rfi." </td><td style='border:1px solid #888888;' width='60%' valign='top'> ".htmlentities($ri['r_report'])." </td> </tr></table><hr width='50%' /> "; } } else { if($_GET['type'] == 'player') { if($_POST['player_r'] && $_POST['preport']) { $_POST['player_r'] == mysql_real_escape_string($_POST['player_r']); $_POST['preport'] == htmlspecialchars($_POST['preport']); $c_v=array(); $c_v=$db->query("SELECT * FROM `users` WHERE `userid`='".$_POST['player_r']."'"); if($db->num_rows($c_v)) { $post_time=array(); $post_time = time(); $db->query("INSERT INTO `reports` VALUES('NULL','".$_POST['player_r']."','".$_POST['preport']."','1','0','0','0','".$post_time."' ,'".mysql_real_escape_string($userid)."')"); echo "<b>You sucessfully reported</b>"; } else { echo "<b>There Is No Player With That ID In The Game"; } } $_GET['type']=abs((int) $_GET['type']); echo "<h4>Player Report</h4>"; echo "<form actions='report_center.php?type=player' method='post'> <table style='border:1px solid #888888;' cellspacing='0' cellpadding='2' width='75%'> <tr><td style='border:1px solid #888888;background:#eeeeee;' width='35%' align='left'> <b>Player ID:-</b> (Enter the ID of the player you wanna report)</td> <td align='center' style='border:1px solid #888888;background:#eeeeee;' width='65%'> <input type='text' style='border:1px solid #333333;width:90%;' name='player_r' /></td></tr> <tr><td style='border:1px solid #888888;background:#cccccc;' width='35%' align='left' valign='top'> <b>Report:-</b> (Enter your complaint against the player)</td> <td align='center' valign='top' style='border:1px solid #888888;background:#cccccc;' width='65%'> <textarea rows='7' cols='43' name='preport' style='border:1px solid #333333;'></textarea> </td></tr> <tr><td style='border:1px solid #888888;background:#eeeeee;' align='center' colspan='2'> <input type='submit' value='Report' /> </td></tr></table> </form> "; } elseif($_GET['type'] == 'bug') { if($_POST['bug_r'] && $_POST['breport']) { $_POST['bug_r'] == mysql_real_escape_string($_POST['player_r']); $_POST['breport'] == htmlspecialchars($_POST['preport']); $post_time=array(); $post_time = time(); $db->query("INSERT INTO `reports` VALUES('NULL','0','".$_POST['breport']."','2','0','".$_POST['bug_r']."','0','".$post_time."' ,'".mysql_real_escape_string($userid)."')"); echo "<b>thank you for reporting the bug</b>"; } $_GET['type']=abs((int) $_GET['type']); echo "<h4>Bug Report</h4>"; echo "<form actions='report_center.php?type=bug' method='post'> <table style='border:1px solid #888888;' cellspacing='0' cellpadding='2' width='75%'> <tr><td style='border:1px solid #888888;background:#eeeeee;' width='35%' align='left'> <b>Bug Type:-</b> (Select the type of bug.If your bug is not in the list,then mention about it in the report.)</td> <td align='center' style='border:1px solid #888888;background:#eeeeee;' width='65%'> <select style='border:1px solid #333333;width:90%;' name='bug_r'> <option value=''>SELECT</option> <option value='1'>Attacking</option> <option value='2'>Grammar</option> <option value='3'>Gangs</option> <option value='4'>Crimes</option> <option value='5'>Jobs</option> <option value='6'>Forum</option> <option value='7'>Mail</option> <option value='0'>Other</option> </select> </td></tr> <tr><td style='border:1px solid #888888;background:#cccccc;' width='35%' align='left' valign='top'> <b>Report:-</b> (Give more details about the bug in the box.)</td> <td align='center' valign='top' style='border:1px solid #888888;background:#cccccc;' width='65%'> <textarea rows='7' cols='43' name='breport' style='border:1px solid #333333;'></textarea> </td></tr> <tr><td style='border:1px solid #888888;background:#eeeeee;' align='center' colspan='2'> <input type='submit' value='Report' /> </td></tr></table> </form>"; } elseif($_GET['type'] == 'staff') { if($_POST['staff_r'] && $_POST['sreport']) { $_POST['staff_r'] == mysql_real_escape_string($_POST['staff_r']); $_POST['sreport'] == htmlspecialchars($_POST['sreport']); $c_v=array(); $c_v=$db->query("SELECT * FROM `users` WHERE `userid`='".$_POST['staff_r']."' and `user_level` > 1"); if($db->num_rows($c_v)) { $post_time=array(); $post_time = time(); $db->query("INSERT INTO `reports` VALUES('NULL','".$_POST['staff_r']."','".$_POST['sreport']."','3','0','0','0','".$post_time."' ,'".mysql_real_escape_string($userid)."')"); echo "<b>You sucessfully reported</b>"; } else { echo "<b>There is no staff with that ID</b>"; } } $_GET['type']=abs((int) $_GET['type']); echo "<h4>Staff Report</h4>"; echo "<form actions='report_center.php?type=staff' method='post'> <table style='border:1px solid #888888;' cellspacing='0' cellpadding='2' width='75%'> <tr><td style='border:1px solid #888888;background:#eeeeee;' width='35%' align='left'> <b>Staff:-</b> (Select The Staff against whome you want to complaint)</td> <td align='center' style='border:1px solid #888888;background:#eeeeee;' width='65%'> <select style='border:1px solid #333333;width:90%;' name='staff_r'><option value=''>SELECT</option>"; $staff_list=array(); $sl=array(); $staff_list=$db->query("SELECT * FROM `users` WHERE `user_level` > 1"); while($sl=$db->fetch_row($staff_list)) { echo "<option value='".$sl['userid']."'>".$sl['username']."</option>"; } echo "</select></td></tr> <tr><td style='border:1px solid #888888;background:#cccccc;' width='35%' align='left' valign='top'> <b>Report:-</b> (Enter your complaint against the player)</td> <td align='center' valign='top' style='border:1px solid #888888;background:#cccccc;' width='65%'> <textarea rows='7' cols='43' name='sreport' style='border:1px solid #333333;'></textarea> </td></tr> <tr><td style='border:1px solid #888888;background:#eeeeee;' align='center' colspan='2'> <input type='submit' value='Report' /> </td></tr></table> </form>"; } elseif($_GET['type'] == 'suggest') { if($_POST['sug'] && $_POST['suggest']) { $_POST['sug'] == mysql_real_escape_string($_POST['sug']); $_POST['suggest'] == htmlspecialchars($_POST['suggest']); $post_time=array(); $post_time = time(); $db->query("INSERT INTO `reports` VALUES('NULL','0','".$_POST['suggest']."','4','0','0','".$_POST['sug']."','".$post_time."' ,'".mysql_real_escape_string($userid)."')"); echo "<b>thank you for suggesting</b>"; } $_GET['type']=abs((int) $_GET['type']); echo "<h4>Suggestions</h4>"; echo "<form actions='report_center.php?type=suggest' method='post'> <table style='border:1px solid #888888;' cellspacing='0' cellpadding='2' width='75%'> <tr><td style='border:1px solid #888888;background:#eeeeee;' width='35%' align='left'> <b>Idea For:-</b></td> <td align='center' style='border:1px solid #888888;background:#eeeeee;' width='65%'> <select style='border:1px solid #333333;width:90%;' name='sug'> <option value=''>SELECT</option> <option value='1'>New Game Features</option> <option value='2'>Visual Appearances</option> <option value='3'>Forums Or Chat</option> <option value='0'>Other</option> </select> </td></tr> <tr><td style='border:1px solid #888888;background:#cccccc;' width='35%' align='left' valign='top'> <b>Report:-</b> (include as much details of your suggestions as possible)</td> <td align='center' valign='top' style='border:1px solid #888888;background:#cccccc;' width='65%'> <textarea rows='7' cols='43' name='suggest' style='border:1px solid #333333;'></textarea> </td></tr> <tr><td style='border:1px solid #888888;background:#eeeeee;' align='center' colspan='2'> <input type='submit' value='Suggest' /> </td></tr></table> </form>"; } } $h->endpage(); ?>
  11. i just read this now i feel real dumb, whats php?
  12. and that this mod will be out of date soon, move onto $db->query instead. however this mod WAS NOT made by you as i got the same mod of this forum a while back,
  13. you do know that the sqls you posted dont actually work right?
  14. fixed on my site. Edit growsetup.php and find line 65 where this is if ($ir['seeds'] >= 1 && $ir['hydrokit'] == 1)   and replace with this if ($ir['seeds'] >= 1 && $ir['hydrokit'] >= 1)   if wouldn't work because i had more than 1 hydro kit.
  15. from what i can see the submit buttons works all good. just the function start_grow() doent show lol, it looks all good for me tho lol, damm mccodes.
  16. yup, still dont work lol.
  17. mine dont, the growsetup page, i click start growing and it dont do nothing. blank page lol
  18. well seedbank.php, medical.php, growshop.php, growsetup.php, is your copy working, if so can you post it up, as this version dont work for me.
  19. i like this, has anything done or though about making items unlocked at reaching a certain level. like. e.g You unlock Default city. <b>You also unlocked Default items.</b> Gained 5,000,000$ i can only use or equip those items once i get to a certain level. etc... does that makes sense.
  20. i was looking for something the same, but i tried and cant find anything lol.
  21. does anyone know whats wrong with this,
  22.   ALTER TABLE `users` ADD `medical` int(11) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `hydrokit` int(11) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `seeds` int(11) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `ounces` int(11) NOT NULL DEFAULT '0';
  23. yeah it is a mess, not my mess tho lol, i shall have a loo and clean up lol
  24. ty :) downloaded,
×
×
  • Create New...