摘要:
<?php function getCache($key) { $cacheFile = 'cache/' . md5($key) . '.json'; // 使用 md5 生成唯一的文件名 if (file_exists($cacheFile)) { $data = json_decode(fil 阅读全文
摘要:
1、登陆点击刷新验证码代码示例 <input name="key" type="text" size="10" /> <img src="/e/ShowKey/?v=login" align="absmiddle" onClick="this.src='/e/ShowKey/?v=login&'+M 阅读全文
摘要:
此方式使用于静态生成模式 首页 \e\class\functions.php找到function NewsBq函数 底部添加 $string =compressHtml($string); 栏目页搜索 // 生成区 //取得列表模板 function GetListTemp($tempid){ gl 阅读全文
摘要:
"select a.userid,a.username,a.registertime,b.uccode,b.userid from phome_enewsmember a LEFT JOIN phome_enewsmemberadd b ON a.userid=b.userid WHERE b.uc 阅读全文
摘要:
1、\e\admin\AddClass.php找到模块大概在1212行 <tr bgcolor="#FFFFFF"> <td height="25">内容页文件命名形式</td> <td>[前缀] <input name="filename_qz" type="text" id="filename_ 阅读全文
摘要:
1、打开\e\config\config.php文件 $ecms_config['sets']['webdebug']=0; //是否显示PHP错误提示(0为不显示,1为显示) 阅读全文
摘要:
function ReturnYhAndSql($yhadd,$where,$ecms=0){ if($yhadd.$where=='') { return ''; } elseif($yhadd&&$where) { return $ecms==1?' where '.$yhadd.$where: 阅读全文
摘要:
读取单条数据库记录函数 $r=$empire->fetch1("select * from {$dbtbpre}ecms_news where id=1"); echo"标题:".$r['title']; 循环读取数据库记录函数 $sql=$empire->query("select * from 阅读全文
摘要:
信息页,根据Sinfo调用相关信息 代码一:多个sinfo分开调用其子信息 <?php $ctsql=$empire->query("select * from {$dbtbpre}dptag_sinfo where classid='$navinfor[classid]' and id='$nav 阅读全文
摘要:
1、调取信息所属Sinfo的函数:user_ReturnSinfo 语法: user_ReturnSinfo($id,$classid,$limit=10,$exp="| ",$where='',$where2='') 说明: $id:当前信息ID $classid:当前信息CLASSID $lim 阅读全文