Jump to content
MakeWebGames

CJ - Twitch

Members
  • Posts

    391
  • Joined

  • Last visited

Everything posted by CJ - Twitch

  1. Lmao. It kinda does. :)
  2. Will you be coding this or selling the PSD. I would happily code it for you if I could have a copy.
  3. I added a tiny bit of security. I can't really do much right now I'm in hospital with a 8" netbook pc and mobile broadband. My sister is in labour.
  4. I only posted it because I decided to make my own from scratch. I didn't really expect people to complain. It really isn't hard to secure it. Let the "newbies" secure it themselves you have to start somewhere.
  5. 2 words. Don't care. ;)
  6. Meh. Its not my job to secure. I just coded it.
  7. CJ - Twitch

    Html 5

    I Agree with the above post... I also like the fact that you can display videos without flash. (Good for iPhone or iPod Touch users)
  8. Firstly I didn't make this I just McCoded it. ^^ Here is a demo.. http://www.clantemplates.com/templates/default_informatik/# Please leave a link back or something. Header.php <?php class headers { function startheaders() { global $ir; echo <<<EOF <html> <head> <title>Game</title> <link rel="stylesheet" href="style.css" type="text/css"> <script language="JavaScript1.2"> function high(which2){ theobject=which2 highlighting=setInterval("highlightit(theobject)",50) } function low(which2){ clearInterval(highlighting) if (which2.style.MozOpacity) which2.style.MozOpacity=0.3 else if (which2.filters) which2.filters.alpha.opacity=25 } function highlightit(cur2){ if (cur2.style.MozOpacity<1) cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1 else if (cur2.filters&&cur2.filters.alpha.opacity<100) cur2.filters.alpha.opacity+=10 else if (window.highlighting) clearInterval(highlighting) } </script> <script language="JavaScript"> function FT_PreloadImages() { if (document.images) { if (typeof(document.FT) == 'undefined') { document.FT = new Object(); } document.FT.loaded_images = new Array(); var argc = FT_PreloadImages.arguments.length; for (i=0; i<argc; i++) { document.FT.loaded_images[i] = new Image(); document.FT.loaded_images[i].src = FT_PreloadImages.arguments[i]; } } } function msover(img,ref,desc) { if (document.images) { document.images[img].src = ref; window.status = desc; } return true; } function msout(img,ref) { if (document.images) { document.images[img].src = ref; window.status = ""; } return true; } </script> </head> EOF; } function userdata($ir,$lv,$fm,$dosessh=1) { global $c,$userid; $IP = $_SERVER['REMOTE_ADDR']; $IP = mysql_real_escape_string($IP); mysql_query("UPDATE users SET laston=unix_timestamp(),lastip='$ip' WHERE userid=$userid",$c); if(!$ir['email']) { die ("<body>Your account may be broken. Please mail [email][email protected][/email] stating your username and player ID."); } if($dosessh && $_SESSION['attacking']) { print "You lost all your EXP for running from the fight."; mysql_query("UPDATE users SET exp=0 WHERE userid=$userid",$c); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; print "<body bgcolor='#6A6A6A' style='background-image:url('images/bg.png');' topmargin='0' bgproperties='fixed' onLoad='FT_PreloadImages("images/top/quiknav/buttons/index_on.jpg", "images/top/quiknav/buttons/forums_on.jpg", "images/top/quiknav/buttons/roster_on.jpg", "images/top/quiknav/buttons/links_on.jpg", "images/top/quiknav/buttons/matches_on.jpg")'> <div align='center'><center> <table border='0' cellpadding='0' cellspacing='0' width='100'> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='33%' valign='top' background='images/border_left.jpg'>[img=images/border_left.jpg]</td> <td width='33%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='50%' valign='top'>[img=images/top/topleft.jpg]</td> <td width='50%' valign='top'>[img=images/top/topright.jpg]</td> </tr> </table> </td> </tr> <tr> <td width='100%'>[img=images/top/quiknav/left.jpg][url='#'][img=images/top/quiknav/buttons/index_off.jpg][/url][url='#'][img=images/top/quiknav/buttons/roster_off.jpg][/url][url='#'][img=images/top/quiknav/buttons/matches_off.jpg][/url][url='#'][img=images/top/quiknav/buttons/forums_off.jpg][/url][url='#'][img=images/top/quiknav/buttons/links_off.jpg][/url][img=images/top/quiknav/right.jpg]</td> </tr> <tr> <td width='700' height='34' style='background-image:url(images/top/bottom.jpg); '></td> </tr> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%' height='311'> <tr> <td width='18%' valign='top' background='images/nav/bg2.jpg' height='311'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%' background='images/nav/bg.bmp' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='147' height='15' style='background-image:url(images/top/bottom.jpg); '>[img=images/nav/bar_menu.jpg]</td> </tr> <tr> <td width='100%'><table border='0' cellpadding='8' cellspacing='0' width='100%'> <tr> <td width='100%'>[b]Name:[/b] {$u} [{$ir['userid']}] [b]Money:[/b] {$fm} [b]Level:[/b] {$ir['level']} [b]Energy:[/b] {$enperc}% <img src=bargreen.gif width=$enperc height=10><img src=barred.gif width=$enopp height=10> [b]Will:[/b] {$wiperc}% <img src=bargreen.gif width=$wiperc height=10><img src=barred.gif width=$wiopp height=10> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=bargreen.gif width=$brperc height=10><img src=barred.gif width=$bropp height=10> [b]EXP:[/b] {$experc}% <img src=bargreen.gif width=$experc height=10><img src=barred.gif width=$exopp height=10> [b]Health:[/b] {$hpperc}% <img src=bargreen.gif width=$hpperc height=10><img src=barred.gif width=$hpopp height=10> "; if($ir['fedjail']) { $q=mysql_query("SELECT * FROM fedjail WHERE fed_userid=$userid",$c); $r=mysql_fetch_array($q); die("[b]<font color=red size=+1>You have been put in the Your Game Name Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$ip)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; print "</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> <td width='2%' valign='top' background='images/spacer_bg.jpg' height='311'>[img=images/spacer_top.jpg]</td> <td width='80%' valign='top' background='images/content/box/bg.jpg' height='311'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%'>[img=images/content/top.jpg]</td> </tr> <tr> <td width='100%' background='images/content/bg.jpg' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='2%'>[img=images/spacer1.gif]</td> <td width='19%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%'>[img=images/minibox_l/top.jpg]</td> </tr> <tr> <td width='100%' background='images/minibox_l/bg.jpg'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='6%'></td> <td width='87%' valign='top'>Last Match Results: </td> <td width='7%'></td> </tr> </table> </td> </tr> <tr> <td width='100%'>[img=images/minibox_l/bottom.jpg]</td> </tr> <tr> <td width='100%' height='4'></td> </tr> </table> </td> <td width='2%'>[img=images/spacer2.gif]</td> <td width='57%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%' height='1'> <tr> <td width='100%' height='1'>[img=images/minibox_r/top.jpg]</td> </tr> <tr> <td width='100%' background='images/minibox_r/bg.jpg' height='1' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='3%'></td> <td width='94%'>Maximum of 8 lines of text in these boxes. </td> <td width='4%'></td> </tr> </table> </td> </tr> <tr> <td width='100%' height='1'>[img=images/minibox_r/bottom.jpg]</td> </tr> <tr> <td width='100%' height='4'></td> </tr> </table> </td> <td width='20%'>[img=images/spacer3.gif]</td> </tr> </table> </td> </tr> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%' background='images/content/box/topbg.jpg'> </table> </td> </tr> <td width='91%' valign='top' height='3' colspan='2'></td> </tr> </table> </td> </tr> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%' background='images/content/box/topbg.jpg'> <tr> <td width='50%'>[img=images/content/box/topleft.jpg]</td> <td width='50%'></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td width='100%' style='padding: 5px;'>"; } function endpage() { print "</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> <td width='34%' valign='top' background='images/border_right.jpg'>[img=images/border_right.jpg]</td> </tr> </table> </td> </tr> <tr> <td width='100%'></td> </tr> </table> </center> </div> </body> </html>"; } } ?>   Download the template http://='http://www.clantemplates.com/?module=templates&action=license&id=129']here and upload the images to your server. :) Enjoy. Note: You need to sign in to download.
  9. Thanks. Works perfectly. .. *Goes to edit every file...*
  10. I don't think you Understand. ^^ What I would like is if a user is on a page e.g header.php directly it sends them to a error page. If there on a page than includes header.php they stay on the page..
  11. Doesn't work. =/
  12. CJ - Twitch

    A function...

    Is there a function that redirects a user to an error page if they are on a page that in not included or required? If not is there a way to do this? Many thanks. CJ
  13. How about Ctrl + H? Do Ctrl + H type in the find box: "$db->" and in replace box: "mysql_" Do the same thing but replace "mysql_fetch_row" with "mysql_fetch_array" Simple eh?
  14. My bad Renkia. You can have your account back now. :P
  15. Read a few ebooks will help. :)
  16. Can I see the original image?
  17. It is very nice but is it secure? It is not worth $1000. maybe $300 for the great design.
  18. @ Jordan. Do you mean you will remember that? Doesn't bother me to be honest. On topic: We all have to start somewhere and I think this help some people. Even if it an easy job.
  19. I voted yes. Save the n00bs. :P @Jordan. You grumpy twat GTFO.
  20. 8o Very efficient! Thanks for this. :)
  21. You do understand that BBCode is PHP. Don't you? :huh:
  22. Yeah thats what I have done. I'm redoing some of the SQL structure in lite to make it easier for me. :P
  23. Well, awesome graphics maker of tc, it would be useless unless you sold it as a captcha. http://makewebgames.io/index.php?page=RMarketplaceEntry&entryID=137 So i suggest about $5. :)
  24. It shouldn't be hard to be honest. Try making it your self. :)
×
×
  • Create New...