Jump to content

Recommended Posts

Still the same errors D:  :o

 

Index:

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 

<head>
<title>DivnX :: Home</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/divStyle.css" />
<script src="javascript/navigation.js" type="text/javascript"></script>
</head>

<body>

<div id="gradient">
      <div id="main">
             <div id="banner">
                  <img src="images/Header.png" alt="DivnX" />
             </div>
             <div id="logon">
                  <?php include("includes/Login.php"); ?>
             </div>
      </div>
</div>

<div id="content">
      <div id="nav">

<ul id="menu" style="text-align: center">
                  <li>Site
                        <ul>
                            <li><a href="index.php?page=Home">News</a></li>
                            <li><a href="index.php?page=Site_Map">Site Map</a></li>
                            <li><a href="board/index.php">Forums</a></li>
                            <li><a href="index.php?page=Members">Members</a></li>
                        </ul>
                  </li>

                  <li>Guides
                        <ul>
	<li><a href="index.php?page=C++">C++</a></li>
	<li><a href="index.php?page=Java">Java</a></li>
	<li><a href="index.php?page=PHP">PHP</a></li>
	<li><a href="index.php?page=CSS">CSS</a></li>
	<li><a href="index.php?page=HTML">HTML</a></li>
          </ul>
                  </li>

                  <li>Games
                        <ul>
	<li><a href="index.php?page=Games">Coming Soon!</a></li>
          </ul>
                  </li>

                  <li>Account
                        <ul>
	<li><a href="index.php?page=Settings">Settings</a></li>
	<li><a href="index.php?page=Stuff">My Stuff</a></li>
	<li><a href="index.php?page=Profile">Profile</a></li>
          </ul>
                  </li>

                  <li>Support
                        <ul>
	<li><a href="index.php?page=Contact">Contact Us</a></li>
	<li><a href="index.php?page=FAQ">FAQ</a></li>
	<li><a href="index.php?page=Staff">Staff</a></li>
	<li><a href="index.php?page=Donate">Donate!</a></li>
          </ul>
                  </li>
</ul>

      </div>

      <div id="stuff">
            <?php include("includes/Page.php"); ?>
      </div>

</div>

</body>
</html>

 

Page:

<?php

$page_name = $_GET['page'];

if(!$page_name) { 
include("/index.php");
}
elseif($page_name == 'Register') { 
include("/create.php");
}
elseif($page_name == 'Site_Map') {
include("/map.php");
}
elseif($page_name == 'Members') {
include("/members.php");
}
elseif($page_name == 'C++') {
include("/guides/c++.php");
}
elseif($page_name == 'Java') {
include("/guides/java.php");
}
elseif($page_name == 'PHP') {
include("/guides/php.php");
}
elseif($page_name == 'CSS') {
include("/guides/css.php");
}
elseif($page_name == 'HTML') {
include("/guides/html.php");
}
elseif($page_name == 'Games') {
include("/games.php");
}
elseif($page_name == 'Settings') {
include("/account/settings.php");
}
elseif($page_name == 'Stuff') {
include("/account/stuff.php");
}
elseif($page_name == 'Profile') {
include("/account/profile.php");
}
elseif($page_name == 'Contact') {
include("/support/contact.php");
}
elseif($page_name == 'FAQ') {
include("/support/faq.php");
}
elseif($page_name == 'Staff') {
include("/support/staff.php");
}
elseif($page_name == 'Donate') {
include("/support/donate.php");
}
else {
echo "404 Not Found!";
}

?>

 

:o

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 

<head>
<title>DivnX :: Home</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/divStyle.css" />
<script src="javascript/navigation.js" type="text/javascript"></script>
</head>

<body>

<div id="gradient">
      <div id="main">
             <div id="banner">
                  <img src="images/Header.png" alt="DivnX" />
             </div>
             <div id="logon">
                  <?php include("includes/Login.php"); ?>
             </div>
      </div>
</div>

<div id="content">
      <div id="nav">

<ul id="menu" style="text-align: center">
                  <li>Site
                        <ul>
                            <li><a href="index.php?page=Home">News</a></li>
                            <li><a href="index.php?page=Site_Map">Site Map</a></li>
                            <li><a href="board/index.php">Forums</a></li>
                            <li><a href="index.php?page=Members">Members</a></li>
                        </ul>
                  </li>

                  <li>Guides
                        <ul>
	<li><a href="index.php?page=C++">C++</a></li>
	<li><a href="index.php?page=Java">Java</a></li>
	<li><a href="index.php?page=PHP">PHP</a></li>
	<li><a href="index.php?page=CSS">CSS</a></li>
	<li><a href="index.php?page=HTML">HTML</a></li>
          </ul>
                  </li>

                  <li>Games
                        <ul>
	<li><a href="index.php?page=Games">Coming Soon!</a></li>
          </ul>
                  </li>

                  <li>Account
                        <ul>
	<li><a href="index.php?page=Settings">Settings</a></li>
	<li><a href="index.php?page=Stuff">My Stuff</a></li>
	<li><a href="index.php?page=Profile">Profile</a></li>
          </ul>
                  </li>

                  <li>Support
                        <ul>
	<li><a href="index.php?page=Contact">Contact Us</a></li>
	<li><a href="index.php?page=FAQ">FAQ</a></li>
	<li><a href="index.php?page=Staff">Staff</a></li>
	<li><a href="index.php?page=Donate">Donate!</a></li>
          </ul>
                  </li>
</ul>

      </div>

      <div id="stuff">
            <?php

$page_name = $_GET['page'];

if(!$page_name) { 
include("/index.php");
}
elseif($page_name == 'Register') { 
include("/create.php");
}
elseif($page_name == 'Site_Map') {
include("/map.php");
}
elseif($page_name == 'Members') {
include("/members.php");
}
elseif($page_name == 'C++') {
include("/guides/c++.php");
}
elseif($page_name == 'Java') {
include("/guides/java.php");
}
elseif($page_name == 'PHP') {
include("/guides/php.php");
}
elseif($page_name == 'CSS') {
include("/guides/css.php");
}
elseif($page_name == 'HTML') {
include("/guides/html.php");
}
elseif($page_name == 'Games') {
include("/games.php");
}
elseif($page_name == 'Settings') {
include("/account/settings.php");
}
elseif($page_name == 'Stuff') {
include("/account/stuff.php");
}
elseif($page_name == 'Profile') {
include("/account/profile.php");
}
elseif($page_name == 'Contact') {
include("/support/contact.php");
}
elseif($page_name == 'FAQ') {
include("/support/faq.php");
}
elseif($page_name == 'Staff') {
include("/support/staff.php");
}
elseif($page_name == 'Donate') {
include("/support/donate.php");
}
else {
echo "404 Not Found!";
}

?>
      </div>

</div>

</body>
</html>

It seems, I needed to add a period in front of the links: "./account/settngs.php" Of course it brings up an error saying that the file don't exists. So I created a dummy news page saying hello and it showed up. So it saying 404 not found isn't really a problem if I add the pages.

 

Unless you could think of something o.O

 

Thanks For all your help everyone.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.