Jump to content

eaglelegend

Members
  • Posts

    353
  • Joined

  • Last visited

    Never

Everything posted by eaglelegend

  1. I am getting this on one of my pages: Warning: Cannot modify header information - headers already sent by (output started at /misc/39/000/171/334/2/user/web/eaglelegend.com/header.php:5) in /misc/39/000/171/334/2/user/web/eaglelegend.com/members.php on line 3 This is members.php: <?php if($_COOKIE['elv2']=="") { Header("Location: http://www.eaglelegend.com/index.php?message=You are logged out! Please log back in!"); } $creditsSQL = mysql_query("SELECT * FROM `members` WHERE `username`='{$_COOKIE['ELv2']}'"); while($creditsROW = mysql_fetch_array($creditsSQL)) { $MONEY = $creditsROW["money"]; $POINTS = $creditsROW["points"]; $FROZEN = $creditsROW["frozen"]; } if($FROZEN==1) { print "<b>YOUR ACCOUNT IS FROZEN! PLEASE CONTACT THE SITE ADMIN. YOU HAVE BEEN LOGGED OUT!</b>"; setcookie("ELv2",null); } ?>
  2. I dont know, why isnt it center like it is supposed to be? or was...
  3. hey cooldude832, it is no longer at the center of the page, as you may of seen yesterday it was center... the content of the page that is
  4. im afaid that didnt work, heres the header... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd"> --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <?php include("config.php"); ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="author" content="Mark Richardson" /> <meta name="description" content="Eagle Legend - The newest, safest and best Virtual Pet Site in the hole of Cyberspace!" /> <meta name="keywords" content="eagle legend, eaglelegend, eagle, legend, pets, pet, games, game, virtual, chat, fun, prizes, play, virtual pet, kids" /> <meta name="revised" content="Eagle Legend, 04/04/08" /> <title>Eagle Legend</title> <link rel="stylesheet" href="style.css" type="text/css" /> <script language="javascript" type="text/javascript"> //<![CDATA[ function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=600');"); } //]]> </script> <link rel="shortcut icon" href="favicon.ico" /> <style type="text/css"> /*<![CDATA[*/ div.c1 {text-align: center} /*]]>*/ </style> <style type="text/css"> /*<![CDATA[*/ img.c1 {border:0;width:88px;height:31px} /*]]>*/ </style> <style type="text/css"> /*<![CDATA[*/ img.c1 {border:0;width:88px;height:31px} /*]]>*/ </style> </head> <body> <div class="c1"> <table border="0" width="980" cellpadding="4" cellspacing="4" bgcolor="#000000"> <tr> <td colspan="2"><a href="index.php"><img src="images/headers/banner.png" border="0" alt="Eagle Legend" /></a></td> </tr> <tr> <td width="180" valign="top" align="left" bgcolor="#04AA44"> <? include("nav.php"); ?> </td> <td width="800" valign="top" bgcolor="#70BEFF">
  5. well that center thing was made by the validator (XHTML) However im not sure now what was previously making the site center >_<
  6. Hey, This is the source code viewable by my site, and this, my site used to be in the direct center, before I tried convert it to XHTML, however its now on the direct left... any ideas? <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> --> <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd"> --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="generator" content="HTML Tidy for Linux (vers 1 September 2005), see www.w3.org" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="author" content="Mark Richardson" /> <meta name="description" content="Eagle Legend - The newest, safest and best Virtual Pet Site in the hole of Cyberspace!" /> <meta name="keywords" content="eagle legend, eaglelegend, eagle, legend, pets, pet, games, game, virtual, chat, fun, prizes, play, virtual pet, kids" /> <meta name="revised" content="Eagle Legend, 04/04/08" /> <title>Eagle Legend</title> <link rel="stylesheet" href="style.css" type="text/css" /> <script language="javascript" type="text/javascript"> //<![CDATA[ function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=600');"); } //]]> </script> <link rel="shortcut icon" href="favicon.ico" /> <style type="text/css"> /*<![CDATA[*/ div.c1 {text-align: center} /*]]>*/ </style> <style type="text/css"> /*<![CDATA[*/ img.c1 {border:0;width:88px;height:31px} /*]]>*/ </style> <style type="text/css"> /*<![CDATA[*/ img.c1 {border:0;width:88px;height:31px} /*]]>*/ </style> <style type="text/css"> /*<![CDATA[*/ img.c2 {border:0;width:88px;height:31px} span.c1 {color: red} /*]]>*/ </style> </head> <body> <div class="c1"> <table border="0" width="980" cellpadding="4" cellspacing="4" bgcolor="#000000"> <tr> <td colspan="2"><a href="index.php"><img src="images/headers/banner.png" border="0" alt="Eagle Legend" /></a></td> </tr> <tr> <td width="180" valign="top" align="left" bgcolor="#04AA44"> <h2>Navigation</h2> - <a href="index.php">Home</a><br /> - <a href="register.php">Register</a> <h2>Login</h2> <form action="login.php" method="post">Username<br /> <input type='text' name='username' size='15' /> <p>Password<br /> <input type='password' name='password' size='15' /></p> <p><input type='submit' value='Login' /></p> </form> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_donations" /><input type="hidden" name="business" value="mark@eaglelegend.com" /><input type="hidden" name="item_name" value="ELv2" /><input type="hidden" name="no_shipping" value="0" /><input type="hidden" name="no_note" value="1" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="tax" value="0" /><input type="hidden" name="lc" value="GB" /><input type="hidden" name="bn" value="PP-DonationsBF" /><input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online." /><img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" /></form> <p><script language="Javascript" src="http://apexwebgaming.com/current_stats.php?style=2&id=2619" type="text/javascript"> </script><br /> <strong>Current VPS Rank:</strong> 12th!</p> <p>-<a href="http://apexwebgaming.com/in/2619"><img src="http://apexwebgaming.com/images/vote_button_1.gif" width="80" height="31" alt="Vote at Apex Web Gaming" border="0" /></a></p> </td> <td width="800" valign="top" bgcolor="#70BEFF"> <h1><strong>PLEASE NOTE</strong></h1> <p><strong><span class="c1">We are currently down as we are cleaning up the code to all internet standards and making the internet safer!, please feel free to join, although the site is currently in BETA!.</span></strong></p> <p>Eagle Legend is a popular Virtual Pet Site for Children and Teens, since opening, it was named 4th best Virtual Pet Site by Apex Web Gaming, since then Eagle Legend has been down to make the site safer and cleaner than it was! so why not click <a href="http://www.eaglelegend.com/register.php">here</a> to get started, today?!</p> <h2>Newest Adoptions</h2> <br /> <table border="0" cellpadding="3" cellspacing="0" width="100%"> <tr> <td width='33%' valign='top'> <table border="0" cellpadding="2" cellspacing="0" width="300"> <tr> <td valign="middle" align="center"><img src='/images/pets/Skitty.png' alt='Skittle' /></td> <td valign="top" class="other" width="300">QuinzelPHD adopted a Skitty<br /> Name: Skittle<br /> Status: Unhappy<br /> Born: 04/01/08<br /> Points: 0</td> </tr> </table> </td> <td width='33%' valign='top'> <table border="0" cellpadding="2" cellspacing="0" width="300"> <tr> <td valign="middle" align="center"><img src='/images/pets/Xenip.png' alt='xingxing' /></td> <td valign="top" class="other" width="300">Mark adopted a Xenip<br /> Name: xingxing<br /> Status: Unhappy<br /> Born: 04/01/08<br /> Points: 0</td> </tr> </table> </td> </tr> <tr> <td width='33%' valign='top'> <table border="0" cellpadding="2" cellspacing="0" width="300"> <tr> <td valign="middle" align="center"><img src='/images/pets/Quadra.png' alt='Occy' /></td> <td valign="top" class="other" width="300">free adopted a Quadra<br /> Name: Occy<br /> Status: Unhappy<br /> Born: 03/31/08<br /> Points: 0</td> </tr> </table> </td> <td width='33%' valign='top'> <table border="0" cellpadding="2" cellspacing="0" width="300"> <tr> <td valign="middle" align="center"><img src='/images/pets/Avvis.png' alt='avthis' /></td> <td valign="top" class="other" width="300">Mark adopted a Avvis<br /> Name: avthis<br /> Status: Unhappy<br /> Born: 03/30/08<br /> Points: 0</td> </tr> </table> </td> </tr> <tr> <td width='33%' valign='top'> <table border="0" cellpadding="2" cellspacing="0" width="300"> <tr> <td valign="middle" align="center"><img src='/images/pets/Wolflint.png' alt='Firedog' /></td> <td valign="top" class="other" width="300">Mark adopted a Wolflint<br /> Name: Firedog<br /> Status: Unhappy<br /> Born: 03/27/08<br /> Points: 342</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td colspan="2" bgcolor="#E73738" align="center"><a href="http://apexwebgaming.com/in/2619"><img src="http://apexwebgaming.com/images/vote_button_1.gif" width="80" height="31" alt="Vote at Apex Web Gaming" border="0" /></a> <a href="http://validator.w3.org/check?uri=referer"><img class="c2" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88" /></a> <a href="http://jigsaw.w3.org/css-validator/"><img class="c2" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /></a> <a href='http://www.noslang.com/validate.php?url=www.eaglelegend.com'><img src='http://www.eaglelegend.com/images/slangfree.gif' border='0' alt='Slang Free!' /></a> <a href='http://www.eaglelegend.com/validate.php'><img src='http://www.eaglelegend.com/images/elv2-blue.png' border='0' alt='Slang Free!' /></a> <p>� Copyright MCMXCVII - MMVIII Eagle Legend. Please Read our Privacy & Cookie Policy before using this site! at www.eaglelegend.com/privacy.php</p> </td> </tr> </table> </div> </body> </html> WARNING: NOT PHP SOURCE CODE
  7. Hey, My site is open for you to help me try it out and let me know of problems. I AM trying to have the site XHTML valid (was HTML) but in the process the site has gone from center, to the left of the page, any ideas? have a look here! Thanks, Mark
  8. Sorry im probably on the wrong forum, but what forum do you go where you code phps etc. or ask for it etc.? Thanks, Mark
  9. Hey, I am trying to make my pages XHTML strict, however it requires that I have CSS's instead of - well look below... (my code) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd"> <?php include("config.php"); ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta name="author" content="Mark Richardson" /> <meta name="description" content="Eagle Legend - The newest, safest and best Virtual Pet Site in the hole of Cyberspace!" /> <meta name="keywords" content="eagle legend, eaglelegend, eagle, legend, pets, pet, games, game, virtual, chat, fun, prizes, play, virtual pet, kids" /> <meta name="revised" content="Eagle Legend, 04/01/08" /> <title>Eagle Legend</title> <link rel="stylesheet" href="style.css" type="text/css" /> <script language="javascript" type="text/javascript"> //<![CDATA[ function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=600');"); } //]]> </script> <link rel="shortcut icon" href="favicon.ico" /> <style type="text/css"> /*<![CDATA[*/ div.c1 {text-align: center} /*]]>*/ </style> <style type="text/css"> /*<![CDATA[*/ img.c1 {border:0;width:88px;height:31px} /*]]>*/ </style> </head> <body> <div class="c1"> <table border="0" width="980" cellpadding="4" cellspacing="4" bgcolor="#000000"> <tr> <td colspan="2"><a href="index.php"><img src="images/headers/banner.png" border="0" alt="Eagle Legend" /></a></td> </tr> <tr> <td width="180" valign="top" bgcolor="#04AA44"> <? include("nav.php"); ?> </td> <td width="800" valign="top" bgcolor="#70BEFF">[/font] now how do I do this?, change or put them in my CSS, and not have it change anything, badly?
  10. ??? How do I change my code from cookies to sessions? heres log in code etc. Config: <? ob_start(); $host = "HOST"; $user = "USERNAME"; //EDIT $pass = "PASSWORD; //EDIT $db = "DATABASE"; //EDIT mysql_pconnect($host, $user, $pass); mysql_select_db($db); $SITEURL = "http://www.eaglelegend.com/"; //EDIT $items_path = "ROOT/images"; //EDIT $Z = ""; if($_COOKIE['ipets']) { $ms = mysql_query("SELECT * FROM `members` WHERE `username`='{$_COOKIE['ipets']}'"); while($mr = mysql_fetch_array($ms)) { $POINTS = $mr["points"]; $MONEY = $mr["money"]; } } $style_file = "style.css"; $site_title = "Eagle Legend"; //EDIT $footer = "© Copyright MCMXCVII - MMVIII Eagle Legend. Please Read our Privacy & Cookie Policy before using this site! at www.eaglelegend.com/privacy.php"; //EDIT ?> Login: <?php ob_start(); include("header.php"); $username = $_POST['username']; $password = $_POST['password']; if($username && $password) { $check = mysql_num_rows(mysql_query("SELECT * FROM `members` WHERE `username`=\"$username\" AND `password`=\"$password\"")); if($check == 1) { if(setcookie("ipets",$username,time()+(3600*24))) { Header("Location: index.php"); } else { print "Cant set cookie"; } } else { print "Sorry, username/password mismatch!"; } } else { ?> <h2>Login</h2><p> <form action="login.php" method="post"> Username<br> <input type="text" name="username" size="20"><p> Password<br> <input type="password" name="password" size="20"><p> <input type="submit" value=" Login "></form> <? } include("footer.php"); ob_endflush(); ?> Logout: <?php ob_start(); include("header.php"); include("members.php"); if(setcookie("ipets",null,time()-(3600*99))) { Header("Location: index.php"); } else { print "Cant delete cookie"; } include("footer.php"); ob_endflush(); ?>
  11. Thanks cooldude832, it really works ... changing the topic a little bit, does anyone know how I can make it all "session" instead of cookies, without affecting my users etc.?
  12. how do I fix this? header is: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <?php include("config.php"); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > <meta name="author" content="Me"> <meta name="description" content="Eagle Legend - The newest, safest and best Virtual Pet Site in the hole of Cyberspace!"> <meta name="keywords" content="eagle legend, eaglelegend, eagle, legend, pets, pet, games, game, virtual, chat, fun, prizes, play, virtual pet, kids"> <meta name="revised" content="Eagle Legend, 04/01/08"> <title>Eagle Legend</title> <link rel="stylesheet" href="style.css" type="text/css"> <script language="JavaScript" type="text/javascript"> function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=600');"); } </script> <link rel="shortcut icon" href="favicon.ico"> <style type="text/css"> div.c1 {text-align: center} </style> </head> <body> <div class="c1"> <table border="0" width="980" cellpadding="4" cellspacing="4" bgcolor="#000000"> <tr> <td colspan="2"><a href="index.php"><img src="images/headers/banner.png" border="0" alt="Eagle Legend"></a></td> </tr> <tr> <td width="180" valign="top" bgcolor="#04AA44"> <? include("nav.php"); ?> </td> <td width="800" valign="top" bgcolor="#70BEFF">
  13. Sorry! <? include("header.php"); $username = $_POST['username']; $password = $_POST['password']; if($username && $password) { $check = mysql_num_rows(mysql_query("SELECT * FROM `members` WHERE `username`=\"$username\" AND `password`=\"$password\"")); if($check == 1) { if(setcookie("ipets",$username,time()+(3600*24))) { Header("Location: index.php"); } else { print "Cant set cookie"; } } else { print "Sorry, username/password mismatch!"; } } else { ?> <h2>Login</h2><p> <form action="login.php" method="post"> Username<br> <input type="text" name="username" size="20"><p> Password<br> <input type="password" name="password" size="20"><p> <input type="submit" value=" Login "></form> <? } include("footer.php"); ?>
  14. Warning: Cannot modify header information - headers already sent by (output started at /misc/39/000/171/334/2/user/web/eaglelegend.com/header.php:2) in /misc/39/000/171/334/2/user/web/eaglelegend.com/login.php on line 11 Cant set cookie HELP!, I get that when I try and log in my site, on IE... what would it be do you think? help much appreciated thanks!
  15. I am trying to get ALL my pages on my site validated, however it is currently a little bit difficult, as I cannot find <br /> if you look... under http://validator.w3.org/check?uri=http%3A%2F%2Fwww.eaglelegend.com%2Fadopt.php&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=0&No200=1&verbose=1&st=1 any tips, help or advice?? much will be appreciated! Thanks, Mark
  16. Ok, I think I might know, its just im trying to have the site validated with HTML/XHTML site BUT it says certain "stuff" has to go infront :? EDIT: SORRY, thanks guys, I found out why, I didnt delete the old code from the page, you see I copied the "repaired code" and pasted it, and didnt delete the old code before saving it then uploading it! thanks all!
  17. thanks guys, but the new problem is that it sort of "duplicated" inside the code if you know what I mean, best to look at my site to see what I mean...
  18. Hello, im trying to change my PHP code to be validated, with help of the W3C validator, I have now got a parse error as reads below... Parse error: syntax error, unexpected T_VARIABLE in /misc/39/000/171/334/2/user/web/eaglelegend.com/index.php on line 42 here is the code... <? include("header.php"); ?> <h1>PLEASE NOTE</h1> <p><strong>This site is in it's development stage! Please be patient as it should be finished up shortly!</strong></p> <p>Welcome to Eagle Legend. From here you can create an account which will create your very own Virtual Pet.</p> <p>Click <a href="http://www.eaglelegend.com/register.php">here</a> to get started today!</p> <h2>Newest Adoptions</h2> <br> <table border="0" cellpadding="3" cellspacing="0" width="100%"> <tr> <? $sql = mysql_query("SELECT * FROM `pets` ORDER BY `id` DESC"); while($row = mysql_fetch_array($sql)) { extract($row); $x=$x+1; if($status <= 3) { $s = "Very Unhappy"; } if($status >= 3 && $status < 6) { $s = "Unhappy"; } if($status >= 6 && $status < 9) { $s = "Bored"; } if($status >= 9 && $status < 12) { $s = "Happy"; } if($status >= 12 && $status < 15) { $s = "Very Happy"; } if($status >= 15) { $s = "Very Happy and Playful!"; } print "<td width='33%' valign='top'> <table border=0 cellpadding=2 cellspacing=0 width=100%> <Tr> <Td valign=middle align=center><img src='/images/pets/$species.png' alt="$petName"></td> <td valign=top class=other width=100%>$user adopted a $species<br> Name: $petName<br>Status: $s<br>Born: $date<br>Points: $points</td> </tr> </table> </td>"; if($x%2==0) { print "</tr><Tr>"; } } print "</table>"; ?> <? include("footer.php"); ?> The website is avalible on my "profile" also here www.eaglelegend.com or if you would like to take your time and copy www.eaglelegend.com and paste it in your address bar! I have now solved that BUT it now I guess, "duplicates" it if you look at the site, I changed this code: <Td valign=middle align=center><img src='/images/pets/$species.png' alt="$petName"></td> to: <Td valign=middle align=center><img src='/images/pets/$species.png' alt='$petName'></td> any ideas?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.