Author Topic: Add a simple DNS service for intranet  (Read 8737 times)

0 Members and 1 Guest are viewing this topic.

Offline zhenhai

  • Occasional poster
  • *
  • Posts: 7
    • View Profile
Add a simple DNS service for intranet
« on: May 17, 2009, 02:58:28 AM »
[mydns]
{{if|{{?name}}|{{\
{{append|weburl.txt|  <a target='bank' href="{{?weburl}}" title="{{?memo}}">{{?name}}</a>./append}}/}}/if}}
<form name=frm>
<p>本模块功能相当于为内部网络系统提供了一个简易的DNS地址解析服务/this module is A simple DNS service
<p>请输入你要推荐的网站(或自己的)链接地址/Input your web link
<p>内网最好是IP防止域名解析失败,网站说明要简洁明了,不夸大其词。
<p>如果允许https方式访问请在备注中说明
<p>网站名称/web name:<input name=name size=40 value="">
<p>网站链接/web link:<input name=weburl size=60 value="http://">
<p>该网站的简单说明和备注/memo:
<p><TEXTAREA name=memo ROWS="6" COLS="40"></TEXTAREA>
<p><input type=submit value="添加网站链接/Add a web link" >
</form>
<script>document.frm.name.focus();</script>
<br>{{load|weburl.txt}}

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1891
    • View Profile
Re: Add a simple DNS service for intranet
« Reply #1 on: May 17, 2009, 09:25:11 AM »
This is an old syntax of the templates the syntax of which is not any more born by the build last one

You should edit directly your weburl.txt file, it would be faster than to pass by a html form. ;)
« Last Edit: May 17, 2009, 09:34:41 AM by mars »

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: Add a simple DNS service for intranet
« Reply #2 on: May 17, 2009, 05:04:37 PM »
replace {{ and }}
with {. and .}

replace {{\ and /}}
with {: and :}