About us

About us

Affairs

Contact us

Services

Campus Network

Dormitory Network

ND Network Service

Wireless Network

Ineternet Services

Network Security

Network Abuse

Telephone System

Links

FAQ

Application Forms

Regulations

Welcome Notice to New Students

Visitors

NTHU students

global $INFO; echo "<a href=$INFO[my_twID]><img src=\"./lib/plugins/translation/flags/zh-tw.gif\" alt=\"zh-tw\" height=\"11\" /> 中文版</a>";

if (empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $myip = $_SERVER['REMOTE_ADDR']; } else { $myip = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); $myip = $myip[0]; } $myip = explode('.', $myip); // 2017/01/06 check NTHU IP if (($myip[0] == 140) && ($myip[1] == 114)) { $ip1 = $myip[0]; $ip2 = $myip[1]; $ip3 = $myip[2]; $ip4 = $myip[3]; } else if (($myip[0] == 120 ) && ($myip[1] == 127) && ( ($myip[2] > 159) && ($myip[2] > 192) ) ) { $ip1 = $myip[0]; $ip2 = $myip[1]; $ip3 = $myip[2]; $ip4 = $myip[3]; } else{ $ip1 = 140; $ip2 = 114; $ip3 = ''; $ip4 = ''; } print <<<EOF <div class="navbar-right"> <form action="https://service.net.nthu.edu.tw/cgi-bin/ipquery.pl" target="_blank" name="form1" id="form1" method="post" class="navbar-form navbar-left"> <input type="hidden" name="lang" value="en_US"> <table width="100%" border="1" bordercolor="#E6E6E6" cellspacing="0" cellpadding="0"> <tr align="right"> <td> <a href=/netsys/en:network:ipquery>IP/Network status query:</a> <input name="ip1" type="text" id="ip1" size="3" maxlength="3" value="$ip1" /> . <input name="ip2" type="text" id="ip2" size="3" maxlength="3" value="$ip2" /> . <input name="ip3" type="text" id="ip3" size="3" maxlength="3" value="$ip3" /> . <input name="ip4" type="text" id="ip4" size="3" maxlength="3" value="$ip4" /> &nbsp;&nbsp; <input type= "submit" name="submit" value="Query" src="<?php echo DOKU_TPL?>images/icon_submit.gif" alt="submit" align="bottom" /> </td> </tr> </table> </form> </div> EOF; global $INFO; $id = $INFO['id']; $title = p_get_first_heading($id); if ( $title == '' ) { $title = "網頁: $id"; } $post_title = urlencode("[請公告] $title"); // Only for user logining if ( $_SERVER['REMOTE_USER'] ) { print <<<EOF <ul class="nav navbar-nav dw-action-icon" id="dw__tools"> <li class="dropdown"> <a href="" class="dropdown-toggle" data-target="#" data-toggle="dropdown" title="" role="button" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-fw fa-gears"></i>特製工具<span class="hidden-lg hidden-md hidden-sm">工具</span> <span class="caret"></span> </a> <ul class="dropdown-menu tools" role="menu"> <li><a href="/2017/private:net:tools:mail?targetpage=$id" class="action edit" rel="nofollow" title="寄信給自己">寄信給自己</a></li> <li><a href="/2017/private:net:tools:mail?targetpage=$id&to=service@cc.nthu.edu.tw" class="action edit" rel="nofollow" title="二樓諮詢服務台信箱">寄給二樓諮詢服務台信箱(service@cc)</a></li> <li><a href="/2017/private:net:tools:mail?targetpage=$id&to=ptlin@cc.nthu.edu.tw,service@cc.nthu.edu.tw&subject=$post_title" class="action edit" rel="nofollow" title="發佈公告">發佈公告(ptlin@cc & service@cc)</a></li> <li><a href="./private:net:tools:mail2list?targetpage=$id" class="action edit" rel="nofollow" title="輸出成電子報">輸出成電子報(netsys@list)</a></li> <li><a href="/2017/private:net:tools:rsync2net" class="action profile" rel="nofollow" title="同步至 net 網站">同步網站資料至 net.nthu.edu.tw</a></li> <li><a href="/2017/recent" class="action edit" rel="nofollow" title="最近修改紀錄">最近修改紀錄</a></li> <!--- <li><a href="/cgi-bin/to_service.cgi?id=$id" class="action edit" rel="nofollow" title="寄信給二樓服務台">寄信給二樓服務台</a></li> <li><a href="/cgi-bin/to_ptlin.cgi?id=$id" class="action edit" rel="nofollow" title="寄信給平梓">寄信給平梓(發佈公告)</a></li> </li> <li><a href="/cgi-bin/spell.cgi?id=$id" class="action edit" rel="nofollow" title="中文拼字檢查">中文拼字檢查</a></li> ---> </ul> </li> </ul> EOF; }