function EditMemberConnect($add, $userid, $username) { global $empire, $dbtbpre; $add[id] = (int) $add[id]; if (empty($add[appname]) || !$add[id]) { printerror("EmptyMemberConnect", "history.go(-1)"); } $add[isclose] = (int) $add[isclose]; $add[myorder] = (int) $add[myorder]; $add[appname] = eaddslashes(ehtmlspecialchars($add[appname])); $add[appid] = eaddslashes($add[appid]); $add[appkey] = eaddslashes($add[appkey]); $add[qappname] = eaddslashes($add[qappname]); $add[appsay] = eaddslashes($add[appsay]); $sql = $empire->query("update {$dbtbpre}enewsmember_connect_app set appname='{$add['appname']}',appid='{$add['appid']}',appkey='{$add['appkey']}',isclose='{$add['isclose']}',myorder='{$add['myorder']}',qappname='{$add['qappname']}',appsay='{$add['appsay']}' where id='{$add['id']}'"); $appr = $empire->fetch1("select apptype from {$dbtbpre}enewsmember_connect_app where id='{$add['id']}'"); if ($sql) { GetConfig(); //操作日志 insert_dolog("id=" . $add[id] . "&apptype=" . $appr[apptype] . "<br>appname=" . $add[appname]); printerror("EditMemberConnectSuccess", "MemberConnect.php" . hReturnEcmsHashStrHref2(1)); } else { printerror("DbError", "history.go(-1)"); } }
function DoPostInfoTypeVar($add){ if(empty($add['ttype'])) { $add['ttype']='.html'; } $add['tname']=eaddslashes(ehtmlspecialchars($add['tname'])); $add['mid']=(int)$add['mid']; $add['myorder']=(int)$add['myorder']; $add['yhid']=(int)$add['yhid']; $add['tnum']=(int)$add['tnum']; $add['listtempid']=(int)$add['listtempid']; $add['maxnum']=(int)$add['maxnum']; $add['reorder']=RepPostVar2($add['reorder']); $add['intro']=eaddslashes(RepPhpAspJspcode($add['intro'])); $add['pagekey']=eaddslashes(RepPhpAspJspcode($add['pagekey'])); $add['newline']=(int)$add['newline']; $add['hotline']=(int)$add['hotline']; $add['goodline']=(int)$add['goodline']; $add['hotplline']=(int)$add['hotplline']; $add['firstline']=(int)$add['firstline']; $add['jstempid']=(int)$add['jstempid']; $add['nrejs']=(int)$add['nrejs']; $add['listdt']=(int)$add['listdt']; $add['repagenum']=(int)$add['repagenum']; //目录 $add['tpath']=trim($add['tpath']); $add['tpath']=$add['pripath'].$add['tpath']; $add['tpath']=eaddslashes($add['tpath']); return $add; }
function RepSpeRssStr($str) { $str = stripSlashes($str); $str = ehtmlspecialchars($str, ENT_QUOTES); $str = str_replace(array('[!--empirenews.page--]', '[/!--empirenews.page--]', '[', ']'), array('', '', '', ''), $str); return $str; }
function DoPostZtTypeVar($add) { if (empty($add['ttype'])) { $add['ttype'] = '.html'; } $add['cname'] = eaddslashes(ehtmlspecialchars($add['cname'])); $add['myorder'] = (int) $add['myorder']; $add['islist'] = (int) $add['islist']; $add['listtempid'] = (int) $add['listtempid']; $add['maxnum'] = (int) $add['maxnum']; $add['tnum'] = (int) $add['tnum']; $add['reorder'] = RepPostVar2($add['reorder']); $add['classtext'] = RepPhpAspJspcode($add['classtext']); return $add; }
</table></td> </tr> <tr> <td valign="top" bgcolor="#FFFFFF">"上下页导航"式正则设置:</td> <td bgcolor="#FFFFFF"> <table width="100%%" border="0" cellspacing="1" cellpadding="2"> <tr> <td width="50%" height="23"><strong>分页区域正则(<font color="#FF0000">[!--smallpagezz--]</font>)</strong></td> <td><strong>分页链接正则(<font color="#FF0000">[!--pagezz--]</font>)</strong></td> </tr> <tr> <td><textarea name="add[smallpagezz]" cols="42" rows="12" id="add[smallpagezz]"><?php echo ehtmlspecialchars(stripSlashes($r[smallpagezz])); ?> </textarea></td> <td><textarea name="add[pagezz]" cols="42" rows="12" id="add[pagezz]"><?php echo ehtmlspecialchars(stripSlashes($r[pagezz])); ?> </textarea></td> </tr> </table></td> </tr> <tr> <td bgcolor="#FFFFFF"> </td> <td bgcolor="#FFFFFF"> <input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"> </td> </tr> </table> <br> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <td><strong>注意事项:<font color="#FF0000"><br> </font></strong>1.*:表示不限制内容。行与行之间的间隔最好用*格开<br>
echo $r[tempname]; ?> "> </td> </tr> <tr bgcolor="#FFFFFF"> <td height="25"><strong>模板内容</strong>(*)</td> <td height="25">请将模板内容<a href="#ecms" onclick="window.clipboardData.setData('Text',document.form1.temptext.value);document.form1.temptext.select()" title="点击复制模板内容"><strong>复制到Dreamweaver(推荐)</strong></a>或者使用<a href="#ecms" onclick="window.open('editor.php?getvar=opener.document.form1.temptext.value&returnvar=opener.document.form1.temptext.value&fun=ReturnHtml¬fullpage=1<?php echo $ecms_hashur['ehref']; ?> ','edittemp','width=880,height=600,scrollbars=auto,resizable=yes');"><strong>模板在线编辑</strong></a>进行可视化编辑</td> </tr> <tr bgcolor="#FFFFFF"> <td height="25" colspan="2"><div align="center"> <textarea name="temptext" cols="90" rows="23" id="temptext" wrap="OFF" style="WIDTH: 100%"><?php echo ehtmlspecialchars(stripSlashes($r[temptext])); ?> </textarea> </div></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25"> </td> <td height="25"><input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"> <?php if ($enews == 'EditVoteTemp') { ?> [<a href="#empirecms" onclick="window.open('TempBak.php?temptype=votetemp&tempid=<?php echo $tempid; ?> &gid=<?php echo $gid;
$lur = is_login(); $logininid = $lur['userid']; $loginin = $lur['username']; $loginrnd = $lur['rnd']; $loginlevel = $lur['groupid']; $loginadminstyleid = $lur['adminstyleid']; //ehash $ecms_hashur = hReturnEcmsHashStrAll(); $showmod = (int) $_GET['showmod']; $type = (int) $_GET['type']; $classid = (int) $_GET['classid']; $filepass = (int) $_GET['filepass']; $infoid = (int) $_GET['infoid']; $modtype = (int) $_GET['modtype']; $sinfo = (int) $_GET['sinfo']; $InstanceName = ehtmlspecialchars($_GET['InstanceName']); $editor = 3; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Image Properties</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="noindex, nofollow" /> <script src="../editor/dialog/common/fck_dialog_common.js" type="text/javascript"></script> <script src="../editor/dialog/tranpic/fck_image.js" type="text/javascript"></script> <script type="text/javascript"> document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ; </script>
function ReturnSearchAllSql($add) { global $public_r, $class_r; //关闭 if (empty($public_r['openschall'])) { printerror("SchallClose", '', 1); } //关键字 $keyboard = RepPostVar2($add['keyboard']); if (!trim($keyboard)) { printerror('EmptySchallKeyboard', '', 1); } $strlen = strlen($keyboard); if ($strlen < $public_r['schallminlen'] || $strlen > $public_r['schallmaxlen']) { printerror('SchallMinKeyboard', '', 1); } $returnr['keyboard'] = ehtmlspecialchars($keyboard); $returnr['search'] = "&keyboard=" . $keyboard; //字段 $field = (int) $add['field']; if ($field) { $returnr['search'] .= "&field=" . $field; } if ($field == 1) { if ($public_r['schallfield'] != 1) { printerror('SchallNotOpenTitleText', '', 1); } $sf = "title,infotext"; } elseif ($field == 2) { if ($public_r['schallfield'] == 3) { printerror('SchallNotOpenTitle', '', 1); } $sf = "title"; } elseif ($field == 3) { if ($public_r['schallfield'] == 2) { printerror('SchallNotOpenText', '', 1); } $sf = "infotext"; } else { $sf = ReturnSearchAllField(0); } $where = ''; //栏目 $classid = RepPostVar($add['classid']); if ($classid) { $returnr['search'] .= "&classid=" . $classid; if (strstr($classid, ",")) { $son_r = sys_ReturnMoreClass($classid, 1); $where .= '(' . $son_r[1] . ') and '; } else { $classid = (int) $classid; $where .= $class_r[$classid][islast] ? "classid='{$classid}' and " : ReturnClass($class_r[$classid][sonclass]) . ' and '; } } //关键字 if (strstr($keyboard, ' ')) { $andkey = ''; $keyr = explode(' ', $keyboard); $kcount = count($keyr); for ($i = 0; $i < $kcount; $i++) { if (strlen($keyr[$i]) < $public_r['schallminlen']) { continue; } $kb = SearchAllChangeChar($keyr[$i]); //转码 $kb = SearchReturnSaveStr($kb); $kb = RepPostVar2($kb); if (!trim($kb)) { continue; } $where .= $andkey . "MATCH(" . $sf . ") AGAINST('" . $kb . "' IN BOOLEAN MODE)"; $andkey = ' and '; } if (empty($where)) { printerror('SchallMinKeyboard', '', 1); } } else { $keyboard = SearchAllChangeChar($keyboard); //转码 $keyboard = SearchReturnSaveStr($keyboard); $keyboard = RepPostVar2($keyboard); if (!trim($keyboard)) { printerror('EmptySchallKeyboard', '', 1); } $where .= "MATCH(" . $sf . ") AGAINST('" . $keyboard . "' IN BOOLEAN MODE)"; } $returnr['where'] = $where; return $returnr; }
{ global $enews; $start = 1; if ($zero) { $start = 0; } for ($i = $start; $i <= $num; $i++) { $select = ''; if ($enews == 'EditTask' && (',' . $i . ',' == ',' . $thisno . ',' || strstr($thisno, ',' . $i . ','))) { $select = ' selected'; } $options .= "<option value='" . $i . "'" . $select . ">" . $i . "</option>"; } echo $options; } $enews = ehtmlspecialchars($_GET['enews']); $url = "<a href='ListTask.php" . $ecms_hashur['whehref'] . "'>管理计划任务</a> > 增加计划任务"; $postword = '增加计划任务'; $r['isopen'] = 1; $r['doday'] = '*'; $r['doweek'] = '*'; $r['dohour'] = '*'; $r['dominute'] = ','; if ($enews == "EditTask") { $id = (int) $_GET['id']; $r = $empire->fetch1("select * from {$dbtbpre}enewstask where id='{$id}'"); $url = "<a href='ListTask.php" . $ecms_hashur['whehref'] . "'>管理计划任务</a> > 修改计划任务:<b>" . $r[taskname] . "</b>"; $postword = '修改计划任务'; } //用户 $userselect = '';
function SetEnews($add, $userid, $username) { global $empire, $dbtbpre; //操作权限 CheckLevel($userid, $username, $classid, "public"); $add[newsurl] = ehtmlspecialchars($add[newsurl], ENT_QUOTES); if (empty($add[indextype])) { $add[indextype] = ".html"; } if (empty($add[searchtype])) { $add[searchtype] = ".html"; } //备份目录 if (empty($add[bakdbpath])) { $add[bakdbpath] = "bdata"; } if (!file_exists("ebak/" . RepPathStr($add[bakdbpath]))) { printerror("NotBakDbPath", ""); } if (empty($add[bakdbzip])) { $add[bakdbzip] = "zip"; } if (!file_exists("ebak/" . RepPathStr($add[bakdbzip]))) { printerror("NotbakZipPath", ""); } //函数是否存在 if (!function_exists($add['listpagefun']) || !function_exists($add['textpagefun']) || !function_exists($add['listpagelistfun'])) { printerror("NotPageFun", "history.go(-1)"); } //adfile $add['adfile'] = RepFilenameQz($add['adfile']); //修改ftp密码 if ($add[ftppassword]) { $a = "ftppassword='******'ftppassword']}',"; } //变量处理 $add[filesize] = (int) $add[filesize]; $add[hotnum] = (int) $add[hotnum]; $add[newnum] = (int) $add[newnum]; $add[relistnum] = (int) $add[relistnum]; $add[renewsnum] = (int) $add[renewsnum]; $add[min_keyboard] = (int) $add[min_keyboard]; $add[max_keyboard] = (int) $add[max_keyboard]; $add[search_num] = (int) $add[search_num]; $add[search_pagenum] = (int) $add[search_pagenum]; $add[newslink] = (int) $add[newslink]; $add[checked] = (int) $add[checked]; $add[searchtime] = (int) $add[searchtime]; $add[loginnum] = (int) $add[loginnum]; $add[logintime] = (int) $add[logintime]; $add[addnews_ok] = (int) $add[addnews_ok]; $add[register_ok] = (int) $add[register_ok]; $add[goodlencord] = (int) $add[goodlencord]; $add[goodnum] = (int) $add[goodnum]; $add[exittime] = (int) $add[exittime]; $add[smalltextlen] = (int) $add[smalltextlen]; $add[defaultgroupid] = (int) $add[defaultgroupid]; $add[phpmode] = (int) $add[phpmode]; $add[install] = (int) $add[install]; $add[hotplnum] = (int) $add[hotplnum]; $add[dorepnum] = (int) $add[dorepnum]; $add[loadtempnum] = (int) $add[loadtempnum]; $add[firstnum] = (int) $add[firstnum]; $add[min_userlen] = (int) $add[min_userlen]; $add[max_userlen] = (int) $add[max_userlen]; $add[min_passlen] = (int) $add[min_passlen]; $add[max_passlen] = (int) $add[max_passlen]; $add[filechmod] = (int) $add[filechmod]; $add[sametitle] = (int) $add[sametitle]; $add[addrehtml] = (int) $add[addrehtml]; $add[loginkey_ok] = (int) $add[loginkey_ok]; $add[limittype] = (int) $add[limittype]; $add[redodown] = (int) $add[redodown]; $add[candocode] = (int) $add[candocode]; $add[opennotcj] = (int) $add[opennotcj]; $add[reuserpagenum] = (int) $add[reuserpagenum]; $add[revotejsnum] = (int) $add[revotejsnum]; $add[readjsnum] = (int) $add[readjsnum]; $add[qaddtran] = (int) $add[qaddtran]; $add[qaddtransize] = (int) $add[qaddtransize]; $add[ebakthisdb] = (int) $add[ebakthisdb]; $add[delnewsnum] = (int) $add[delnewsnum]; $add[markpos] = (int) $add[markpos]; $add[adminloginkey] = (int) $add[adminloginkey]; $add[php_outtime] = (int) $add[php_outtime]; $add[addreinfo] = (int) $add[addreinfo]; $add[rssnum] = (int) $add[rssnum]; $add[rsssub] = (int) $add[rsssub]; $add[dorepdlevelnum] = (int) $add[dorepdlevelnum]; $add[listpagelistnum] = (int) $add[listpagelistnum]; $add[infolinknum] = (int) $add[infolinknum]; $add[searchgroupid] = (int) $add[searchgroupid]; $add[opencopytext] = (int) $add[opencopytext]; $add[reuserjsnum] = (int) $add[reuserjsnum]; $add[reuserlistnum] = (int) $add[reuserlistnum]; $add[opentitleurl] = (int) $add[opentitleurl]; $add['qaddtranfile'] = (int) $add['qaddtranfile']; $add['qaddtranfilesize'] = (int) $add['qaddtranfilesize']; $add['sendmailtype'] = (int) $add['sendmailtype']; $add['loginemail'] = (int) $add['loginemail']; $add['feedbacktfile'] = (int) $add['feedbacktfile']; $add['feedbackfilesize'] = (int) $add['feedbackfilesize']; $add['searchtempvar'] = (int) $add['searchtempvar']; $add['showinfolevel'] = (int) $add['showinfolevel']; $add['spicwidth'] = (int) $add['spicwidth']; $add['spicheight'] = (int) $add['spicheight']; $add['spickill'] = (int) $add['spickill']; $add['jpgquality'] = (int) $add['jpgquality']; $add['markpct'] = (int) $add['markpct']; $add['redoview'] = (int) $add['redoview']; $add['reggetfen'] = (int) $add['reggetfen']; $add['regbooktime'] = (int) $add['regbooktime']; $add['revotetime'] = (int) $add['revotetime']; $add['fpath'] = (int) $add['fpath']; $add['openmembertranimg'] = (int) $add['openmembertranimg']; $add['memberimgsize'] = (int) $add['memberimgsize']; $add['openmembertranfile'] = (int) $add['openmembertranfile']; $add['memberfilesize'] = (int) $add['memberfilesize']; $add['openspace'] = (int) $add['openspace']; $add['realltime'] = (int) $add['realltime']; $add['textpagelistnum'] = (int) $add['textpagelistnum']; $add['memberlistlevel'] = (int) $add['memberlistlevel']; $add['ebakcanlistdb'] = (int) $add['ebakcanlistdb']; $add['keytog'] = (int) $add['keytog']; $add['keytime'] = (int) $add['keytime']; $add['regkey_ok'] = (int) $add['regkey_ok']; $add['opengetdown'] = (int) $add['opengetdown']; $add['gbkey_ok'] = (int) $add['gbkey_ok']; $add['fbkey_ok'] = (int) $add['fbkey_ok']; $add['newaddinfotime'] = (int) $add['newaddinfotime']; $add['classnavline'] = (int) $add['classnavline']; $add['docnewsnum'] = (int) $add['docnewsnum']; $add['dtcanbq'] = (int) $add['dtcanbq']; $add['dtcachetime'] = (int) $add['dtcachetime']; $add['regretime'] = (int) $add['regretime']; $add['regemailonly'] = (int) $add['regemailonly']; $add['repkeynum'] = (int) $add['repkeynum']; $add['getpasstime'] = (int) $add['getpasstime']; $add['acttime'] = (int) $add['acttime']; $add['regacttype'] = (int) $add['regacttype']; $add['opengetpass'] = (int) $add['opengetpass']; $add['hlistinfonum'] = (int) $add['hlistinfonum']; if (empty($add['hlistinfonum'])) { $add['hlistinfonum'] = 30; } $add['qlistinfonum'] = (int) $add['qlistinfonum']; if (empty($add['qlistinfonum'])) { $add['qlistinfonum'] = 30; } $add['dtncanbq'] = (int) $add['dtncanbq']; $add['dtncachetime'] = (int) $add['dtncachetime']; $add['readdinfotime'] = (int) $add['readdinfotime']; $add['qeditinfotime'] = (int) $add['qeditinfotime']; $add['ftpmode'] = (int) $add['ftpmode']; $add['ftpssl'] = (int) $add['ftpssl']; $add['ftppasv'] = (int) $add['ftppasv']; $add['ftpouttime'] = (int) $add['ftpouttime']; $add['onclicktype'] = (int) $add['onclicktype']; $add['onclickfilesize'] = (int) $add['onclickfilesize']; $add['onclickfiletime'] = (int) $add['onclickfiletime']; $add['closeqdt'] = (int) $add['closeqdt']; $add['settop'] = (int) $add['settop']; $add['qlistinfomod'] = (int) $add['qlistinfomod']; $add['gb_num'] = (int) $add['gb_num']; $add['member_num'] = (int) $add['member_num']; $add['space_num'] = (int) $add['space_num']; $add['infolday'] = (int) $add['infolday']; $add['filelday'] = (int) $add['filelday']; $add['baktempnum'] = (int) $add['baktempnum']; $add['dorepkey'] = (int) $add['dorepkey']; $add['dorepword'] = (int) $add['dorepword']; $add['indexpagedt'] = (int) $add['indexpagedt']; $add['closeqdtmsg'] = AddAddsData($add['closeqdtmsg']); $add['openfileserver'] = (int) $add['openfileserver']; $add['fieldandtop'] = (int) $add['fieldandtop']; $add['fieldandclosetb'] = $add['fieldandclosetb'] ? ',' . $add['fieldandclosetb'] . ',' : ''; $add['firsttitlename'] = ehtmlspecialchars(str_replace("\r\n", "|", $add['firsttitlename'])); $add['isgoodname'] = ehtmlspecialchars(str_replace("\r\n", "|", $add['isgoodname'])); $add['closelisttemp'] = ehtmlspecialchars($add['closelisttemp']); $add['ipaddinfonum'] = (int) $add['ipaddinfonum']; $add['ipaddinfotime'] = (int) $add['ipaddinfotime']; $add['indexaddpage'] = (int) $add['indexaddpage']; $add['modmemberedittran'] = (int) $add['modmemberedittran']; $add['modinfoedittran'] = (int) $add['modinfoedittran']; //提交IP $doiptypes = ''; $doiptype = $add['doiptype']; $doiptypecount = count($doiptype); if ($doiptypecount) { $doiptypes = ','; for ($di = 0; $di < $doiptypecount; $di++) { $doiptypes .= $doiptype[$di] . ','; } } //关闭相关模块 $closemodss = ''; $closemods = $add['closemods']; $closemodscount = count($closemods); if ($closemodscount) { $closemodss = ','; for ($cmi = 0; $cmi < $closemodscount; $cmi++) { $closemodss .= $closemods[$cmi] . ','; } } //关闭后台菜单 $closehmenus = ''; $closehmenu = $add['closehmenu']; $closehmenucount = count($closehmenu); if ($closehmenucount) { $closehmenus = ','; for ($chmi = 0; $chmi < $closehmenucount; $chmi++) { $closehmenus .= $closehmenu[$chmi] . ','; } } //限制操作的时间点 $timecloses = ''; $timeclose = $add['timeclose']; $timeclosecount = count($timeclose); if ($timeclosecount) { $timecloses = ','; for ($tci = 0; $tci < $timeclosecount; $tci++) { $timecloses .= $timeclose[$tci] . ','; } } //限制使用时间的操作 $timeclosedos = ''; $timeclosedo = $add['timeclosedo']; $timeclosedocount = count($timeclosedo); if ($timeclosedocount) { $timeclosedos = ','; for ($tcdi = 0; $tcdi < $timeclosedocount; $tcdi++) { $timeclosedos .= $timeclosedo[$tcdi] . ','; } } $add[filetype] = "|" . $add[filetype] . "|"; $add[qimgtype] = "|" . $add['qaddtranimgtype'] . "|"; $add[qfiletype] = "|" . $add['qaddtranfiletype'] . "|"; $add[feedbackfiletype] = "|" . $add['feedbackfiletype'] . "|"; $add[memberimgtype] = "|" . $add['memberimgtype'] . "|"; $add[memberfiletype] = "|" . $add['memberfiletype'] . "|"; $sql = $empire->query("update {$dbtbpre}enewspublic set " . $a . "sitename='{$add['sitename']}',newsurl='{$add['newsurl']}',email='{$add['email']}',filetype='{$add['filetype']}',filesize={$add['filesize']},hotnum={$add['hotnum']},newnum={$add['newnum']},relistnum={$add['relistnum']},renewsnum={$add['renewsnum']},min_keyboard={$add['min_keyboard']},max_keyboard={$add['max_keyboard']},search_num={$add['search_num']},search_pagenum={$add['search_pagenum']},newslink={$add['newslink']},checked={$add['checked']},searchtime={$add['searchtime']},loginnum={$add['loginnum']},logintime={$add['logintime']},addnews_ok={$add['addnews_ok']},register_ok={$add['register_ok']},indextype='{$add['indextype']}',goodlencord={$add['goodlencord']},goodtype='{$add['goodtype']}',goodnum={$add['goodnum']},searchtype='{$add['searchtype']}',exittime={$add['exittime']},smalltextlen={$add['smalltextlen']},defaultgroupid={$add['defaultgroupid']},fileurl='{$add['fileurl']}',phpmode={$add['phpmode']},ftphost='{$add['ftphost']}',ftpport='{$add['ftpport']}',ftpusername='******'ftpusername']}',ftppath='{$add['ftppath']}',ftpmode='{$add['ftpmode']}',install={$add['install']},hotplnum={$add['hotplnum']},dorepnum={$add['dorepnum']},loadtempnum={$add['loadtempnum']},firstnum={$add['firstnum']},bakdbpath='{$add['bakdbpath']}',bakdbzip='{$add['bakdbzip']}',downpass='******'downpass']}',min_userlen={$add['min_userlen']},max_userlen={$add['max_userlen']},min_passlen={$add['min_passlen']},max_passlen={$add['max_passlen']},filechmod={$add['filechmod']},loginkey_ok={$add['loginkey_ok']},limittype={$add['limittype']},redodown={$add['redodown']},candocode={$add['candocode']},opennotcj={$add['opennotcj']},reuserpagenum={$add['reuserpagenum']},revotejsnum={$add['revotejsnum']},readjsnum={$add['readjsnum']},qaddtran={$add['qaddtran']},qaddtransize={$add['qaddtransize']},ebakthisdb={$add['ebakthisdb']},delnewsnum={$add['delnewsnum']},markpos={$add['markpos']},markimg='{$add['markimg']}',marktext='{$add['marktext']}',markfontsize='{$add['markfontsize']}',markfontcolor='{$add['markfontcolor']}',markfont='{$add['markfont']}',adminloginkey={$add['adminloginkey']},php_outtime={$add['php_outtime']},listpagefun='{$add['listpagefun']}',textpagefun='{$add['textpagefun']}',adfile='{$add['adfile']}',notsaveurl='{$add['notsaveurl']}',rssnum={$add['rssnum']},rsssub={$add['rsssub']},dorepdlevelnum={$add['dorepdlevelnum']},listpagelistfun='{$add['listpagelistfun']}',listpagelistnum={$add['listpagelistnum']},infolinknum={$add['infolinknum']},searchgroupid={$add['searchgroupid']},opencopytext={$add['opencopytext']},reuserjsnum={$add['reuserjsnum']},reuserlistnum={$add['reuserlistnum']},opentitleurl='{$add['opentitleurl']}',qaddtranimgtype='{$add['qimgtype']}',qaddtranfile={$add['qaddtranfile']},qaddtranfilesize={$add['qaddtranfilesize']},qaddtranfiletype='{$add['qfiletype']}',sendmailtype={$add['sendmailtype']},smtphost='{$add['smtphost']}',fromemail='{$add['fromemail']}',loginemail={$add['loginemail']},emailusername='******'emailusername']}',emailpassword='******'emailpassword']}',smtpport='{$add['smtpport']}',emailname='{$add['emailname']}',feedbacktfile={$add['feedbacktfile']},feedbackfilesize={$add['feedbackfilesize']},feedbackfiletype='{$add['feedbackfiletype']}',searchtempvar={$add['searchtempvar']},showinfolevel={$add['showinfolevel']},navfh='" . eaddslashes($add[navfh]) . "',spicwidth={$add['spicwidth']},spicheight={$add['spicheight']},spickill={$add['spickill']},jpgquality={$add['jpgquality']},markpct={$add['markpct']},redoview={$add['redoview']},reggetfen={$add['reggetfen']},regbooktime={$add['regbooktime']},revotetime={$add['revotetime']},fpath={$add['fpath']},filepath='{$add['filepath']}',openmembertranimg={$add['openmembertranimg']},memberimgsize={$add['memberimgsize']},openmembertranfile={$add['openmembertranfile']},memberfilesize={$add['memberfilesize']},memberimgtype='{$add['memberimgtype']}',memberfiletype='{$add['memberfiletype']}',canposturl='{$add['canposturl']}',openspace='{$add['openspace']}',realltime={$add['realltime']},closeip='{$add['closeip']}',openip='{$add['openip']}',hopenip='{$add['hopenip']}',closewords='{$add['closewords']}',closewordsf='{$add['closewordsf']}',textpagelistnum={$add['textpagelistnum']},memberlistlevel={$add['memberlistlevel']},ebakcanlistdb={$add['ebakcanlistdb']},keytog='{$add['keytog']}',keyrnd='{$add['keyrnd']}',keytime='{$add['keytime']}',regkey_ok='{$add['regkey_ok']}',opengetdown='{$add['opengetdown']}',gbkey_ok='{$add['gbkey_ok']}',fbkey_ok='{$add['fbkey_ok']}',newaddinfotime='{$add['newaddinfotime']}',classnavline='{$add['classnavline']}',classnavfh='" . eaddslashes($add[classnavfh]) . "',sitekey='{$add['sitekey']}',siteintro='{$add['siteintro']}',docnewsnum='{$add['docnewsnum']}',dtcanbq='{$add['dtcanbq']}',dtcachetime='{$add['dtcachetime']}',regretime='{$add['regretime']}',regclosewords='{$add['regclosewords']}',regemailonly='{$add['regemailonly']}',repkeynum='{$add['repkeynum']}',getpasstime='{$add['getpasstime']}',acttime='{$add['acttime']}',regacttype='{$add['regacttype']}',acttext='" . eaddslashes($add[acttext]) . "',getpasstext='" . eaddslashes($add[getpasstext]) . "',acttitle='" . eaddslashes($add[acttitle]) . "',getpasstitle='" . eaddslashes($add[getpasstitle]) . "',opengetpass='******'opengetpass']}',hlistinfonum='{$add['hlistinfonum']}',qlistinfonum='{$add['qlistinfonum']}',dtncanbq='{$add['dtncanbq']}',dtncachetime='{$add['dtncachetime']}',readdinfotime='{$add['readdinfotime']}',qeditinfotime='{$add['qeditinfotime']}',ftpssl='{$add['ftpssl']}',ftppasv='{$add['ftppasv']}',ftpouttime='{$add['ftpouttime']}',onclicktype='{$add['onclicktype']}',onclickfilesize='{$add['onclickfilesize']}',onclickfiletime='{$add['onclickfiletime']}',closeqdt='{$add['closeqdt']}',settop='{$add['settop']}',qlistinfomod='{$add['qlistinfomod']}',gb_num='{$add['gb_num']}',member_num='{$add['member_num']}',space_num='{$add['space_num']}',opendoip='{$add['opendoip']}',closedoip='{$add['closedoip']}',doiptype='{$doiptypes}',infolday='{$add['infolday']}',filelday='{$add['filelday']}',baktempnum='{$add['baktempnum']}',dorepkey='{$add['dorepkey']}',dorepword='{$add['dorepword']}',onclickrnd='{$add['onclickrnd']}',indexpagedt='{$add['indexpagedt']}',keybgcolor='{$add['keybgcolor']}',keyfontcolor='{$add['keyfontcolor']}',keydistcolor='{$add['keydistcolor']}',closeqdtmsg='{$add['closeqdtmsg']}',openfileserver='{$add['openfileserver']}',closemods='{$closemodss}',fieldandtop='{$add['fieldandtop']}',fieldandclosetb='{$add['fieldandclosetb']}',firsttitlename='" . eaddslashes($add[firsttitlename]) . "',isgoodname='" . eaddslashes($add[isgoodname]) . "',closelisttemp='" . eaddslashes($add[closelisttemp]) . "',chclasscolor='" . eaddslashes($add[chclasscolor]) . "',timeclose='" . eaddslashes($timecloses) . "',timeclosedo='" . eaddslashes($timeclosedos) . "',ipaddinfonum='{$add['ipaddinfonum']}',ipaddinfotime='{$add['ipaddinfotime']}',closehmenu='{$closehmenus}',indexaddpage='{$add['indexaddpage']}',modmemberedittran='{$add['modmemberedittran']}',modinfoedittran='{$add['modinfoedittran']}';"); DoSetFileServer($add); //远程附件更新 GetConfig(); //首页动态文件 if ($add['indexpagedt'] != $add['oldindexpagedt']) { if ($add['indexpagedt']) { DelFiletext(ECMS_PATH . 'index' . $add[indextype]); @copy(ECMS_PATH . DASHBOARD . '/data/template/dtindexpage.txt', ECMS_PATH . 'index.php'); } else { DelFiletext(ECMS_PATH . 'index.php'); $indextemp = GetIndextemp(); NewsBq(0, $indextemp, 1, 0); } } if ($sql) { insert_dolog(""); //操作日志 printerror("SetPublicSuccess", "SetEnews.php" . hReturnEcmsHashStrHref2(1)); } else { printerror("DbError", "history.go(-1)"); } }
$listpage = page1($num, $line, $page_line, $start, $page, $search); //取得模板 if ($search_r['tempid']) { $tempr = $empire->fetch1("select temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from " . GetTemptb("enewssearchtemp") . " where tempid='" . $search_r['tempid'] . "' limit 1"); } elseif (empty($class_r[$search_r[trueclassid]][searchtempid])) { $tempr = $empire->fetch1("select temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from " . GetTemptb("enewssearchtemp") . " where isdefault=1 limit 1"); } else { $tempr = $empire->fetch1("select temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from " . GetTemptb("enewssearchtemp") . " where tempid='" . $class_r[$search_r[trueclassid]][searchtempid] . "' limit 1"); } $have_class = 1; //替换公共模板变量 $listtemp = $tempr[temptext]; if ($public_r['searchtempvar']) { $listtemp = ReplaceTempvar($listtemp); } $search_r[keyboard] = ehtmlspecialchars($search_r[keyboard]); $listtemp = str_replace("[!--show.page--]", $listpage, $listtemp); $listtemp = str_replace("[!--keyboard--]", $search_r[keyboard], $listtemp); $listtemp = str_replace("[!--ecms.num--]", $num, $listtemp); $url = "<a href='" . ReturnSiteIndexUrl() . "'>" . $fun_r['index'] . "</a> > " . $fun_r['adsearch']; $pagetitle = $fun_r['adsearch'] . " " . $search_r[keyboard]; $listtemp = ReplaceSvars($listtemp, $url, 0, $pagetitle, $pagetitle, $pagetitle, $add, 0); $rownum = $tempr[rownum]; if (empty($rownum)) { $rownum = 1; } $formatdate = $tempr[showdate]; $subnews = $tempr[subnews]; $subtitle = $tempr[subtitle]; $docode = $tempr[docode]; $modid = $tempr[modid];
$link = db_connect(); $empire = new mysqlquery(); $editor = 1; //验证用户 $lur = is_login(); $logininid = $lur['userid']; $loginin = $lur['username']; $loginrnd = $lur['rnd']; $loginlevel = $lur['groupid']; $loginadminstyleid = $lur['adminstyleid']; //ehash $ecms_hashur = hReturnEcmsHashStrAll(); //验证权限 CheckLevel($logininid, $loginin, $classid, "bq"); $enews = ehtmlspecialchars($_GET['enews']); $cid = ehtmlspecialchars($_GET['cid']); $url = "<a href=ListBq.php" . $ecms_hashur['whehref'] . ">管理标签</a> > 增加标签"; //修改标签 if ($enews == "EditBq") { $bqid = (int) $_GET['bqid']; $url = "<a href=ListBq.php" . $ecms_hashur['whehref'] . ">管理标签</a> > 修改标签"; $r = $empire->fetch1("select bqname,bqsay,funname,bq,issys,bqgs,isclose,classid,myorder from {$dbtbpre}enewsbq where bqid='{$bqid}'"); } //分类 $cstr = ""; $csql = $empire->query("select classid,classname from {$dbtbpre}enewsbqclass order by classid"); while ($cr = $empire->fetch($csql)) { $select = ""; if ($cr[classid] == $r[classid]) { $select = " selected"; }
<tr bgcolor="#FFFFFF"> <td height="25" valign="top"><strong>列表内容模板(list.var) </strong>(*)</td> <td width="64%" height="25">请将模板内容<a href="#ecms" onclick="window.clipboardData.setData('Text',document.form1.listvar.value);document.form1.listvar.select()" title="点击复制模板内容"><strong>复制到Dreamweaver(推荐)</strong></a>或者使用<a href="#ecms" onclick="window.open('editor.php?<?php echo $ecms_hashur['ehref']; ?> &getvar=opener.document.form1.listvar.value&returnvar=opener.document.form1.listvar.value&fun=ReturnHtml¬fullpage=1','edittemp','width=880,height=600,scrollbars=auto,resizable=yes');"><strong>模板在线编辑</strong></a>进行可视化编辑</td> <td width="14%"><div align="right"> <input name="docode" type="checkbox" id="docode" value="1"<?php echo $r[docode] == 1 ? ' checked' : ''; ?> ><a title="list.var使用程序代码">使用程序代码</a></div></td> </tr> <tr bgcolor="#FFFFFF"> <td colspan="3" valign="top"> <div align="center"> <textarea name="listvar" cols="90" rows="12" id="listvar" wrap="OFF" style="WIDTH: 100%"><?php echo ehtmlspecialchars(stripSlashes($r[listvar])); ?> </textarea> </div></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25"> </td> <td height="25" colspan="2"><input type="submit" name="Submit" value="保存模板"> <input type="reset" name="Submit2" value="重置"> <?php if ($enews == 'EditBqtemp') { ?> [<a href="#empirecms" onclick="window.open('TempBak.php?temptype=bqtemp&tempid=<?php echo $tempid; ?> &gid=<?php
/** * Return the HTML code required to run FCKeditor. * * @return string */ function CreateHtml() { $HtmlValue = ehtmlspecialchars($this->Value); $Html = ''; if (!isset($_GET)) { global $HTTP_GET_VARS; $_GET = $HTTP_GET_VARS; } if ($this->IsCompatible()) { if (isset($_GET['fcksource']) && $_GET['fcksource'] == "true") { $File = 'fckeditor.original.html'; } else { $File = 'fckeditor.html'; } $Link = "{$this->BasePath}editor/{$File}?InstanceName={$this->InstanceName}" . ECMS_ReturnEditorCx(); if ($this->ToolbarSet != '') { $Link .= "&Toolbar={$this->ToolbarSet}"; } // Render the linked hidden field. $Html .= "<input type=\"hidden\" id=\"{$this->InstanceName}\" name=\"{$this->InstanceName}\" value=\"{$HtmlValue}\" style=\"display:none\" />"; // Render the configurations hidden field. $Html .= "<input type=\"hidden\" id=\"{$this->InstanceName}___Config\" value=\"" . $this->GetConfigFieldString() . "\" style=\"display:none\" />"; // Render the editor IFRAME. $Html .= "<iframe id=\"{$this->InstanceName}___Frame\" src=\"{$Link}\" width=\"{$this->Width}\" height=\"{$this->Height}\" frameborder=\"0\" scrolling=\"no\"></iframe>"; } else { if (strpos($this->Width, '%') === false) { $WidthCSS = $this->Width . 'px'; } else { $WidthCSS = $this->Width; } if (strpos($this->Height, '%') === false) { $HeightCSS = $this->Height . 'px'; } else { $HeightCSS = $this->Height; } $Html .= "<textarea name=\"{$this->InstanceName}\" rows=\"4\" cols=\"40\" style=\"width: {$WidthCSS}; height: {$HeightCSS}\">{$HtmlValue}</textarea>"; } return $Html; }
</tr> <tr> <td><input name="add[z_productpic]" type="text" id="productpic5" value="<?php echo stripSlashes($r[z_productpic]); ?> "> (如填写这里,这就是字段的值)</td> </tr> </table></td> </tr> <tr bgcolor="#FFFFFF"> <td height="22" valign="top"><strong>商品介绍正则:</strong><br> (<input name="textfield" type="text" id="textfield" value="[!--newstext--]" size="20">)</td> <td><table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td><textarea name="add[zz_newstext]" cols="60" rows="10" id="textarea"><?php echo ehtmlspecialchars(stripSlashes($r[zz_newstext])); ?> </textarea></td> </tr> <tr> <td><input name="add[z_newstext]" type="text" id="add[z_newstext]" value="<?php echo stripSlashes($r[z_newstext]); ?> "> (如填写这里,将为字段的值)</td> </tr> </table></td> </tr>
$logininid = $lur['userid']; $loginin = $lur['username']; $loginrnd = $lur['rnd']; $loginlevel = $lur['groupid']; $loginadminstyleid = $lur['adminstyleid']; //ehash $ecms_hashur = hReturnEcmsHashStrAll(); //验证权限 CheckLevel($logininid, $loginin, $classid, "cj"); $add = $_GET; $classid = $add['classid']; $count = count($classid); if (!$count) { printerror("NotChangeCjid", "history.go(-1)"); } $add['from'] = ehtmlspecialchars($add['from']); esetcookie("recjnum", $count, 0, 1); $url = "ecmscj.php?enews=CjUrl" . $ecms_hashur['href']; echo "<center>采集节点的总个数为:<font color=red>{$count}</font>个</center><br>"; for ($i = 0; $i < $count; $i++) { $classid[$i] = (int) $classid[$i]; $trueurl = $url . "&from={$add['from']}&classid=" . $classid[$i]; echo "<iframe frameborder=0 height=35 name='class" . $classid[$i] . "' scrolling=no \n src=\"" . $trueurl . "\" \n width=\"100%\"></iframe><br>"; } db_close(); $empire = null; ?> <iframe frameborder=0 height=35 name="checkrecj" scrolling=no src="CheckReCj.php?first=1&from=<?php echo $add[from]; echo $ecms_hashur['href'];
function DtGetHtml($add, $newstemp_r, $mid, $tbname, $line, $page_line, $start, $page, $search) { global $public_r, $class_r, $class_zr, $class_tr, $fun_r, $empire, $dbtbpre, $emod_r, $level_r; //更新点击 $empire->query("update {$dbtbpre}ecms_" . $tbname . " set onclick=onclick+1 where id='{$add['id']}' limit 1"); $add['onclick'] = $add['onclick'] + 1; //模板参数 $newstemptext = $newstemp_r[temptext]; $formatdate = $newstemp_r[showdate]; //页面 $pagetitle = ehtmlspecialchars($add[title]); $url = ReturnClassLink($add[classid]); //导航 $newstemptext = DtInfo_ReplaceSvars($newstemptext, $url, $add[classid], $pagetitle, $add[keyboard], $pagetitle); //相关信息 if (strstr($newstemptext, '[!--other.link--]')) { $keyboardtext = GetKeyboard($add[keyboard], $add[keyid], $add[classid], $add[id], $class_r[$add[classid]][link_num]); } //分页字段 $ptitle = $add['title']; $truepage = ''; $titleselect = ''; $expage = '[!--empirenews.page--]'; //分页符 $pf = $emod_r[$mid]['pagef']; if ($pf && strstr($add[$pf], $expage)) { $n_r = explode($expage, $add[$pf]); $thispagenum = count($n_r); if ($page < 0 || $page > $thispagenum - 1) { $page = 0; } $add[$pf] = $n_r[$page]; if ($page) { $ti_r = explode('[/!--empirenews.page--]', $n_r[$page]); if (count($ti_r) >= 2) { $ptitle = $ti_r[0]; $add[$pf] = $ti_r[1]; } else { $ptitle = $add['title'] . '(' . ($page + 1) . ')'; } } //伪静态 $pagefunr = eReturnRewriteInfoUrl($add['classid'], $add['id'], 0); $pagefunr['repagenum'] = 0; //取得分页 $truepage = InfoUsePage($thispagenum, $line, $page_line, $start, $page, $search, $pagefunr); //下拉式分页 if (strstr($newstemptext, '[!--title.select--]')) { for ($j = 0; $j < $thispagenum; $j++) { $spurl = eReturnRewritePageLink($pagefunr, $j); if ($j == 0) { $sptitle = $add[title]; } else { $ti_r = explode('[/!--empirenews.page--]', $n_r[$j]); $sptitle = count($ti_r) >= 2 ? $ti_r[0] : $add[title] . '(' . ($j + 1) . ')'; } $select = ''; if ($page == $j) { $ptitle = $sptitle; $select = ' selected'; } $titleselect .= '<option value="' . $spurl . '"' . $select . '>' . $sptitle . '</option>'; } $titleselect = '<select name="titleselect" onchange="self.location.href=this.options[this.selectedIndex].value">' . $titleselect . '</select>'; } //下一页链接 if ($page == $thispagenum - 1) { $thisnextlink = eReturnRewritePageLink($pagefunr, 0); } else { $thisnextlink = eReturnRewritePageLink($pagefunr, $page + 1); } } //返回替换验证字符 $docheckrep = ReturnCheckDoRepStr(); if ($add[newstext]) { if (empty($public_r['dorepword']) && $docheckrep[3]) { $add[newstext] = ReplaceWord($add[newstext]); //过滤字符 } if (empty($public_r['dorepkey']) && $docheckrep[4] && !empty($add[dokey])) { $add[newstext] = ReplaceKey($add['newstext'], $add['classid']); } if ($public_r['opencopytext']) { $add[newstext] = AddNotCopyRndStr($add[newstext]); //随机复制字符 } } //变量 $tempf = $emod_r[$mid]['tempf']; $fr = explode(',', $tempf); $fcount = count($fr) - 1; //变量替换 $newstempstr = $newstemptext; //模板 for ($i = 1; $i < $fcount; $i++) { $f = $fr[$i]; $value = $add[$f]; if ($f == 'downpath') { if (strstr($newstemptext, '[!--downpath--]')) { $value = ReturnDownSoftHtml($add); } } elseif ($f == 'onlinepath') { if (strstr($newstemptext, '[!--onlinepath--]')) { $value = ReturnOnlinepathHtml($add); } } elseif ($f == 'morepic') { if (strstr($newstemptext, '[!--morepic--]')) { $value = ReturnMorepicpathHtml($add); } } elseif ($f == 'newstime') { if (strstr($newstemptext, '[!--newstime--]')) { $value = date($formatdate, $value); } } elseif ($f == 'befrom') { if ($docheckrep[1] && strstr($newstemptext, '[!--befrom--]')) { $value = ReplaceBefrom($value); } } elseif ($f == 'writer') { if ($docheckrep[2] && strstr($newstemptext, '[!--writer--]')) { $value = ReplaceWriter($value); } } elseif ($f == 'titlepic') { if (empty($value)) { $value = $public_r[newsurl] . 'e/data/images/notimg.gif'; } } elseif ($f == 'title') { } else { if (!strstr($emod_r[$mid]['editorf'], ',' . $f . ',')) { if (strstr($emod_r[$mid]['tobrf'], ',' . $f . ',')) { $value = nl2br($value); } if (!strstr($emod_r[$mid]['dohtmlf'], ',' . $f . ',')) { $value = RepFieldtextNbsp(ehtmlspecialchars($value)); } } } $newstempstr = str_replace('[!--' . $f . '--]', $value, $newstempstr); } //固定变量 $newstempstr = str_replace('[!--id--]', $add[id], $newstempstr); $newstempstr = str_replace('[!--classid--]', $add[classid], $newstempstr); $newstempstr = str_replace('[!--class.name--]', $class_r[$add[classid]][classname], $newstempstr); $newstempstr = str_replace('[!--ttid--]', $add[ttid], $newstempstr); $newstempstr = str_replace('[!--tt.name--]', $class_tr[$add[ttid]][tname], $newstempstr); $newstempstr = str_replace('[!--tt.url--]', sys_ReturnBqInfoTypeUrl($add['ttid']), $newstempstr); $newstempstr = str_replace('[!--onclick--]', $add[onclick], $newstempstr); $newstempstr = str_replace('[!--userfen--]', $add[userfen], $newstempstr); $newstempstr = str_replace('[!--username--]', $add[username], $newstempstr); //带链接的用户名 if ($add[ismember] == 1 && $add[userid]) { $newstempstr = str_replace('[!--linkusername--]', "<a href='" . $public_r[newsurl] . "e/space/?userid=" . $add[userid] . "' target=_blank>" . $add[username] . "</a>", $newstempstr); } else { $newstempstr = str_replace('[!--linkusername--]', $add[username], $newstempstr); } $newstempstr = str_replace('[!--userid--]', $add[userid], $newstempstr); $newstempstr = str_replace('[!--other.link--]', $keyboardtext, $newstempstr); $newstempstr = str_replace('[!--news.url--]', $public_r[newsurl], $newstempstr); $newstempstr = str_replace('[!--plnum--]', $add[plnum], $newstempstr); $newstempstr = str_replace('[!--totaldown--]', $add[totaldown], $newstempstr); $newstempstr = str_replace('[!--keyboard--]', $add[keyboard], $newstempstr); //链接 $titleurl = sys_ReturnBqTitleLink($add); $newstempstr = str_replace('[!--titleurl--]', $titleurl, $newstempstr); $newstempstr = str_replace('[!--page.stats--]', '', $newstempstr); $classurl = sys_ReturnBqClassname($add, 9); $newstempstr = str_replace('[!--class.url--]', $classurl, $newstempstr); //下一篇 if (strstr($newstemptext, '[!--info.next--]')) { $next_r = $empire->fetch1("select isurl,titleurl,classid,id,title from {$dbtbpre}ecms_" . $class_r[$add[classid]][tbname] . " where id>{$add['id']} and classid='{$add['classid']}' order by id limit 1"); if (empty($next_r[id])) { $infonext = "<a href='" . $classurl . "'>" . $fun_r['HaveNoNextLink'] . "</a>"; } else { //链接 $nexttitleurl = sys_ReturnBqTitleLink($next_r); $infonext = "<a href='" . $nexttitleurl . "'>" . $next_r[title] . "</a>"; } $newstempstr = str_replace('[!--info.next--]', $infonext, $newstempstr); } //上一篇 if (strstr($newstemptext, '[!--info.pre--]')) { $next_r = $empire->fetch1("select isurl,titleurl,classid,id,title from {$dbtbpre}ecms_" . $class_r[$add[classid]][tbname] . " where id<{$add['id']} and classid='{$add['classid']}' order by id desc limit 1"); if (empty($next_r[id])) { $infonext = "<a href='" . $classurl . "'>" . $fun_r['HaveNoNextLink'] . "</a>"; } else { //链接 $nexttitleurl = sys_ReturnBqTitleLink($next_r); $infonext = "<a href='" . $nexttitleurl . "'>" . $next_r[title] . "</a>"; } $newstempstr = str_replace('[!--info.pre--]', $infonext, $newstempstr); } //投票 if (strstr($newstemptext, '[!--info.vote--]')) { $myvotetext = sys_GetInfoVote($add[classid], $add[id]); $newstempstr = str_replace('[!--info.vote--]', $myvotetext, $newstempstr); } //评分 if (strstr($newstemptext, '[!--pinfopfen--]')) { $pinfopfen = $add[infopfennum] ? round($add[infopfen] / $add[infopfennum]) : 0; $newstempstr = str_replace('[!--pinfopfen--]', $pinfopfen, $newstempstr); $newstempstr = str_replace('[!--infopfennum--]', $add[infopfennum], $newstempstr); } $string = $newstempstr; //替换变量 $string = str_replace('[!--p.title--]', strip_tags($ptitle), $string); $string = str_replace('[!--next.page--]', $thisnextlink, $string); $string = str_replace('[!--page.url--]', $truepage, $string); $string = str_replace('[!--title.select--]', $titleselect, $string); return $string; }
function EditorSetTranPic($picurl, $smallpic, $add) { $imgstr = "<img src='{$picurl}'"; if ($add[pic_autosize]) { $imgstr .= " onload='autosimg(this);' onmousewheel='return zoomimg(this);'"; } if ($add[pic_height]) { $imgstr .= " height='{$add['pic_height']}'"; } if ($add[pic_width]) { $imgstr .= " width='{$add['pic_width']}'"; } $imgstr .= " border='{$add['pic_border']}'"; if ($add[pic_alt]) { $imgstr .= " alt='{$add['pic_alt']}'"; } if ($add[pic_vspace]) { $imgstr .= " vspace='{$add['pic_vspace']}'"; } if ($add[pic_hspace]) { $imgstr .= " hspace='{$add['pic_hspace']}'"; } if ($add[pic_align]) { $imgstr .= " align='{$add['pic_align']}'"; } if (empty($add[pic_link])) { $add[pic_link] = $picurl; } $imgstr = "<a href='{$add['pic_link']}' target='{$add['pic_linktarget']}'>" . $imgstr . "></a>"; if ($add[pic_say]) { $imgstr .= "<br><span style='line-height=18pt'>" . ehtmlspecialchars($add[pic_say]) . "</span>"; } if ($add[pic_align] == 'center') { $imgstr = '<center>' . $imgstr . '</center>'; } return $imgstr; }
<?php if (!defined('InEmpireCMS')) { exit; } $public_diyr['pagetitle'] = '会员登录'; $url = "<a href=../../../>首页</a> > <a href=../cp/>会员中心</a> > 会员登录"; require ECMS_PATH . DASHBOARD . '/template/incfile/header.php'; ?> <br> <table width="500" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder"> <form name="form1" method="post" action="../doaction.php"> <input type=hidden name=ecmsfrom value="<?php echo ehtmlspecialchars($_GET['from']); ?> "> <input type=hidden name=enews value=login> <input name="tobind" type="hidden" id="tobind" value="<?php echo $tobind; ?> "> <tr class="header"> <td height="25" colspan="2"><div align="center">会员登录<?php echo $tobind ? ' (绑定账号)' : ''; ?> </div></td> </tr> <tr bgcolor="#FFFFFF"> <td width="23%" height="25">用户名:</td> <td width="77%" height="25"><input name="username" type="text" id="username" size="30"> <?php
$link = db_connect(); $empire = new mysqlquery(); $editor = 1; //验证用户 $lur = is_login(); $logininid = $lur['userid']; $loginin = $lur['username']; $loginrnd = $lur['rnd']; $loginlevel = $lur['groupid']; $loginadminstyleid = $lur['adminstyleid']; //ehash $ecms_hashur = hReturnEcmsHashStrAll(); //验证权限 CheckLevel($logininid, $loginin, $classid, "card"); $enews = ehtmlspecialchars($_GET['enews']); $time = ehtmlspecialchars($_GET['time']); $r[money] = 10; $r[cardfen] = 0; $r[carddate] = 0; $r[endtime] = "0000-00-00"; $r[card_no] = time(); $r[password] = strtolower(no_make_password(6)); $url = "<a href=ListCard.php" . $ecms_hashur['whehref'] . ">管理点卡</a> > 增加点卡"; if ($enews == "EditCard") { $cardid = (int) $_GET['cardid']; $r = $empire->fetch1("select card_no,password,money,cardfen,endtime,carddate,cdgroupid,cdzgroupid from {$dbtbpre}enewscard where cardid='{$cardid}' limit 1"); $url = "<a href=ListCard.php" . $ecms_hashur['whehref'] . ">管理点卡</a> > 修改点卡:<b>" . $r[card_no] . "</b>"; } //----------会员组 $sql = $empire->query("select groupid,groupname from {$dbtbpre}enewsmembergroup order by level"); while ($level_r = $empire->fetch($sql)) {
<?php echo stripSlashes($r[email]); ?> ) </td> <td height="25" colspan="2">发布时间: <?php echo $r[errortime]; ?> </td> </tr> <tr bgcolor="#FFFFFF"> <td height="25" colspan="3"> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1"> <tr> <td> <?php echo nl2br(ehtmlspecialchars(stripSlashes($r[errortext]))); ?> </td> </tr> </table></td> </tr> </table> <? } db_close(); $empire=null; ?> <table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="cccccc"> <tr bgcolor="#FFFFFF"> <td height="25">
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="../../data/images/qcss.css" rel="stylesheet" type="text/css"> <title>登录</title> </head> <body> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder"> <form name="form1" method="post" action="../doaction.php"> <input type=hidden name=ecmsfrom value="<?php echo ehtmlspecialchars($_GET['from']); ?> "> <input type=hidden name=prtype value="<?php echo ehtmlspecialchars($_GET['prt']); ?> "> <input type=hidden name=enews value=login> <tr class="header"> <td height="25" colspan="2"><div align="center">会员登陆</div></td> </tr> <tr bgcolor="#FFFFFF"> <td width="24%" height="25">用户名:</td> <td width="76%" height="25"><input name="username" type="text" id="username"></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25">密码:</td> <td height="25"><input name="password" type="password" id="password"></td> </tr> <tr bgcolor="#FFFFFF">
$link = db_connect(); $empire = new mysqlquery(); $editor = 1; //验证用户 $lur = is_login(); $logininid = $lur['userid']; $loginin = $lur['username']; $loginrnd = $lur['rnd']; $loginlevel = $lur['groupid']; $loginadminstyleid = $lur['adminstyleid']; //ehash $ecms_hashur = hReturnEcmsHashStrAll(); //验证权限 CheckLevel($logininid, $loginin, $classid, "member"); $userid = (int) $_GET['userid']; $username = ehtmlspecialchars($_GET['username']); $search = "&username="******"&userid=" . $userid . $ecms_hashur['ehref']; $page = (int) $_GET['page']; $page = RepPIntvar($page); $start = 0; $line = 20; //每页显示条数 $page_line = 12; //每页显示链接数 $offset = $page * $line; //总偏移量 $totalquery = "select count(*) as total from {$dbtbpre}enewsbuybak where userid='{$userid}'"; $num = $empire->gettotal($totalquery); //取得总条数 $query = "select * from {$dbtbpre}enewsbuybak where userid='{$userid}'"; $query = $query . " order by buytime desc limit {$offset},{$line}";
function ReNewsHtml($start, $classid, $from, $retype, $startday, $endday, $startid, $endid, $tbname, $havehtml) { global $empire, $public_r, $class_r, $fun_r, $dbtbpre, $etable_r; $tbname = RepPostVar($tbname); if (empty($tbname) || !eCheckTbname($tbname)) { printerror("ErrorUrl", "history.go(-1)"); } $start = (int) $start; //按ID if ($retype) { $startid = (int) $startid; $endid = (int) $endid; $add1 = $endid ? ' and id>=' . $startid . ' and id<=' . $endid : ''; } else { $startday = RepPostVar($startday); $endday = RepPostVar($endday); $add1 = $startday && $endday ? ' and truetime>=' . to_time($startday . ' 00:00:00') . ' and truetime<=' . to_time($endday . ' 23:59:59') : ''; } //按栏目 $classid = (int) $classid; if ($classid) { $where = empty($class_r[$classid][islast]) ? ReturnClass($class_r[$classid][sonclass]) : "classid='{$classid}'"; $add1 .= ' and ' . $where; } //不生成 $add1 .= ReturnNreInfoWhere(); //是否重复生成 $updatehavehtml = 'havehtml=0'; if ($havehtml != 1) { $add1 .= ' and havehtml=0'; $updatehavehtml = ''; } //优化 $yhadd = ''; $yhid = $etable_r[$tbname][yhid]; $yhvar = 'rehtml'; if ($yhid) { $yhadd = ReturnYhSql($yhid, $yhvar, 1); } $b = 0; $sql = $empire->query("select id,classid from {$dbtbpre}ecms_" . $tbname . "_index where " . $yhadd . "id>{$start}" . $add1 . " and checked=1 order by id limit " . $public_r[renewsnum]); while ($r = $empire->fetch($sql)) { $b = 1; $new_start = $r[id]; if ($class_r[$r[classid]][showdt] == 2) { continue; } GetHtml($r['classid'], $r['id'], '', 0, 1); //生成信息文件 } if (empty($b)) { //更新状态 if ($yhadd . $add1 == '') { $empire->query("update {$dbtbpre}ecms_" . $tbname . "_index set havehtml=1 where havehtml=0 and checked=1"); $empire->query("update {$dbtbpre}ecms_" . $tbname . " set havehtml=1 where havehtml=0"); } else { if ($updatehavehtml) { $updatehavehtml = ' and ' . $updatehavehtml; } if ($yhadd && $add1) { $truewhereindex = $yhadd . substr($add1, 5) . ' and checked=1'; $truewhere = $yhadd . substr($add1, 5); } elseif ($yhadd && !$add1) { $truewhereindex = $yhadd . 'checked=1'; $truewhere = substr($yhadd, 0, -5); } else { $truewhereindex = substr($add1, 5) . ' and checked=1'; $truewhere = substr($add1, 5); } $empire->query("update {$dbtbpre}ecms_" . $tbname . "_index set havehtml=1 where " . $truewhereindex . $updatehavehtml); $empire->query("update {$dbtbpre}ecms_" . $tbname . " set havehtml=1 where " . $truewhere . $updatehavehtml); } echo "<link rel=\"stylesheet\" href=\"../data/images/css.css\" type=\"text/css\"><center><b>" . $tbname . $fun_r[ReTableIsOK] . "!</b></center>"; db_close(); $empire = null; exit; } echo "<link rel=\"stylesheet\" href=\"../data/images/css.css\" type=\"text/css\"><meta http-equiv=\"refresh\" content=\"" . $public_r['realltime'] . ";url=ecmschtml.php?enews=ReNewsHtml&tbname={$tbname}&classid={$classid}&start={$new_start}&from=" . urlencode($from) . "&retype={$retype}&startday={$startday}&endday={$endday}&startid={$startid}&endid={$endid}&havehtml={$havehtml}&reallinfotime=" . ehtmlspecialchars($_GET['reallinfotime']) . hReturnEcmsHashStrHref(0) . "\">" . $fun_r[OneReNewsHtmlSuccess] . "(ID:<font color=red><b>" . $new_start . "</b></font>)"; exit; }
" size="35"> <font color="#666666">(值越小显示越前面)</font></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25">可购买的会员:</td> <td height="25"><select name="buygroupid" id="buygroupid"> <option value=0>不设置</option> <?php echo $buygroup; ?> </select></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25">类型说明:</td> <td height="25"><textarea name="gsay" cols="65" rows="6" id="gsay"><?php echo ehtmlspecialchars($r[gsay]); ?> </textarea></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25" colspan="2"><div align="center"> <input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"> </div></td> </tr> </table> </form> </body> </html> <?
$link = db_connect(); $empire = new mysqlquery(); $editor = 1; //验证用户 $lur = is_login(); $logininid = $lur['userid']; $loginin = $lur['username']; $loginrnd = $lur['rnd']; $loginlevel = $lur['groupid']; $loginadminstyleid = $lur['adminstyleid']; //ehash $ecms_hashur = hReturnEcmsHashStrAll(); $picurl = ehtmlspecialchars($_GET['picurl']); $pic_width = ehtmlspecialchars($_GET['pic_width']); $pic_height = ehtmlspecialchars($_GET['pic_height']); $url = ehtmlspecialchars($_GET['url']); ?> <title>广告预览</title> <a href="<?php echo $url; ?> " target=_blank><img src="<?php echo $picurl; ?> " border=0 width="<?php echo $pic_width; ?> " height="<?php echo $pic_height; ?> "></a>
} if ($enews == "DelSearchKey_all") { DelSearchKey_all($_POST, $logininid, $loginin); } $page = (int) $_GET['page']; $page = RepPIntvar($page); $start = 0; $line = 25; //每页显示条数 $page_line = 18; //每页显示链接数 $offset = $page * $line; //总偏移量 $query = "select * from {$dbtbpre}enewssearch"; $totalquery = "select count(*) as total from {$dbtbpre}enewssearch"; $classid = ehtmlspecialchars($_GET['classid']); $bclassid = 0; if ($classid != 'all' && strlen($classid) != 0) { $bclassid = $classid; $query .= " where trueclassid='" . intval($classid) . "'"; $totalquery .= " where trueclassid='" . intval($classid) . "'"; } $search = "&classid=" . $classid . $ecms_hashur['ehref']; //取得总条数 $num = $empire->gettotal($totalquery); $query .= " order by onclick desc limit {$offset},{$line}"; $sql = $empire->query($query); //类别 $fcfile = "../data/fc/ListEnews.php"; $class = "<script src=../data/fc/cmsclass.js></script>"; if (!file_exists($fcfile)) {
</textarea></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25">评论盖楼最高楼层</td> <td height="25"><input name="plmaxfloor" type="text" id="plmaxfloor" value="<?php echo $r[plmaxfloor]; ?> " size="38"> 楼 <font color="#666666">(0为不限)</font></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25" valign="top">评论引用内容格式:<br> <br> 评论ID:[!--plid--]<br> 发表者:[!--username--]<br> 评论内容:[!--pltext--]<br> 发表时间:[!--pltime--]</td> <td height="25"><textarea name="plquotetemp" cols="80" rows="8" id="plquotetemp"><?php echo ehtmlspecialchars(stripSlashes($r[plquotetemp])); ?> </textarea></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25"> </td> <td height="25"><input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"></td> </tr> </table> </form> </body> </html>
if (empty($id) || empty($classid)) { printerror("ErrorUrl", "history.go(-1)", 1); } if (empty($class_r[$classid][tbname]) || InfoIsInTable($class_r[$classid][tbname])) { printerror("ErrorUrl", "history.go(-1)", 1); } $n_r = $empire->fetch1("select * from {$dbtbpre}ecms_" . $class_r[$classid][tbname] . " where id='{$id}' limit 1"); if (!$n_r['id'] || $n_r['classid'] != $classid) { printerror("ErrorUrl", "history.go(-1)", 1); } $pubid = ReturnInfoPubid($classid, $id); $search = "&classid={$classid}&id=" . $id; //标题链接 $titleurl = sys_ReturnBqTitleLink($n_r); $title = stripSlashes($n_r[title]); $pagetitle = ehtmlspecialchars($title); //评分 $infopfennum = $n_r['infopfennum']; $pinfopfen = $infopfennum ? round($n_r['infopfen'] / $infopfennum) : 0; $url = ReturnClassLink($n_r[classid]) . " > <a href=" . $titleurl . ">" . $title . "</a> > " . $fun_r[pl]; } //使用模板 $rewritetempid = 0; if ($_GET['tempid']) { $tempid = (int) $_GET['tempid']; $tempnum = $empire->gettotal("select count(*) as total from " . GetTemptb("enewspltemp") . " where tempid='{$tempid}'"); $tempid = $tempnum ? $tempid : $public_r['defpltempid']; $search .= '&tempid=' . $tempid; $rewritetempid = $tempid; } else { if ($doaction == 'dozt') {
自动生成表单模板</font>)</td> <td height="25"><textarea name="add[mtemp]" cols="75" rows="20" id="add[mtemp]" style="WIDTH: 100%"><?php echo ehtmlspecialchars(stripSlashes($r[mtemp])); ?> </textarea></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25" valign="top">前台投稿表单模板<br> (<font color="#FF0000"> <input name="add[qmtype]" type="checkbox" id="add[qmtype]" value="1"<?php echo $mtype; ?> > 自动生成表单模板</font>) </td> <td height="25"><textarea name="add[qmtemp]" cols="75" rows="20" id="textarea2" style="WIDTH: 100%"><?php echo ehtmlspecialchars(stripSlashes($r[qmtemp])); ?> </textarea></td> </tr> <tr bgcolor="#FFFFFF"> <td rowspan="2" valign="top">信息列表名称</td> <td height="25"><input name="add[listfile]" type="text" id="add[listfile]" value="<?php echo $r[listfile]; ?> " size="43"> </td> </tr> <tr bgcolor="#FFFFFF"> <td height="25"><font color="#666666">(不设置为使用默认列表,增加列表可在e/data/html/list里增加文件,<a href="../../data/html/list/ReadMe.txt" target="_blank">点击这里</a>查看说明)</font></td> </tr> <tr bgcolor="#FFFFFF">