Open download.php and delete everything in it. Replace with the code below
Code:
<? require("config.php"); ?>
<title>Administrator</title>
<table width="393" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="394"> </td>
</tr>
<tr>
<td><div align="center">
<?
if (isset($_POST["edit_link_done"])){edit_link($_POST['link_name'],$_POST['link_address'],$_POST['link_description'],$_POST['link_id']);}
if (isset($_POST["delete_link"])){delete_link($_POST['link_id']);}
if (isset($_POST["add_new_link"])){add_new_link($_POST['link_name'],$_POST['link_address'],$_POST['link_description']);} ?>
</div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center">
<?php
if (isset($_POST["edit_link"]))
{$link_id = stripslashes($_POST['link_id']);
$link_id = clean_Var($link_id);
$get_edit_link = $db->Execute("Select link_name,link_address,link_description from MuWeb_links where link_id='$link_id'");
$get_edit_link_ = $get_edit_link->fetchrow();
echo ('<fieldset><legend>Edit Link</legend><table width="295" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="275" class="sort-table" scope="row"> Edit Link </th>
</tr>
</table>
<table width="295" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="291" scope="row"><form action="" method="post" name="new_link_form" id="new_link_form">
<table width="277" border="0" cellpadding="0" cellspacing="4">
<tr>
<td width="96" scope="row"><div align="right" class="text_administrator">Link Name</div></td>
<td width="169" scope="row"><input name="link_name" type="text" id="link_name" size="20" maxlength="100" value="'.$get_edit_link_[0].'"></td>
</tr>
<tr>
<td width="96" scope="row"><div align="right" class="text_administrator">Link Address</div></td>
<td scope="row"><input name="link_address" type="text" id="link_address" size="20" maxlength="100" value="'.$get_edit_link_[1].'">
<input name="edit_link_done" type="hidden" id="edit_link_done" value="edit_link_done">
<input name="link_id" type="hidden" id="link_id" value="'.$link_id.'">
</td>
</tr>
<tr>
<td width="96" scope="row"><div align="right" class="text_administrator">Description</div></td>
<td scope="row"><textarea name="link_description" id="link_description">'.$get_edit_link_[2].'</textarea></td>
</tr>
</table>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="4">
<tr>
<td width="111" scope="row"><div align="right">
<input type="submit" name="Submit" value="Edit Link" class="button">
</div></td>
<td width="77" scope="row"><div align="left">
<input type="reset" name="Reset" value="Reset" class="button">
</div></td>
</tr>
</table>
</form></th>
</tr>
</table></fieldset>
');
;}
else {
echo ('<fieldset><legend>New Link</legend><table width="295" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th class="sort-table" scope="row">New Link</th>
</tr>
</table>
<table width="295" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="291" scope="row"><form action="" method="post" name="new_link_form" id="new_link_form">
<table width="277" border="0" cellpadding="0" cellspacing="4">
<tr>
<td width="96" scope="row"><div align="right" class="text_administrator">Link Name</div></td>
<td width="169" scope="row"><input name="link_name" type="text" id="link_name" size="20" maxlength="100"></td>
</tr>
<tr>
<td width="96" scope="row"><div align="right" class="text_administrator">Link Address</div></td>
<td scope="row"><input name="link_address" type="text" id="link_address" size="20" maxlength="100">
<input name="add_new_link" type="hidden" id="add_new_link" value="add_new_link"></td>
</tr>
<tr>
<td width="96" scope="row"><div align="right" class="text_administrator">Description</div></td>
<td scope="row"><textarea name="link_description" id="link_description">Link Description</textarea></td>
</tr>
</table>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="4">
<tr>
<td width="111" scope="row"><div align="right">
<input type="submit" name="Submit" value="Add Link" class="button">
</div></td>
<td width="77" scope="row"><div align="left">
<input type="reset" name="Reset" value="Reset" class="button">
</div></td>
</tr>
</table>
</form></th>
</tr>
</table></fieldset>');
;}
?>
</div></td>
</tr>
</table>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td scope="row"><div align="center">
<? include_once("includes/links_manager.php"); ?>
</div></td>
</tr>
</table>