
phpcms2008
ivinkoo
这个作者很懒,什么都没留下…
展开
-
phpcms2008模块开发目录文件分析
1、模块目录说明。 install 模块安装目录,安装模块时调用 uninstall 模块卸载目录,卸载模块时调用 admin 模块的后台管理目录 api 个人空间添加的应用API接口 include 引用文件目录2、各相关文件说明a、模块安装文件说明(install目录下)模块安装时按顺序执行config.inc.php、mysql.sql、extention.inc转载 2009-03-05 13:25:00 · 1367 阅读 · 0 评论 -
PHPCMS2008源码浅析-cache.func.php PHPCMS20008二次开发
function cache_all(){@set_time_limit(600);cache_common();cache_module();cache_model();cache_category();cache_area();cache_type();cache_member_group(); cache_role();cache_author();cache_keyword();ca转载 2009-03-05 13:30:00 · 1771 阅读 · 0 评论 -
PHPCMS2008源码浅析-模板原理分析 PHPCMS20008二次开发
PHPCMS2008模版原理篇一、config.inc.php 里面关于模版的相关配置变量//模板相关配置define(TPL_ROOT, PHPCMS_ROOT.templates/); //模板保存物理路径define(TPL_NAME, default); //当前模板方案目录define(TPL_CSS, default); //当前样式目录define(转载 2009-03-05 13:27:00 · 1612 阅读 · 0 评论 -
phpcms2008改英文验证码为中文验证码
一个是checkcode.php,直接拿下载下来的包中的文件覆盖就行了另一个是include目录下的form.class.php,这里最好手工更改,因为phpcms最近经常更新,谁也不能保证是最新版本的,所以,最好手工改咯因为默认的form.class.php不让输中文,改一下function checkcode($name = ‘checkcode’, $size = 4, $ex转载 2009-03-05 13:20:00 · 1085 阅读 · 0 评论 -
PHPCMS2008源码浅析-common.inc.php PHPCMS20008二次开发
define(PHPCMS_ROOT, str_replace("//", /, substr(dirname(__FILE__), 0, -7))); //定义根目录define(MICROTIME_START, microtime()); //设置起始时间define(IN_PHPCMS, TRUE); //网站入口判断变量define(MAGIC_QUOTES_GPC转载 2009-03-05 13:29:00 · 2110 阅读 · 2 评论 -
PHPCMS2008源码浅析-Cache原理分析 PHPCMS20008二次开发
a.页面缓存,在后台 网站配置-》性能优化中,配置了启用PHP页面缓存if(CACHE_PAGE && !defined(IN_ADMIN)) cache_page_start(); //看是否调用页面缓存global.func.php 有如下函数function cache_page_start(){define(CACHE_PAGE_ID, md5(RELATE_URL))转载 2009-03-05 13:28:00 · 1384 阅读 · 0 评论 -
PHPCMS2008添加随机文章标签,让文章随机排序
1、修改module/article/include/tag.func.php文件(1)找到 复制内容到剪贴板代码:$ordertypes = array(listorder DESC, articleid DESC, edittime DESC, edittime ASC, hits DESC, hits ASC, comments DESC, commen转载 2009-03-05 13:23:00 · 950 阅读 · 0 评论 -
发几个常用的phpcms2008 get标签示例
总点击排行:{get sql="SELECT c.contentid,c.catid,c.typeid,c.areaid,c.title,c.style,c.thumb,c.keywords,c.description,c.userid,c.updatetime,c.inputtime,c.url,n.hits FROM `phpcms_content` c,`phpcms_content_cou转载 2009-03-05 13:19:00 · 1225 阅读 · 1 评论 -
PHPCMS2008源码浅析-index.php PHPCMS20008二次开发
require dirname(__FILE__)./include/common.inc.php; //加载公共函数$head[title] = $PHPCMS[sitename]; //调用公共变量站名$head[keywords] = $PHPCMS[meta_keywords]; //调用公共变量设置的关键字$head[de转载 2009-03-05 13:29:00 · 2364 阅读 · 0 评论