
-
帝国教程
假设条件: 模型:news 文章ID=35 在模型管理增加相应3个字段,分别是:DayHits WeekHits MonthHits 这3个字段全部在主表,int类型字段 再增加 ConditionHits 字段,为文本型,同样在主表 注意大小...
85

-
帝国教程
复制以下完整代码到后台"JS调用登陆模版"就ok phpwind装在bbs目录,cms安在了根目录,红色部分因此做了修改 form name="login" method="post" action="bbs/login.php" input type="hidden" value="http://localhost/...
102

-
帝国教程
一、esub()截取字段函数 语法: esub(字符串,截取字数,后缀) 说明: 后缀为截取字符后附带内容,此参数可以省略。 使用范例: ?=esub('12345678',6)?,返回结果为:123456 ?=esub('12345678',6,'......
99

-
帝国教程
打开 e/data/template/loginiframetemp.txt 在 $r=$empire-fetch1("select ".$user_userid.",".$user_username.",".$user_group.",".$user_userfen.",".$user_money.",".$user_userdate.",".$user_havemsg.",".$user_checked." from ".$user_tablename." w...
144

-
帝国教程
修改系统文件 /e/admin/tool/ListAd.php 找到 input name="textfield" type="text" value="?=$public_r[newsurl]?d/js/acmsd/?=$public_r['adfile']??=$r[adid]?.js" size="70" 改为 input name="textfield" type="text" value="script src=?=$publ...
160

-
帝国教程
多表查询+多表标题链接的调用 [e:loop={ "select a.*,b.gsjc from phome_ecms_news a LEFT JOIN phome_ecms_gssj b on a.gsid=b.id where a.classid in (8)order by a.newstime desc limit 1",5,24,0}] 以上A为第一个表 B为第二个表...
177

-
帝国教程
?=$class_r[$GLOBALS[navclassid]]['bname']?...
199

-
帝国教程
原文件名为 测试下载.rar 上传后,自动更名为 测试下载_9df430c26057400fca4a07bec9db3b62.rar 上传以下图片: 修改方法 修改文件 /e/class/connect.php 查找 $r[filetype]=GetFiletype($file_name); 在下面加入...
137

-
帝国教程
function user_ago($tm,$rcs = 0) { $cur_tm = time(); $dif = $cur_tm-$tm; $pds = array('秒','分钟','小时','天','周','个月','年'); $lngh = array(1,60,3600,86400,604800,2630880,31570560); for($v = sizeof($lngh)-1; ($v = 0)(($no = $dif...
59

-
帝国教程
目录权限设置问题,e/data/fc目录权限分配读写权限,然后删除目录里的文件 如果删了之后还继续生成, 那么linux主机,目录权限设为777 WIN主机在访问用户权限的修改打钩...
80