phpcms中$PHPCMS 数组
发布:smiling 来源: PHP粉丝网 添加日期:2014-07-08 13:29:23 浏览: 评论:0
1、用途
$PHPCMS 是一个一维数组,主要用来保存网站配置信息.
2、如何设置
您可以登录网站后台=>系统设置=>基本配置,然后在线修改参数值,您也可以通过修改 ./admin/templates/setting.tpl.php 增加表单项目来增加数组元素,数组信息序列化(serialize)后被保存到 phpcms_module 表的 setting 字段里,同时还产生一个数组缓存保存到 ./data/cache/common.php,每次请求系统都默认加载该缓存文件.
3、作用范围
$PHPCMS 数组是系统默认加载的,可以在整个项目的任何php文件和模板中调用。
4、数组元素
- $PHPCMS[sitename] = 'phpcms网站管理系统';
- $PHPCMS[siteurl] = 'http://localhost/2007/phpcms/';
- $PHPCMS[logo] = 'images/logo.gif';
- $PHPCMS[linklogo] = 'images/linklogo.gif';
- $PHPCMS[icpno] = '陕ICP备***号';
- $PHPCMS[bazscert] = 'cert/bazs.cert';
- $PHPCMS[seo_title] = 'phpcms网站管理系统';
- $PHPCMS[seo_keywords] = 'phpcms网站管理系统';
- $PHPCMS[seo_description] = 'phpcms网站管理系统';
- $PHPCMS[ishtml] = '1';
- $PHPCMS[index] = 'index';
- $PHPCMS[fileext] = 'html';
- $PHPCMS[webmasteremail] = 'master@domain.com';
- $PHPCMS[copyright] = 'phpcms网站管理系统';
- $PHPCMS[enableeditor] = '1';
- $PHPCMS[province] = '陕西省';
- $PHPCMS[city] = '西安市';
- $PHPCMS[area] = '莲湖区';
- $PHPCMS[uploaddir] = 'uploadfile';
- $PHPCMS[uploadfiletype] = 'gif|jpg|jpeg|png|bmp|txt|zip|rar|doc|swf';
- $PHPCMS[uploadfunctype] = '1';
- $PHPCMS[enablegzip] = '0';
- $PHPCMS[maxpage] = '100';
- $PHPCMS[pagesize] = '20';
- $PHPCMS[autoupdatepagenum] = '5';
- $PHPCMS[searchtime] = '10';
- $PHPCMS[maxsearchresults] = '500';
- $PHPCMS[searchperpage] = '10';
- $PHPCMS[searchcontent] = '1';
- $PHPCMS[authkey] = 'www.phpcms.cn';
- $PHPCMS[adminaccessip] = '';
- $PHPCMS[maxfailedtimes] = '5';
- $PHPCMS[maxlockedtime] = '1';
- $PHPCMS[enablebanip] = '0';
- $PHPCMS[enableadmincheckcode] = '0';
- $PHPCMS[enablethumb] = '1';
- $PHPCMS[thumb_width] = '150';
- $PHPCMS[thumb_height] = '150';
- $PHPCMS[water_type] = '2';
- $PHPCMS[water_text] = 'www.phpcms.cn';
- $PHPCMS[water_font] = 'include/fonts/simhei.ttf';
- $PHPCMS[water_fontsize] = '18';
- $PHPCMS[water_fontcolor] = '#ff0000';
- $PHPCMS[water_image] = 'images/watermark.gif';
- $PHPCMS[water_pos] = '9';
- $PHPCMS[sendmailtype] = 'smtp';
- $PHPCMS[smtphost] = 'smtp.163.com';
- $PHPCMS[smtpuser] = 'xxxxx@163.com';
- $PHPCMS[smtppass] = '********';
- $PHPCMS[smtpport] = '25';
- $PHPCMS[enablesignature] = '1';
- $PHPCMS[signature] = ' E-mail 签名';
- $PHPCMS[enableftp] = '0';
- $PHPCMS[ftphost] = '';
- $PHPCMS[ftpport] = '21';
- $PHPCMS[ftpuser] = '';
- $PHPCMS[ftppass] = '';
- $PHPCMS[ftpwebpath] = '';
- $PHPCMS[enablepassport] = '0';
- $PHPCMS[passport_file] = 'discuz';
- $PHPCMS[passport_charset] = 'gbk';
- $PHPCMS[passport_url] = 'http://bbs.phpcms.cn/api/passport.php';
- $PHPCMS[passport_key] = 'xxxxxxxxxxyyyyyyy';
- $PHPCMS[enableserverpassport] = '0';
- $PHPCMS[passport_serverurl] = '';
- $PHPCMS[passport_registerurl] = '';
- $PHPCMS[passport_loginurl] = '';
- $PHPCMS[passport_logouturl] = '';
- $PHPCMS[passport_getpasswordurl] = '';
- $PHPCMS[passport_serverkey] = '';
- $PHPCMS[passport_expire] = '';
- $PHPCMS[enabletm] = '0';
- $PHPCMS[qq] = '';
- $PHPCMS[msn] = '';
- $PHPCMS[skype] = '';
- $PHPCMS[taobao] = '';
- $PHPCMS[alibaba] = '';
- $PHPCMS[enable53kf] = '0';
- $PHPCMS[kf_arg] = '';
- $PHPCMS[kf_style] = '';
- $PHPCMS[version] = '2007'
Tags: phpcms $PHPCMS 数组
相关文章
- ·phpcms数据库操作(2013-11-15)
- ·phpcms的安装和卸载文件(2013-11-15)
- ·phpcms 模版源码分析(2013-11-15)
- ·phpcms更新首页(2013-11-15)
- ·PHPCMS 采集规则(2013-11-15)
- ·phpcms 仿站小结(2013-11-15)
- ·phpcms数据结构(2013-11-15)
- ·让PHPCms内容页支持JavaScript(2013-11-15)
- ·phpcms v9 二次开发记录(2014-01-09)
- ·phpcms v9 添加内容出现500错误(2014-01-09)
- ·PHPCMS v9修改默认后台登录地址(2014-01-09)
- ·phpcms v9搜索标题中含有的很多关键词都没有搜索结果?(2014-01-09)
- ·phpcms V9 在首页中调用友情链接分类(2014-01-09)
- ·Phpcms V9缩略图上传失败问题解决办法(2014-03-16)
- ·phpcms v9代码剖析一(2014-03-16)
- ·phpcmsv9 内容页调用{date('Y-m-d',time($inputtime))} 结果为1970-01-01. (2014-06-10)
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)