Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

解答:如何让二级域名填写之后不可修改

[复制链接]
茄子 发表于 2008-6-16 15:57:09 | 显示全部楼层 |阅读模式
打开cp_space.htm
找到

  1. <!--{if $_SCONFIG['allowdomain'] && $_SCONFIG['domainroot'] && $domainlength}-->
  2.   <table cellspacing="0" cellpadding="0" class="formtable">
  3.    <caption>
  4.     <h2>空间域名</h2>
  5.     <p>域名可使用最少 $domainlength 个英数字,最多 30 个英数字,且必须字母开头。</p>
  6.    </caption>
  7.    <tr>
  8.     <th width="100">空间域名</th>
  9.     <td>http://<input type="text" name="domain" value="$space[domain]" size="10" />.{$_SCONFIG[domainroot]}</td>
  10.    </tr>
  11.    <tr>
  12.     <th>&nbsp;</th>
  13.     <td><input type="submit" name="spacesubmit" value="修改空间名" class="submit" /></td>
  14.    </tr>
  15.   </table>
  16.   <!--{/if}-->

复制代码


修改为

  1.   <!--{if $space[domain]}-->
  2.   <table cellspacing="0" cellpadding="0" class="formtable">
  3.    <caption>
  4.     <h2>空间域名</h2>
  5.    </caption>
  6.    <tr>
  7.     <th width="100">您的域名</th>
  8.     <td>http://{$space[domain]}.{$_SCONFIG[domainroot]}</td>
  9.    </tr>
  10.    </table>
  11.   <!--{elseif $_SCONFIG['allowdomain'] && $_SCONFIG['domainroot'] && $domainlength}-->
  12.   <table cellspacing="0" cellpadding="0" class="formtable">
  13.    <caption>
  14.     <h2>空间域名</h2>
  15.     <p>域名可使用最少 $domainlength 个英数字,最多 30 个英数字,且必须字母开头。</p>
  16.    </caption>
  17.    <tr>
  18.     <th width="100">空间域名</th>
  19.     <td>http://<input type="text" name="domain" value="$space[domain]" size="10" />.{$_SCONFIG[domainroot]}</td>
  20.    </tr>
  21.    <tr>
  22.     <th>&nbsp;</th>
  23.     <td><input type="submit" name="spacesubmit" value="修改空间名" class="submit" /></td>
  24.    </tr>
  25.   </table>
  26.   <!--{/if}-->
复制代码

评分

1

查看全部评分

ted1006 发表于 2008-6-16 15:59:18 | 显示全部楼层
回复

使用道具 举报

花村 发表于 2008-6-16 17:09:26 | 显示全部楼层
支持!!!
回复

使用道具 举报

安笛 发表于 2008-6-16 17:10:59 | 显示全部楼层
回复

使用道具 举报

iqye 发表于 2008-6-16 18:27:39 | 显示全部楼层
回复

使用道具 举报

fy007 发表于 2008-6-16 21:36:59 | 显示全部楼层
  茄子好样的
回复

使用道具 举报

easyker 发表于 2008-6-17 12:43:38 | 显示全部楼层
回复

使用道具 举报

luring 发表于 2008-6-17 14:18:28 | 显示全部楼层
收藏
回复

使用道具 举报

club123456 发表于 2008-6-19 14:52:22 | 显示全部楼层
:) 谢谢分享哦.
回复

使用道具 举报

baminkon 发表于 2008-6-20 13:02:05 | 显示全部楼层
:victory谢谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-10-8 01:20 , Processed in 0.275884 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表