鏈夋椂鍊欙紝鍥犱负闇€瑕佺粰缁囨ⅵDedeCMS缃戠珯鐨勮嚜瀹氫箟琛ㄥ崟娣诲姞楠岃瘉鐮侊紝闃叉鎭舵剰濉啓琛ㄥ崟鎻愪氦銆?/p>
鍙互鐢ㄤ互涓嬬殑鏂规硶鏉ュ疄鐜帮細
棣栧厛锛岃鎵惧埌/plus/diy.php杩欎釜鏂囦欢
鍦ㄥご閮ㄥ紩鍏ユ枃浠讹細
require_once(DEDEINC.’/membermodel.cls.php’);
鐒跺悗鎵惧埌
elseif($do==2)
{鍦ㄨ繖涓湴鏂瑰姞鍏ヤ唬鐮佸潡
//楠岃瘉鐮侀獙璇?/p>
$svali=GetCkVdValue();
if(preg_match(“/1/”,$safe_gdopen)){
if(strtolower($vdcode)!=$svali||$svali==”)
{
ResetVdValue();
ShowMsg(‘楠岃瘉鐮侀敊璇紒’,’-1′);
exit();
}
}
淇敼濂藉悗淇濆瓨涓€涓嬫枃浠躲€?/p>
绗簩姝ワ細鍦ㄤ娇鐢ㄩ獙璇佺爜鐨勮嚜瀹氫箟琛ㄥ崟闈欐€侀〉闈腑鎻掑叆浠g爜鍧?/p>
鐪嬩笉娓咃紵鐐瑰嚮鏇存崲
鍦ㄨ繖涓潤鎬侀〉闈㈤噷杩樺緱寮曠敤JQuery
鍐嶅姞鍏S浠g爜鍧?/p>
$=jQuery;
functionchangeAuthCode(){
varnum=newDate().getTime();
varrand=Math.round(Math.random()*10000);
num=num+rand;
$(‘#ver_code’).css(‘visibility’,’visible’);
if($(“#vdimgck”)[0]){
$(“#vdimgck”)[0].src=”../include/vdimgck.php?tag=”+num;
}
returnfalse;
}
濂戒簡锛岀幇鍦ㄨ瘯涓€璇曪紝鏄笉鏄彲浠ュ疄鐜伴獙璇佺爜鐨勬彁浜や簡锛熶竴涓畝鍗曠殑DedeCMS鑷畾涔夎〃鍗昫ede妯℃澘鑷甫楠岃瘉鐮佺殑鍔熻兘灏卞疄鐜颁簡銆?/p>
缁囨ⅵ鑷畾涔夎〃鍗曠殑搴旂敤闈炲父鏂逛究锛屼笉绠$敤鍦ㄤ粈涔堝湴鏂癸紝鏀堕泦淇℃伅鐗瑰埆鏂逛究鍒朵綔鍜岀鐞嗐€?/p>
鏈夊涓嬪嚑涓缓璁紝鎶婁笅鎷夋鍜屽崟閫夋寜鎵湪鍚庡彴鍋氭垚鍗曡鏂囨湰锛岃繖鏍风殑璇濅笉绠′綘鎻愪氦鐨勬槸涓嬫媺妗嗘垨鏄崟閫夛紝閮藉彲浠ユ湁鏁堢殑鎺ユ敹瀹冪殑鍊笺€傚鏋滃悗鍙板氨鍋氭垚鍗曢€夋垨涓嬫媺锛屽鏋滄敼浜嗛粯璁ゅ€硷紝鎻愪氦鐨勮〃鍗曞€艰窡鍚庡彴榛樿鍊煎涓嶄笂鐨勮瘽灏变細鍑虹幇鎻愪氦涓嶆垚鍔熺殑鎯呭喌锛屽氨鏄墠鍙版彁浜ょ殑鏃跺€欓€夋嫨浜嗭紝浣嗗悗鍙扮湅涓嶅埌鏁版嵁銆傝嫢鏄仛鎴愬崟琛屾枃鏈紝鎻愪氦鐨勫€煎氨浼氫互鏂囨湰鐨勫舰寮忓啓鍏ュ埌鍚庡彴锛岃〃鍗曚慨鏀瑰€间篃鏇村姞鏄惧緱鏂逛究浜嗐€?/p>
鎻愪氦涔嬪悗浼氭樉绀虹粐姊︾殑榛樿鎻愮ず淇℃伅”鍙嬫儏鎻愮ず”鍑犵杩囧悗灏辫嚜鍔ㄨ浆鍒伴椤点€傚浣曟墠鑳借鎻愪氦鐨勪俊鎭仠鐣欙紝骞惰鐢ㄦ埛纭鎵€鎻愪氦鐨勪俊鎭€?/p>
鎯充簡濡備笅鏂瑰紡銆傜粰diy.php閲屾彁浜ゆ垚鍔熷悗杈撳叆鍥哄畾鍊艰€屼笉鏄嚜甯︾殑璺宠浆鏂规硶銆傚涓嬶細
if($action == ‘post’)
{
if(empty($do))
{
$postform = $diy->getForm(true);
include DEDEROOT.”/templets/plus/{$diy->postTemplate}”;
exit();
}
elseif($do == 2)
{
$dede_fields = empty($dede_fields) ? ” : trim($dede_fields);
$dede_fieldshash = empty($dede_fieldshash) ? ” : trim($dede_fieldshash);
if(!empty($dede_fields))
{
if($dede_fieldshash != md5($dede_fields.$cfg_cookie_encode))
{
showMsg(‘鏁版嵁鏍¢獙涓嶅锛岀▼搴忚繑鍥?, ‘-1’);
exit();
}
}
$diyform = $dsql->getOne(“select * from where diyid=’$diyid’ “);
if(!is_array($diyform))
{
showmsg(‘鑷畾涔夎〃鍗曚笉瀛樺湪’, ‘-1’);
exit();
}
$addvar = $addvalue = ”;
if(!empty($dede_fields))
{
$fieldarr = explode(‘;’, $dede_fields);
if(is_array($fieldarr))
{
foreach($fieldarr as $field)
{
if($field == ”) continue;
$fieldinfo = explode(‘,’, $field);
if($fieldinfo[1] == ‘textdata’)
{
${$fieldinfo[0]} = FilterSearch(stripslashes(${$fieldinfo[0]}));
${$fieldinfo[0]} = addslashes(${$fieldinfo[0]});
}
else
{
${$fieldinfo[0]} = GetFieldValue(${$fieldinfo[0]}, $fieldinfo[1],0,’add’,”,’diy’, $fieldinfo[0]);
}
$addvar .= ‘, `’.$fieldinfo[0].’`’;
$addvalue .= “, ‘”.${$fieldinfo[0]}.”‘”;
}
}
}
$query = “insert into `{$diy->table}` (`id`, `ifcheck` $addvar) values (NULL, 0 $addvalue); “;
if($dsql->executenonequery($query))
{
$id = $dsql->GetLastID();
if($diy->public == 2)
{
//diy.php?action=view&diyid={$diy->diyid}&id=$id
$goto = “diy.php?action=list&diyid={$diy->diyid}”;
$bkmsg = ‘鍙戝竷鎴愬姛锛岀幇鍦ㄨ浆鍚戣〃鍗曞垪琛ㄩ〉…’;
}
else
{
$goto = !empty($cfg_cmspath) ? $cfg_cmspath : ‘/’;
$bkmsg = ‘鍙戝竷鎴愬姛锛岃绛夊緟绠$悊鍛樺鐞?..’;
}
echo ‘
NI宸叉垚鍔熸彁浜よ鍗曪紝璇蜂粩缁嗘牳瀵逛綘鐨勪俊鎭紒
function ReplaceAll(str,sptr,sptr1)
{
while (str.indexOf(sptr) >= 0)
{
str = str.replace(sptr, sptr1);
}
return str;
}
descria=”,NI鐨勫鍚嶏細,鑱旂郴鐢佃瘽锛?閫佽揣鍦板潃锛?璐拱浜у搧锛?鏀粯鏂瑰紡锛?璁㈣揣鐣欒█锛?b”;
var descri=new Array();
descri=descria.split(“,”);
str= “‘.$addvalue.'” ;
str=ReplaceAll(str,”\'”,””);
var strarray=new Array();
strarray=str.split(“,”) ;
for(i=0;i<7;i++){
document.write(“- “+descri[i]+strarray[i]+”
“);
}
织梦DedeCMS模板织梦DedeCMS列表有缩略图则显示,无缩图则不显示图
织梦DedeCMS模板织梦DedeCMS列表有缩略图则显示,无缩图则不显示图 | 织梦DedeCMS模板织梦DedeCMS列表有缩略图则显示,无缩图则不显示图 ...
织梦DedeCMS模板内容页列表页首页调用文章tag带url链接的教程
织梦DedeCMS模板内容页列表页首页调用文章tag带url链接的教程 | 织梦DedeCMS模板内容页列表页首页调用文章tag带url链接的教程 ...
function ReplaceAll(str,sptr,sptr1)
{
while (str.indexOf(sptr) >= 0)
{
str = str.replace(sptr, sptr1);
}
return str;
}
descria=”,NI鐨勫鍚嶏細,鑱旂郴鐢佃瘽锛?閫佽揣鍦板潃锛?璐拱浜у搧锛?鏀粯鏂瑰紡锛?璁㈣揣鐣欒█锛?b”;
var descri=new Array();
descri=descria.split(“,”);
str= “‘.$addvalue.'” ;
str=ReplaceAll(str,”\'”,””);
var strarray=new Array();
strarray=str.split(“,”) ;
for(i=0;i<7;i++){
document.write(“
}
织梦DedeCMS模板织梦DedeCMS列表有缩略图则显示,无缩图则不显示图 | 织梦DedeCMS模板织梦DedeCMS列表有缩略图则显示,无缩图则不显示图 ...
织梦DedeCMS模板内容页列表页首页调用文章tag带url链接的教程 | 织梦DedeCMS模板内容页列表页首页调用文章tag带url链接的教程 ...