收藏文章 楼主

小绿叶技术博客办公站点源码分享

版块:网站建设   类型:普通   作者:小绿叶技术博客   查看:1894   回复:0   获赞:0   时间:2020-01-14 09:45:40

<!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>


提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:小绿叶技术博客办公站点源码分享

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息