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

Размер файла: 1.69Kb
<?php
list($msec,$sec)=explode(chr(32),microtime());
$headtime=$sec+$msec;
header("Content-type: text/html; charset=utf-8");
Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Header("Cache-Control: no-cache, must-revalidate");
Header("Pragma: no-cache");
Header("Last-Modified: ".gmdate("D, d M Y H:i:s")."GMT");
$f=file("sms_send.txt");
$count=count($f);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="style.css">
<title>SMS-BWC</title>
</head><body topmargin="0" leftmargin="0">
<small>
<div class="logo">
<center><b>SMS-Центр</b><br>
<img src="bwc_1.png" alt=""><br>
******</center></div>
<div class="form">
<center><b>Время: <span style="color: #ff0000">'.date("H:i:s",time()+18000).'</span></b></center>
<form action="send.php" method="post">
Номер абонента: (10)<br>
<input type="text" name="nomer"  maxlength="11" value="7" format="*N"><br>
Сообщение: (170)<br>
<input type="text" name="msg"  maxlength="170"><br>
Подпись: (10)<br>
<input type="text" name="nick"  maxlength="10"><br>
<br>
<input type="hidden" name="operator" value="@sms.bwc.ru">
<input type="hidden" name="ot_kogo" value="SMS от:">
<input type="submit" value="Отправить">
</form>
Написано: '.$count.' смс</div>
<div class="logo">
&#187; <a href="http://'.$_SERVER['HTTP_HOST'].'">На главную</a><br>
<center>******<br>
<b>&copy; Усть-Илимск</b><br>';
list($msec,$sec)=explode(chr(32),microtime());
echo round(($sec+$msec)-$headtime,4).' sec</center></div>
</small>
</body></html>';
?>