怎样在系统中增加自定义功能页

发布时间:2025-08-04 点击:7
一、如果仅仅是增加个自定义页,不计较文件所在目录和名称,可以在后台增加专题,会自动在news/project/下增加目录和文件
二、如果要增加有特别功能的页面,可以自定义页面。会员功能页和非会员功能页的区别是:
1、会员功能页有securemember(); 调用这个函数时,访问页面时会判断是否登录,没有登录会跳转到login.php
2、会员功能页要包含member.inc.php
3、会员功能页pageset函数的第一个参数是member,否则是news (即模块名):
会员功能页程序样例:
define("rootpath", "../"); #定义文件相对路径,如程序在一级目录下就是../,如果在二级目录下就是../../ 依次类推
include(rootpath."includes/common.inc.php"); #包含函数库
include(rootpath."member/includes/member.inc.php"); #会员页面要包含member函数库
include("language/".$slan.".php"); #包含当前模块语言包
include("includes/news.inc.php"); #包含本模块函数库
securemember(); #会员身份验证
//定义模块名和页面名
pageset("member","mytest");
然后在_base_pageset数据表中插入一条记录
name varchar(50) asciicharsoundexlcaseucasepasswordold_passwordmd5sha1encryptcompressuncompresslast_insert_iduserconcat--------nowrandcountavgsumcurdatecurtimefrom_daysfrom_unixtimeperiod_addperiod_diffto_daysunix_timestampweekday coltype varchar(50) asciicharsoundexlcaseucasepasswordold_passwordmd5sha1encryptcompressuncompresslast_insert_iduserconcat--------nowrandcountavgsumcurdatecurtimefrom_daysfrom_unixtimeperiod_addperiod_diffto_daysunix_timestampweekday pagename varchar(50) asciicharsoundexlcaseucasepasswordold_passwordmd5sha1encryptcompressuncompresslast_insert_iduserconcat--------nowrandcountavgsumcurdatecurtimefrom_daysfrom_unixtimeperiod_addperiod_diffto_daysunix_timestampweekday
非会员功能页程序样例:
define("rootpath", "../");
include(rootpath."includes/common.inc.php");
include("language/".$slan.".php");
include("includes/news.inc.php");
//定义模块名和页面名
pageset("news","mytest");
然后在_base_pageset数据表中插入一条记录
name varchar(50) asciicharsoundexlcaseucasepasswordold_passwordmd5sha1encryptcompressuncompresslast_insert_iduserconcat--------nowrandcountavgsumcurdatecurtimefrom_daysfrom_unixtimeperiod_addperiod_diffto_daysunix_timestampweekday coltype varchar(50) asciicharsoundexlcaseucasepasswordold_passwordmd5sha1encryptcompressuncompresslast_insert_iduserconcat--------nowrandcountavgsumcurdatecurtimefrom_daysfrom_unixtimeperiod_addperiod_diffto_daysunix_timestampweekday pagename varchar(50) asciicharsoundexlcaseucasepasswordold_passwordmd5sha1encryptcompressuncompresslast_insert_iduserconcat--------nowrandcountavgsumcurdatecurtimefrom_daysfrom_unixtimeperiod_addperiod_diffto_daysunix_timestampweekday

北京网站建设之另类高端网站设计 单页成交型网站设计
企业网络推广要怎样获得更多收录?
金银首饰应该怎样进行网络营销
网页设计:如何协调网站内容美观
如何才能做好网络推广
人们认为您的网页设计是否很糟?
网页设计常见表现手法
旅游景区 (景点) 网站建设的建议