帝国CMS数据库配置文件是哪个文件?

所属分类: CMS教程 / 帝国cms 阅读数: 1820
收藏 0 赞 0 分享
帝国CMS数据库配置文件e/class/config.php,对于帝国7.0以后的版本,数据库路径就是 e/config/config.php
一、变量列表
表单提交地址:/e/enews/index.php
classid:[!--classid--]
id:[!--id--]
enews:AddPl
repid:0
username:用户名输入框
password:密码输入框
key:验证码输入框
显示验证码:<img src=”/e/ShowKey?ecms”>
nomember:匿名发表
saytext:评论内容
二、表单范例

复制代码
代码如下:

<script>
function CheckPl(obj)
{
if(obj.saytext.value==”")
{
alert(“您没什么话要说吗?”);
obj.saytext.focus();
return false;
}
return true;
}
</script>
<table width=”98%” border=”0″ align=”center” cellpadding=”3″ cellspacing=”1″ id=saypl>
<form name=saypl method=POST action=”/e/enews/index.php” onsubmit=”return CheckPl(document.saypl)”>
<tr>
<td height=”25″ bgcolor=”#FFFFFF”> <div align=”center”>
<table width=”100%” border=”0″ cellspacing=”1″ cellpadding=”3″>
<tr>
<td width=”56%”>用户名:
<input name=”username” type=”text” id=”username” size=”12″></td>
<td width=”44%”>密码:
<input name=”password” type=”password” id=”password” size=”12″></td>
</tr>
<tr>
<td>验证码:
<input name=”key” type=”text” id=”key” size=”6″>
<img src=”/e/ShowKey?ecms”> </td>
<td><input name=”nomember” type=”checkbox” id=”nomember” value=”1″>
匿名发表</td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height=”25″ bgcolor=”#FFFFFF”> <div align=”center”>
<textarea name=”saytext” cols=”56″ rows=”6″ id=”saytext”></textarea>
</div></td>
</tr>
<tr>
<td height=”25″ bgcolor=”#FFFFFF”> <div align=”center”>
<input name=”imageField” type=”image” src=”/e/data/images/postpl.gif” border=”0″>
<input name=”id” type=”hidden” value=”[!--id--]“>
<input name=”classid” type=”hidden” value=”[!--classid--]“>
<input name=”enews” type=”hidden” id=”enews” value=”AddPl”>
<input name=”repid
” type=”hidden” id=”repid” value=”0″>
</div></td>
</tr>
</form>
</table>
更多精彩内容其他人还在看

帝国CMS二次开发注意事项

由于帝国CMS没插件API,所以在做帝国CMS二次开发的时候特别容易出现系统升级,文件管理混乱等麻烦,trylife总结出一些帝国CMS二次开发注意事项与大家分享下
收藏 0 赞 0 分享

帝国CMS提示parse error syntax error的解决方法

这篇文章主要为大家介绍了帝国CMS提示parse error syntax error的解决方法,需要的朋友可以参考下
收藏 0 赞 0 分享

让帝国CMS留言板支持调用标签的方法

这篇文章主要为大家介绍了让帝国CMS留言板支持调用标签的方法,需要的朋友可以参考下
收藏 0 赞 0 分享

帝国CMS在反馈信息页面调用万能标签的方法

这篇文章主要为大家介绍了帝国CMS在反馈信息页面调用万能标签的方法,需要的朋友可以参考下
收藏 0 赞 0 分享

帝国cms截图出现黑边的解决方法

这篇文章主要为大家介绍了帝国cms截图出现黑边的解决方法,需要的朋友可以参考下
收藏 0 赞 0 分享

帝国cms网站优化使tags伪静态的实现

这篇文章主要为大家介绍了帝国cms网站优化使tags伪静态的实现,需要的朋友可以参考下
收藏 0 赞 0 分享

帝国CMS7.0万能标签SQL调用注意事项

这篇文章主要为大家介绍了帝国CMS7.0万能标签SQL调用注意事项,对于用惯了之前6.6版本的用户尤其需要注意,需要的朋友可以参考下
收藏 0 赞 0 分享

帝国CMS上传附件命名实现以原文件名命名的方法

这篇文章主要为大家介绍了帝国CMS上传附件命名实现以原文件名命名的方法,需要的朋友可以参考下
收藏 0 赞 0 分享

帝国cms里 栏目列表模板获取同级栏目的方法

这篇文章主要为大家分享下帝国cms栏目列表模板获取同级栏目的方法,需要的朋友可以参考下
收藏 0 赞 0 分享

帝国cms 7.0 调用本信息所属专题,专题带链接

帝国cms在7.0 以前 调用本信息所属专题,系统本身是没有这样的功能,需要自己写插件或者代码
收藏 0 赞 0 分享
查看更多