Просмотр файла time/index.php

Размер файла: 2.24Kb
<!DOCTYPE html PUBLIC "-//  W3C//DTD HTML 4.01 Transitional//EN">
 <html><head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <link rel="shortcut icon" href="favicon.ico">
 <title>Время</title>
 <link rel="stylesheet" href="style.css" type="text/css">
 </head><body>
    <div class="foot" align="center"><img src="img/logo.png" alt="logo"/></div>
    <div class=head><?php $data=date('d.m.Y - H:i:s'); echo''.$data.''; ?></div>

<?php
if($_GET['mode'] == '')
{
	echo'<div class="foot">';
	echo'<form action="?mode=kod" method="POST">';
	echo'<div class="foot">Цвет фона (RBG):<div class="foot"><input type="text" name="rbg1" size="2" maxlength="3"> - <input type="text" name="rbg2" size="2" maxlength="3"> - <input type="text" name="rbg3" size="2" maxlength="3"></div></div>';
	echo'<div class="foot">Цвет цифр (RBG):<div class="foot"><input type="text" name="rbg4" size="2" maxlength="3"> - <input type="text" name="rbg5" size="2" maxlength="3"> - <input type="text" name="rbg6" size="2" maxlength="3"></div></div>';
	echo'<div class="foot">Цвет тени (RBG):<div class="foot"><input type="text" name="rbg7" size="2" maxlength="3"> - <input type="text" name="rbg8" size="2" maxlength="3"> - <input type="text" name="rbg9" size="2" maxlength="3"></div></div>';
	echo'<div class="foot"><div class="foot"><input type="submit" value="Получить код"></div></div>';
	echo'</div>';
}
if($_GET['mode'] == 'kod')
{
	include'func.php';
	
	echo'<div class="foot" align="center">Ваш информер:<div class="foot"><img src="time.php?rbg1='.$rbg1.'&rbg2='.$rbg2.'&rbg3='.$rbg3.'&rbg4='.$rbg4.'&rbg5='.$rbg5.'&rbg6='.$rbg6.'&rbg7='.$rbg7.'&rbg8='.$rbg8.'&rbg9='.$rbg9.'"></div></div>';
	
	echo'<div class="foot">Скопируйте код:<div class="foot"><textarea cols="58" rows="5">http://wap.softlend.net/time/time.php?rbg1='.$rbg1.'&rbg2='.$rbg2.'&rbg3='.$rbg3.'&rbg4='.$rbg4.'&rbg5='.$rbg5.'&rbg6='.$rbg6.'&rbg7='.$rbg7.'&rbg8='.$rbg8.'&rbg9='.$rbg9.'</textarea></div></div>';
	
}
?>
<div class="foot2">
<?php list($msec,$sec)=explode(chr(32),microtime());  
echo '[ '; echo round(($msec),4).' &#1089;&#1077;&#1082;. '; echo ']'; ?>
</div><div class="head" align="center">[<a href="http://wap.softlend.net">&copy;</a>] softlend.net 2007-2008</div>
</body></html>