<?php
require('../config.php');
mysql_connect("$host", "$username", "$password")or die("cannot connect to the database."); 
mysql_select_db("$db_name")or die("cannot select the database.");

$result = mysql_query("SELECT * FROM ".$prefix."settings WHERE id = 1");
while($row = mysql_fetch_array($result)) {
	$pagename = $row['pagename'];
	$template = $row['template'];
}
?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><?php echo $pagename; ?> - Admin Login</title>
<link href="../template/basic.css" rel="stylesheet" type="text/css" />
</head>

<body>

<form name="form1" method="post" action="include/checklogin.php">
<div align="center">
<table class="table" width="300" class="table">
	<tr class="table_header">
		<td colspan="2"><?php echo $pagename; ?> - Admin Login</td>
	</tr>
	<tr class="row1">
		<td>Username</td>
		<td><input name="username" type="text" id="username"></td>
	</tr>
	<tr class="row1">
		<td>Password</td>
		<td><input name="password" type="password" id="password"></td>
	</tr>
	<tr class="row1">
		<td>&nbsp;</td>
		<td><br><input type="submit" name="Submit" value="Admin Login"></td>
	</tr>
</table>
</div>
</form>

<p align="center"><br>Powered by <a href="http://www.friendsinwar.com" class="copyright">Maske or Break</a> © 2012 Friends in War</p>

</body>

</html>