Jump to content
MakeWebGames

SHAD

Members
  • Posts

    264
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by SHAD

  1. Just wondering, how the forum going so far?
  2. I cant seem to +1 anyone on the forum, the + and the - dont work.
  3. Ok i have PMed you, regarding the layout.
  4. Will you make header,login, and register, for the price i mentioned?
  5. I am looking for a custom layout and willing to spend up to £50 which is 76 usds, the layout must not be too dark or too light but average in colors, and must be comfortable to the eyes. If someone could provide some examples regarding the the above descriptionthen that would be great. Note: I am not looking some something too fancy or too simple.
  6. 2 questions. Is it fully secure? When can i buy it?
  7. for some reason if i put in my profile sig then go to my sig and refresh it logs me out. I am not sure if it work now. ?(
  8. I am looking for a attack script that look sort of like torncitys,obviously not 100% but sortof. This must have good hit ratios weapon pics and also if a player tried to quit the battle he would have a chance to get in hosptial for being unsucessful. And must be secure. Note this must use pics but they dont have to be provided. How much will this attack system cost? if someone was to make it
  9. Thank you very much daya ,it works perfect.
  10. I would never claim anyones work to be mine, i use forums and bbcode made by antony. I just needed someone to add the secure image tags.
  11. Can someone please show me how that code will be placed in the bb parser. <?php if($_SERVER['PHP_SELF'] == __FILE__) { header("Location:index.php"); exit; } class bbcode { function bbcode_parse($text) { global $ir, $db, $userid, $set; $text = htmlspecialchars($text); $text = preg_replace("/\[b\]/", "[b]", $text); $text = preg_replace("/\[\/b\]/", "[/b]", $text); $text = preg_replace("/\[i\]/", "[i]", $text); $text = preg_replace("/\[\/i\]/", "[/i]", $text); $text = preg_replace("/\[u\]/", "<span style='text-decoration:underline;'>", $text); $text = preg_replace("/\[\/u\]/", "</span>", $text); $text = preg_replace("/\[s\]/", "<s>", $text); $text = preg_replace("/\[\/s\]/", "</s>", $text); $text = preg_replace("/\[sub\](.+?)\[\/sub\]/", "<sub>$1</sub>", $text); $text = preg_replace("/\[sup\](.+?)\[\/sup\]/", "<sup>$1</sup>", $text); $text = preg_replace("/\[big\](.+?)\[\/big\]/", "<big>$1</big>", $text); $text = preg_replace("/\[small\](.+?)\[\/small\]/", "[size="1"]$1[/size]", $text); $text = preg_replace("/\[list\](.+?)\[\/list\]/", "<ul>$1[/list]", $text); $text = preg_replace("/\[olist\](.+?)\[\/olist\]/", "[list=1]$1[/list]", $text); $text = preg_replace("/\[li\](.+?)\[\/li\]/", "[*]$1", $text); $text = preg_replace("/\[font=(.+?)\](.+?)\[\/font\]/", "<span style='font-family:$1'>$2</span>", $text); $text = preg_replace("/\[size=(.+?)\](.+?)\[\/size\]/", "<font size='$1'>$2</font>", $text); $text = preg_replace("/\[url=(.+?)\](.+?)\[\/url\]/", "[url='$1']$2[/url]", $text); $text = preg_replace("/\[img=(.+?)\]/", "[img=$1]", $text); $text = preg_replace("/\[img\](.+?)\[\/img\]/", "[img=$1]", $text); $text = preg_replace("/\n/", "&nbrlb;", $text); $text = preg_replace("/\[email=(.+?)\](.+?)\[\/email\]/", "[email='$1']$2[/email]", $text); $text = preg_replace("/\[email\](.+?)\[\/email\]/", "[email='$1']$1[/email]", $text); $text = preg_replace("/\[left\](.+?)\[\/left\]/", "<div style='text-align: left;'>$1</div>", $text); $text = preg_replace("/\[center\](.+?)\[\/center\]/", "<div style='text-align: center;'>$1</div>", $text); $text = preg_replace("/\[right\](.+?)\[\/right\]/", "<div style='text-align: right;'>$1</div>", $text); $text = preg_replace("/\[quote name='(.+?)\'](.+?)\[\/quote\]/", "<div class='quotetop'>Quote($1)</div><div class='quotemain'>$2</div>", $text); $text = preg_replace("/\[quote\](.+?)\[\/quote\]/", "<div class='quotetop'>Quote</div><div class='quotemain'>$1</div>", $text); $text = preg_replace("/\[style=(.+?)\](.+?)\[\/style\]/", "<div style='$1'>$2</div>", $text); $text = preg_replace("/\[quote\](.+?)\[\/quote\]/","<div class='quotetop'>Quote</div><div class='quotemain'>$1</div>", $text); $text = preg_replace("/\[code\](.+?)\[\/code\]/","<div class='codetop'>Code</div><div class='codemain'><code>$1</code></div>", $text); $text = preg_replace("/\[codebox\](.+?)\[\/codebox\]/","<div class='codetop'>Code</div><div class='codemain'><code>$1</code></div>", $text); $text = preg_replace("/&nbrlb;/", " \n", $text); $text = preg_replace("/\[colour=(.+?)\]/", "<span style='color:$1;'>", $text); $text = preg_replace("/\[\/colour\]/", "</span>", $text); $text = preg_replace("/\[color=(.+?)\]/", "<span style='color:$1;'>", $text); $text = preg_replace("/\[\/color\]/", "</span>", $text); $text = preg_replace("/\[br \/]/", " ", $text); $text = preg_replace("/\[br]/", " ", $text); $text = preg_replace("/\[hr \/]/", "<hr />", $text); $text = preg_replace("/\[hr]/", "<hr />", $text); $text = preg_replace("/\[list\]/", "<ul>", $text); $text = preg_replace("/\[\/list\]/", "[/list]", $text); $text = preg_replace("/\[olist\]/", "[list=1]", $text); $text = preg_replace("/\[\/olist\]/", "[/list]", $text); $text = preg_replace("/\[li\]/", "[*]", $text); $text = preg_replace("/\[\/li\]/", "", $text); return nl2br($text); } } $bbc = new BBCode; ?>
  12. WOW you acutally done this yourself, good work mate, but arnt you supposed to add a code to the declare war function to prevent gangs from declaring war on peaceful gangs.
  13. I just bought cronus carbomb but it is for v1 and don't work for v2, waste of $5 dollers. :(
  14. As i am having trouble making the bomb myself ,i thought i would pay $10 for a gangbomb which meets the following features. The gangbomb is an item which can be used on gangs to and hospital all their members and take away a large amount of respect.but the the user who is in a gang can use the bomb. It must also be secure, i don't want to buy anything insecure.
  15. Can anyone make a free nucleur bomb mod which can be used on gangs. and take respect depending on iots members and every player gets sent to jail. I have been looking for this mod for some time,please can someone post one. Their were free ones made but can't find a decent one that works.
  16. Can anyone please tell me what are the possible causes of this error? And how is it possible to prevent such errors.   Warning: mysql_connect() [function.mysql-connect]: Too many connections in /home/hytrtrogenic/public_html/globalsfiles/class/class_db_mysql.php on line 46 FATAL ERROR: Could not connect to database on localhost (Too many connections)
  17. So what would be the best way to prevent this?
  18. Recently their have been people complaining about their games having shells entered and tables dropped. I never heard of this type of hack before and was wondering if anyone could help me understand. How do we protect our codes from shells and prevent them being entered and what functions do we need to use? and most importantly what areas of mccodes would most likely be a target to shell attacks or to be more specific,what type of code would be a target to such attacks and what would secure it? Regards
  19. Yea it does,but it only has a single outcome for success text,and i have made 3 but i dont know how to implant them in to docrime.php so it select one of those success texts instead of selecting just one sucess text.
  20. Ok i have 3 different sucess texts, and they are called "crimeSTEXT" "crimeSSTEXT" "crimeSSSTEXT". But how do i add these in the docrime.php, so it selects one of these at random.   <?php $macropage="docrime.php?c={$_GET['c']}"; include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $_GET['c']=abs((int) $_GET['c']); echo' <span style="font-variant: small-caps;"><h2>Crimes</h2></span>'; print" <hr color=#303030 width=85%/> "; if(!$_GET['c']) { print "Invalid crime"; } else { $q=mysql_query("SELECT * FROM crimes WHERE crimeID={$_GET['c']}",$c); $r=mysql_fetch_array($q); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave to perform this crime."; } else { $ec="\$sucrate=".str_replace(array("LEVEL","CRIMEXP","EXP","WILL","IQ"), array($ir['level'], $ir['crimexp'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']).";"; eval($ec); print"<font color=green>[b]"; $ir['brave']-=$r['crimeBRAVE']; mysql_query("UPDATE users SET brave={$ir['brave']} WHERE userid=$userid",$c); if(rand(1,175) <= $sucrate) { print str_replace("{money}",$r['crimeSUCCESSMUNY'],$r['crimeSTEXT']); $ir['money']+=$r['crimeSUCCESSMUNY']; $ir['crystals']+=$r['crimeSUCCESSCRYS']; $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/8); mysql_query("UPDATE users SET money={$ir['money']}, crystals={$ir['crystals']}, exp={$ir['exp']},crimexp=crimexp+{$r['crimeXP']} WHERE userid=$userid",$c); print"</font>"; if($r['crimeSUCCESSITEM']) { item_add($userid, $r['crimeSUCCESSITEM'], 1); } } else { if(rand(1, 2) == 1) { print"<font color=brown>"; print $r['crimeFTEXT']; print"</font>"; } else { print"<font color=red>"; print $r['crimeJTEXT']; print"</font>"; $db->query("UPDATE `users` SET `jail` = '$r[crimeJAILTIME]', `jail_reason` = '$r[crimeJREASON]' WHERE `userid` = '$userid'"); } } print " "; print " <hr color=#303030 width=85%/>[url='docrime.php?c={$_GET[']• Try Again[/url] [url='crimes.php']• Crimes[/url]<hr color=#303030 width=85%/>"; } }print" "; $h->endpage(); ?>
  21. Their was two errors ,a missing parameter and the other one i posted above ,but i managed to fix them. here is the fixed code   echo ('<tr> <td align = "center" colspan = "3"><a href = "/Comments.php?ID='.$_GET['u'].'"><span style = "color:#8B0000">Add Comment</span></a></td> </tr> </table>'); echo (' <table width = "85%" cellspacing = "1" class = "table"> <tr> <th colspan = "3">User Comments</th> </tr>'); $Data = mysql_query("SELECT g.`ID`,g.`SenderID`,g.`RecieverID`,g.`Comment`,u.`userid`,u.`username` FROM `gComments` g LEFT JOIN `users` u "."ON g.`SenderID` = u.`userid` WHERE (`RecieverID` = ".abs(intval($_GET['u'])).") LIMIT 20"); if(!mysql_num_rows($Data)) { echo ('<tr> <td colspan = "1">This user has no comments.</td> </tr> </table>'); exit(); }else{ while($cData = mysql_fetch_array($Data)) { echo (' <tr> <td width = "15%" align="center">'.htmlentities($cData['username']).'</td> <td align="center">'.stripslashes(htmlentities($cData['Comment'], ENT_QUOTES)).'</td>'); if(($_SESSION['userid'] === $cData['RecieverID']) || $ir['user_level'] == 2) { echo (' <td width = "10%" align = "center"><a href = "/Comments.php?Delete&ID='.$cData['ID'].'"><span style = "color:#8B0000">Delete</span></a></td>'); } } echo ('</tr>'); }   Good job zeddicus mate,another great mod by you! :thumbup:
  22. I keep getting the following error,i tried fixing it, but no luck. Parse error: syntax error, unexpected T_BOOLEAN_OR in /home/as7863/public_html/viewuser.php on line 279
  23. SHAD

    Auctions

    I havent found a problem with it so far, You made a fantastic mod Zeddicus mate, Good Work. :thumbup:
  24. This will be an awesome mod, Immortalthug you are a legand! :thumbup:
  25. SHAD

    header help

    This is the getip() function,is it secure,and thank you for you help.  
×
×
  • Create New...