<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>绿叶办公</title>
<style>
*{margin:0;padding:0;color:#444}
body{font-size:14px;font-family:"宋体"}
.main{width:600px;margin:10% auto;}
.title{background: #20a53a;color: #fff;font-size: 16px;height: 40px;line-height: 40px;padding-left: 20px;}
.content{background-color:#f3f7f9; height:400px;border:1px dashed #c6d9b6;padding:20px}
.t1{border-bottom: 1px dashed #c6d9b6;color: #ff4000;font-weight: bold; margin: 0 0 20px; padding-bottom: 18px;}
.t2{margin-bottom:8px; font-weight:bold}
ol{margin:0 0 20px 22px;padding:0;}
ol li{line-height:30px}
</style>
</head>
<body>
<div class="main">
<div class="title">小绿叶技术博客办公站点</div>
<div class="content">
<p class="t1">work.eisc.cn</p>
<p class="t2">提示:</p>
<ol>
<li>Hello, please dial the extension number directly and press the # key to finish</li>
<br />
</ol>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
请输入分机号码: <input type="text" name="fname">
<input type="submit">
</form>
<?php
// ------------- 时间函数 ----------------------
function get_time($server){
date_default_timezone_set('Asia/Shanghai');//解决差8小时问题
$data = "HEAD / HTTP/1.1\r\n";
$data .= "Host: $server\r\n";
$data .= "Connection: Close\r\n\r\n";
$fp = fsockopen($server, 80);
fputs($fp, $data);
$resp = '';
while ($fp && !feof($fp))
$resp .= fread($fp, 1024);
preg_match('/^Date: (.*)$/mi',$resp,$matches);
return strtotime($matches[1]);
}
echo date('Y-m-d H:i:s',get_time("www.tudou.com"));
echo "<br />";
// -------------------------------------------------
$name = $_REQUEST['fname'];
$urlt="http://work.eisc.cn/$name";
echo "您呼叫的分机为:" . $name;
echo "</br >";
echo "请输入分机号码并点击提交按钮,等待6秒钟,自动为您呼叫转接!";
header("Refresh:6;url=$urlt") //6秒自动转跳
?>
<br /><br /><br />
<p class="t2">为您展示以下分机:</p>
<ol>
<li><a href="http://www.eisc.cn">www.eisc.cn</a></li>
<li><a href="http://work.eisc.cn">work.eisc.cn</a></li>
<li><a href="http://work.eisc.cn/ruanjian">软件</a></li>
<li><a href="http://sou.eisc.cn">sou.eisc.cn</a></li>
</ol>
</div>
</div>
</body>
</html>
Powered by ddoss.cn 12.0
©2015 - 2025 ddoss
渝公网安备50011302222260号
渝ICP备2024035333号
【实验平台安全承诺书】
小绿叶技术社区,优化网络中,点击查看配置信息
主机监控系统: 安全防火墙已开启检查cc攻击-下载文件完成后等待10s 恢复访问,检查连接数低于峰值恢复访问
您的IP:216.73.216.110,2025-12-01 15:19:28,Processed in 0.01873 second(s).