Ok guys i been working with my site and i've run into a snag I changed my Registration page and then went perfect, but when i goto the little downloads section i have it doesnt work, It just goes to the registration page. I changed the files and when i change back it works so I know which file does it. Ill post the codes
Before Change:
Code:
<?php
require_once("header.php");
?>
<td id="page2">
<?php
if ( $_GET['name'] ) {
//check for file itself
if (!@file_exists('./modules/'.pun_htmlspecialchars($_GET['name']).'.php'))
{
print " 404 - Sorry, page not found.";
}
else
{
if (pun_htmlspecialchars($_GET['name'])=='donate_success')
{
print " 404 - Sorry, page not found.";
}
else
{
include "./modules/".pun_htmlspecialchars($_GET['name']).".php";
}
}
}
else
{ print "<center><br>No Quests...</center>";}
?>
</td>
<?php
require_once("footer.php");
?>
Broken after Change:
Code:
<?php
/*
SPORA (Simple Page Of Registration of Accounts) for Ascent V1.5
Simple Account Signup and Status Page
Original creation by mirage666 for MaNGOS
Modified by Kandyman for Ascent
Modified again by ravenger
*/
include("includes/config.php");
include("includes/include.php");
?>
<html>
<head>
<title><?php echo $title ?></title>
<link id=bnetstyle type=text/css rel=stylesheet href="style.css">
<script type="text/javascript" src="js/script.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name=login_form method=post>
<div id="bg"><img src="<?php echo $img_base ?>backgrounds/<?php echo $bg ?>" width="640" height="480"></div>
<div id="cont">
<?php echo $cont ?>
</div>
<div id="list">
<center><a class="title"><?php echo $title ?></a></center><br>
<table width="100%" border="0">
<tr>
<td align="left" width=50></td>
<td align="left" width=60><a href="<?php echo $link.'0">'.$text['char'][0] ?></a></td>
<td align="center" width=40><a href="<?php echo $link.'1">'.$text['char'][1] ?></a></td>
<td align="center" width=40><a href="<?php echo $link.'2">'.$text['char'][2] ?></a></td>
<td align="center" width=40><a href="<?php echo $link.'3">'.$text['char'][3] ?></a></td>
<td align="left" width=100><a href="<?php echo $link.'4">'.$text['char'][4] ?></a></td>
</tr>
<?php echo $list ?>
</table>
</div>
</form>
</body>
</html>
If you need more info tell me.