Jump to content
MakeWebGames

Renkia

Members
  • Posts

    232
  • Joined

  • Last visited

    Never

Everything posted by Renkia

  1. Lol, forgot taht. XD V2: include "globals.php"; Into: V1: 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();   Should be right? :P
  2. Ok ive seen about 2 of these around so i decided to create one. Just HTML basicly. Nothing speacial   <?php include "globals.php"; $tresder=(int) rand(100,999); if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } echo "<hr><marquee>Your Currently Exploring Chotic-impulse, Theres Shops, Markets, City Bank, Lucky Boxes, Gangs, Jail, And What Else You Can See!</marquee> <hr> <table width=75% border=2 hight=60% cellspacing=0 class='table'> <tr style='background:grey'><th<font color=black>Market Place</th> <th><font color=black>Local Agents</th><th><font color=black>Dark Side</th></tr> <td valign=top width='300'> [url='shops.php']Shops in the Mall[/url] [url='itemmarket.php']Black Market[/url] [url='cmarket.php']Crystal Market[/url] [url='dmarket.php']Donater Day Market[/url] <td valign=top width='300'> [url='monorail.php']Travel Agency[/url] [url='estate.php']Estate Agent[/url] [url='bank.php']City Bank[/url] [url='cyberbank.php']Cyber Bank[/url] <td valign=top width='300'> [url='gangcentral.php']Gangs[/url] [url='gangwars.php']Gang Wars[/url] [url='fedjail.php']Federal Jail[/url] <tr style='background:gray'> <th><font color=black>Statistics Dept</th> <th><font color=black>Mysterious</th> <th><font color=black>The Underground</th></tr> <td valign=top width='300'> [url='userlist.php']User List[/url] [url='stafflist.php']Chaotic-impulse Staff[/url] [url='halloffame.php']Hall of Fame[/url] [url='stats.php']Game Stats[/url] [url='usersonline.php']Users Online[/url] </td> <t<td valign=top width='300'> [url='trade.php']Trading Center[/url] [url='battletent.php']Battle Tent[/url] <td valign=top width='300'> [url='staffapps.php']Staff Application[/url] </table> <table width=60% border=3 cellspacing=0 class='table'> <tr style='background:grey'><th>[b]<font color=black>This is your referal link:</font><font color=red> http://www.{$set['game_name']}.??.??>[size="1"]Every signup from this link earns you 250 valuable crystals. The system will automaticly give you 250 Crystals. Anyone found crating Multis will be feeded for 3 Days.[/size]</td></td></tr></table>"; $h->endpage(); ?>   Hope you enjoy... :P
  3. Renkia

    HTML Test

    Cheers dj, This looks vry intresting. :)
  4. Renkia

    HTML Test

    In that case... Danny what are you on about. :huh: lol
  5. Renkia

    HTML Test

    Droped as in Changed? Or as in Drop down menu? XD. Anyway my guess then <bold>Bold Tesxt</bold> And probs the same with italic.
  6. Renkia

    HTML Test

    HTML 5? I Thought there the highest one was HTML 4. XD Bold text
  7. Renkia

    HTML Test

    17/20 Redex. Ill study abit more and take it again. :) Anymore?
  8. Renkia

    HTML Test

    Cheers, Redex. Ill take it soon. Danny696: Biggist heading: h1 / Smallest heading: h6
  9. Renkia

    HTML Test

    Ahhh never studied this much. Lol, Cheers for reminding me. :) 1. <h3 style="text-align:center">TEST</h3> Thats one. Sould study over that. lol :huh:
  10. Great work! Personally i think its kind of poo for a game. You could spend loads of money on a house and get it burnt down? =( But anyway peoples opinions. Yet again good job! :thumbsup:
  11. Renkia

    HTML Test

    Hey guys Ive been researching HTML for the past 3 days. And i want to do a little test and see how much information i have got stuck into my head. I Will not google it or anythings like that. Straight from the top of my head. Ask how many questions you want. :P
  12. Renkia

    Right Menu

    Banner Background Side bars Stats bar
  13. Renkia

    Right Menu

    You know the truth hurts some times. :( Lol, And cheers
  14. Renkia

    Right Menu

    Hey Im still doing my game up and most of the stuff is on the right and looks kinda of stupid. So i was wodering could any help me with a right menu? If you want payment thats fine, but cart do through paypal. If you dont want payment then i thank you very much. ;)   <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <body background=http://i46.tinypic.com/2d11b4h.png> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <style type="text/css"> <!-- body { background-color: #1b1b1b; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: white; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: white;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: black; } .table2 { } .lgrad { background-image:url([url]http://i47.tinypic.com/4g1d1k.jpg[/url]); background-repeat:repeat-y; width:19px; } .linegrad { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image:url([url]http://i50.tinypic.com/1198msi.jpg[/url]); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url([url]http://i45.tinypic.com/2132ib9.jpg[/url]); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url([url]http://i45.tinypic.com/2132ib9.jpg[/url]); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url([url]http://i45.tinypic.com/2132ib9.jpg[/url]); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-color:#1b1b1b; vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#222222; height:22px; } .table3 td { background-color:#222222; } td .alt { background-color:#222222; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } --> </style></head> <body> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $_GET['ID'] = abs(@intval($_GET['ID'])); $_GET['reply'] = abs(@intval($_GET['reply'])); $IP = $_SERVER['REMOTE_ADDR']; $IP=addslashes($IP); $IP=mysql_real_escape_string($IP); $IP=strip_tags($IP); $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_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']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; } $gn=""; global $staffpage; $bgcolor = '1b1b1b'; print <<<OUT [img=http://img246.imageshack.us/img246/9031/headerpd.gif] <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> [b]Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Money:[/b] {$fm} [b]Level:[/b] {$ir['level']} [b]Crystals:[/b] {$ir['crystals']} <font color=gold>[</font>[url='logout.php']Emergency Logout[/url]<font color=gold>]</font> <hr /> [b]Energy:[/b] {$enperc}% <img src=http://i45.tinypic.com/iwt5ec.gif width=$enperc height=10><img src=http://i50.tinypic.com/2jbw7ph.gif width=$enopp height=10> [b]Will:[/b] {$wiperc}% <img src=http://i45.tinypic.com/iwt5ec.gif width=$wiperc height=10><img src=http://i50.tinypic.com/2jbw7ph.gif width=$wiopp height=10> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=http://i45.tinypic.com/iwt5ec.gif width=$brperc height=10><img src=http://i50.tinypic.com/2jbw7ph.gif width=$bropp height=10> [b]EXP:[/b] {$experc}% <img src=http://i45.tinypic.com/iwt5ec.gif width=$experc height=10><img src=http://i50.tinypic.com/2jbw7ph.gif width=$exopp height=10> [b]Health:[/b] {$hpperc}% <img src=http://i45.tinypic.com/iwt5ec.gif width=$hpperc height=10><img src=http://i50.tinypic.com/2jbw7ph.gif width=$hpopp height=10> <hr /> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<font color=red size=+1>You have been put in the {$set['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 from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = '1b1b1b'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"></td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"> <center>'; if($ir['hospital']) { print "[b]<hr><font size=1 color=blue>NB:[/b]You are currently in hospital for {$ir['hospital']} minutes.<hr /> "; } if($ir['jail']) { print "[b]<font size=1 color=green><hr>NB:[/b] You are currently in jail for {$ir['jail']} minutes.<hr /></font> "; } print "<hr>[url='donator.php'][b]<font size=1 >Donate to {$set['game_name']} now for game benefits!</font>[/b][/url]<hr /> "; } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = '1b1b1b'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"></td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db; print <<<OUT </center> </td> </tr> </table></td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"></td> <td class="dgrad"></td> <td class="dgradr"></td> </tr> </table> </td> </tr> </table> {$db->num_queries} queries</body> </html> OUT; } } ?>
  15. Wow nice. Probs best one o MWG. Great job. :thumbup:
  16. Nononon.. XD I Was wondering whats so bad about Varcher. What would you use, and why? Sorry i just need to learn some SQL, :pinch:
  17. Renkia

    Hi

    1 Post i agree on. Decio is just a sado. And the 2nd Post. WTF? ?( Pay some or do research. Take legil action or somthing. Pay Zero-effect or Magictallguy I Aint going to open my game unless i know for certin its secure. :thumbup:
  18. Renkia

    Naruto AMV

    Hey Like naruto, and looking for some great AMV`s?   Great AMV. Created by: Sony Song By: Three Days Grace - Never too late Story: Basicly all about Naruto`s & Shikamaru, Naruto his history with Sasuke and some good times. Shikamaru all about when Asuma dies, and get revenge on one of the Akatsukies. Great AMV Video in my Opinion! :thumbsup:
  19. Its ok Zero. Still works. :) But out of conclution? What did you say that? :huh:
  20. I Agree with MDshare 750-1000 Would be a good & right size.
  21. Ok sorry my bad. global $db; $db->query("UPDATE users SET signature = '".$db->escape($_POST['newsignature'])."' WHERE userid = ".$userid); Fixed by MTG.
  22. Ok sorry but i havnt came across the word Define before but im suggesting... $db, global $db->query("UPDATE users SET signature='{$_POST['newsignature']}' WHERE userid=$userid",$c); I Hope its right 8o ?( Cheers immortal. :thumbup:
  23. Having abit of trouble with the profile signature. Dont see the problem. GOT FROM [mccode] Profile Signatures PAGE 3 Fatal error: Call to a member function query() on a non-object in /home/chaotic/public_html/preferences.php on line 155 LINE 155: $db->query("UPDATE users SET signature='{$_POST['newsignature']}' WHERE userid=$userid",$c);   SQL [mysql]ALTER users ADD `signature` text NOT NULL;[/mysql] #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'users ADD `signature` text NOT NULL' at line 1 MySQL Version: 5.1.40 Any idea how to help? Also mind telling me the problem and try explaining why it isnt working. Could help me on my progress. Cheers :thumbsup:
  24. Ohh dear. Sorry shall be having words with Paul. 8|
  25. Lol. Will be along time tho. :cursing: Anyway cheers, Make sure you have ionCube.. :thumbsup:
×
×
  • Create New...