Location: PHPKode > projects > Admbook > admin/generate.php
<?php
	session_start();
	include("../settings-data.php");
?>
<html>
<head>
<title>admbook :: version <?=$constant['version']?></title>
<?php
	if ($constant['charset'] != "")
	{
?>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$constant['charset']?>"/>
<?php
	}
?>
<link href="../style.css" type="text/css" rel="stylesheet"/>
<style type="text/css">
<!--
input.field {
	width : 230px
}

input.button {
	width : 230px;
}

.text {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['text-color']?>
}

.link {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['link-color']?>
}

.messagetext {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['message-text-color']?>
}

.messagelink {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['message-link-color']?>
}

.admintext {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['admin-message-text-color']?>
}

.adminlink {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['admin-message-link-color']?>
}

.headertext {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['header-text-color']?>
}

.headerlink {
	font : 8pt "Verdana","Arial Cyr", "Arial","Tahoma","Helvetica", sans-serif;
	color : <?=$constant['header-link-color']?>
}
-->
</style>
</head>
<body bgcolor="<?=$constant['background-color']?>" text="<?=$constant['text-color']?>" link="<?=$constant['link-color']?>" vlink="<?=$constant['link-color']?>" alink="<?=$constant['link-color']?>" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<?php
	if ((!isset($admin)) || ($admin == "clear"))
		$admin = "";
	else
		$admin = md5($admin);

	if ((!isset($password)) || ($password == "clear"))
	{
		$password = "";
	}
	else
	{
		$password = md5($password);
	}
?>
<table width="760" border="0" cellpadding="0" cellspacing="0" align="center" height="100%">
<tr>
	<form action="generate.php" method="post">
	<td valign="top" height="1">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td bgcolor="<?=$constant['border-color']?>">
				<table width="100%" border="0" cellpadding="2" cellspacing="1">
				<tr>
					<td bgcolor="<?=$constant['header-background-color']?>" class="headertext" id="book-title">Admbook versi0n <?=$constant['version']?></td>
				</tr>
				</table>
			</td>
		</tr>
		</table>
		<br/>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td bgcolor="<?=$constant['border-color']?>">
				<table width="100%" border="0" cellpadding="2" cellspacing="1">
				<tr>
					<td bgcolor="<?=$constant['header-background-color']?>" class="headertext" align="center"><b>Generate md5 password</b></td>
				</tr>
				</table>
			</td>
		</tr>
		</table>
		<br/>
	</td>
</tr>
<tr>
	<td align="center">
		<table border="0" cellpadding="2" cellspacing="1" align="center">
		<tr>
			<td class="text">password: </td>
			<td><input type="password" size="25" name="password" value="" maxlength="30" class="field"/></td>
		</tr>
<?php
		if ($password != "")
		{
?>
		<tr>
			<td class="text">md5 password: </td>
			<td><input type="text" size="25" name="md5pass" value="<?=$password?>" maxlength="32" class="field"/></td>
		</tr>
<?php
		}
?>
		<tr>
			<td class="text">&nbsp;</td>
			<td><input type="submit" value="generate" class="button"/></td>
		</tr>
		<tr>
			<td	 class="text">&nbsp;</td>
			<td><input type="button" value="exit" class="button" onClick="javascript:location.href='../index.php'"/></td>
		</tr>
		</table>
	</td>
</tr>
<tr>
	<td valign="bottom" align="right" height="1">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="50%" bgcolor="<?=$constant['header-background-color']?>" class="headertext" align="center"><span class="text">&copy;&nbsp;</span>trent&nbsp;<a href="http://www.low.ru/dev/guestbook/" class="text" target="_top">Download this guestbook</a>&nbsp;</td>
			<td width="50%" bgcolor="<?=$constant['header-background-color']?>" class="headertext" align="center"><span class="text">&nbsp;&nbsp;&nbsp;</span><a href="http://www.mylov.ru" onclick="location.href='http://partner.mylov.ru/link.phtml?pid=10359084&lid=553';return false;" class="link" target="_top">Çíàêîìñòâà è îáùåíèå</a>&nbsp;</td>
		</tr>
		</table>
	</td>
</tr>
</table>
</body>
</html>
Return current item: Admbook