rejetto forum

Add a simple DNS service for intranet

zhenhai · 3 · 17421

0 Members and 1 Guest are viewing this topic.

Offline zhenhai

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
[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: 2063
    • View Profile
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: 13523
    • View Profile
replace {{ and }}
with {. and .}

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