Файл: Website/town_edit.php
Строк: 44
<?php
/*** Freedom City | Check RPGBUNNY.COM for more Full RPG Sources | www.rpgbunny.com ***/include "antet.php"; include "func.php";
if (isset($_SESSION["user"][0], $_GET["town"]))
{
$town=town($_GET["town"]); if ($town[1]!=$_SESSION["user"][0]) {header('Location: login.php'); die();}
}
else {header('Location: login.php'); die();}
?>
<html>
<?php echo "<link rel='stylesheet' type='text/css' href='".$imgs.$fimgs."default.css'>"; ?>
<head>
<title><?php echo $title; ?> - <?php echo $lang['townEdit'] ?></title>
</head>
<body class="q_body">
<link rel="stylesheet" type="text/css" href="layout/css/css/style.css"/>
<div align="left">
<table class="q_table">
<form name="form1" method="post" action="town_edit_.php?town=<?php echo $_GET["town"]; ?>">
<p><?php echo $lang['townName'] ?>: <br>
<input class='textbox' type="text" name="name" value="<?php echo $town[2]; ?>">
</p>
<p><?php echo $lang['description'] ?>: <br>
<textarea class='textbox' name="desc" cols="95" rows="5"><?php echo $town[14]; ?></textarea>
</p>
<p>
<input class='button' type="submit" name="button" value="<?php echo $lang['save'] ?>">
</p>
</form>
<p align="center"> </p>
</td>
</tr>
</table>
</div>
</body>
</html>