Onbekend |
|
Kan iemand mij even uitleggen waar ik een registerscript kan plaatsen in mijn code en hoe ik die link aan een database ?
Alvast bedankt :-)
<!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">
<head>
<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[BE] MissedCue CS Clan</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<?php require_once("config.php"); ?>
</head>
<body>
<div id="container">
<div id="header"> </div>
<div id="navbar"><div id="navlink"><a href="index.php">Home</a></div><?php
$links = mysql_query("SELECT paginanaam,paginaid FROM paginas");
while($arr = mysql_fetch_assoc($links))
{
?>
<div id="navlink"><a href="?pagina=<?php echo $arr['paginaid']; ?>"><?php echo ucfirst(strtolower($arr['paginanaam'])); ?></a></div>
<?
}
$modules = mysql_query("SELECT * FROM modules");
while($arr = mysql_fetch_assoc($modules))
{
?>
<div id="navlink"><a href="?module=<?php echo $arr['moduleid']; ?>"><?php echo ucfirst(strtolower($arr['modulenaam'])); ?></a></div>
<?
}
?>
<div id="navlink"><a href="forum/">Forum</a></div>
</div>
<div>
<div align="left"><img src="images/line.jpg" width="950" alt="" /></div>
<div id="zij">Laatste nieuws
<p>
<?php
$nieuwslist = mysql_query("SELECT * FROM nieuws_items ORDER BY item_id DESC LIMIT 0,10");
while($arr = mysql_fetch_assoc($nieuwslist))
{
?>
<a href="?module=nieuws&item_id=<?php echo $arr['item_id']; ?>"><?php echo wordwrap($arr['naam'],20,"\n",1); ?></a><br />
<?
}
?>
</p>
</div>
<div id="contentcontainer">
<div id="content">
<div id="inhoud"><?php
if(isset($_GET['pagina']))
{
$page = mysql_query("SELECT inhoud FROM paginas WHERE paginaid='".$_GET['pagina']."' OR paginanaam='".$_GET['pagina']."'");
if(mysql_num_rows($page) ==1)
{
$result = mysql_result($page,0);
$output = wordwrap($result, 110 , "\n" , 1);
echo stripslashes($output);
}
else
{
echo "Error with loading this page .";
}
}
elseif(isset($_GET['module']))
{
$query = mysql_query("SELECT url FROM modules WHERE moduleid='".$_GET['module']."' OR modulenaam='".$_GET['module']."'");
$result = mysql_result($query,0);
if(file_exists($result))
{
include($result);
}
else
{
echo "File for this module doesn't excist anymore or never excisted !";
}
}
elseif(isset($_GET['admin']))
{
include("admin.php");
}
else
{
?>
<h4>Welcome at MissedCue.</h4>
<p>We are a belgian counter strike clan.<br />
Feel free to look around on the website.</p>
<?
}
?></div>
</div>
</div>
<div id="zij2"><h3>Sponsors</h3><span class="sponsors">
<p><h2>Timo Maas</h2>
Timo Maas is the maker of the whole website + the adminsystem etc. He will start soon with his own website where you can find more information about him and his work.
</p><p>Site was made to look with<br/><a href="http://www.getfirefox.com/" target="_blank"><img border="0" alt="This site gives the best result with FireFox!" title="This site gives the best result with FireFox!" src="http://sfx-images.mozilla.org/affiliates/Buttons/80x15/firefox_80x15.png" /></a></p></span>
</div>
</div>
<div id="under" align="center"><span class="copyright">©2006 MissedCue Belgian CounterStrike Clan, Design
by Timo Maas, All rights reserved! <a href="?admin">Admin</a></span></div>
</div>
</body>
</html>
<!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"> <head> <meta http-equiv="imagetoolbar" content="no" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>[BE] MissedCue CS Clan</title> <link href="style.css" rel="stylesheet" type="text/css" /> <?php require_once("config.php"); ?> </head> <body> <div id="container"> <div id="header"> </div> <div id="navbar"><div id="navlink"><a href="index.php">Home</a></div><?php $links = mysql_query("SELECT paginanaam,paginaid FROM paginas"); { ?> <div id="navlink"><a href="?pagina= <?php echo $arr['paginaid']; ?>"> <?php echo ucfirst(strtolower($arr['paginanaam'])); ?></a></div> <? } { ?> <div id="navlink"><a href="?module= <?php echo $arr['moduleid']; ?>"> <?php echo ucfirst(strtolower($arr['modulenaam'])); ?></a></div> <? } ?> <div id="navlink"><a href="forum/">Forum</a></div> </div> <div> <div align="left"><img src="images/line.jpg" width="950" alt="" /></div> <div id="zij">Laatste nieuws <p> <?php $nieuwslist = mysql_query("SELECT * FROM nieuws_items ORDER BY item_id DESC LIMIT 0,10"); { ?> <a href="?module=nieuws&item_id= <?php echo $arr['item_id']; ?>"> <?php echo wordwrap($arr['naam'],20,"\n",1); ?></a><br /> <? } ?> </p> </div> <div id="contentcontainer"> <div id="content"> <div id="inhoud"><?php if(isset($_GET['pagina'])) { $page = mysql_query("SELECT inhoud FROM paginas WHERE paginaid='".$_GET['pagina']."' OR paginanaam='".$_GET['pagina']."'"); { $output = wordwrap($result, 110 , "\n" , 1); } else { echo "Error with loading this page ."; } } elseif(isset($_GET['module'])) { $query = mysql_query("SELECT url FROM modules WHERE moduleid='".$_GET['module']."' OR modulenaam='".$_GET['module']."'"); { include($result); } else { echo "File for this module doesn't excist anymore or never excisted !"; } } elseif(isset($_GET['admin'])) { include("admin.php"); } else { ?> <h4>Welcome at MissedCue.</h4> <p>We are a belgian counter strike clan.<br /> Feel free to look around on the website.</p> <? } ?></div> </div> </div> <div id="zij2"><h3>Sponsors</h3><span class="sponsors"> <p><h2>Timo Maas</h2> Timo Maas is the maker of the whole website + the adminsystem etc. He will start soon with his own website where you can find more information about him and his work. </p><p>Site was made to look with<br/><a href="http://www.getfirefox.com/" target="_blank"><img border="0" alt="This site gives the best result with FireFox!" title="This site gives the best result with FireFox!" src="http://sfx-images.mozilla.org/affiliates/Buttons/80x15/firefox_80x15.png" /></a></p></span> </div> </div> <div id="under" align="center"><span class="copyright">©2006 MissedCue Belgian CounterStrike Clan, Design by Timo Maas, All rights reserved! <a href="?admin">Admin</a></span></div> </div> </body> </html>
|