首页 >

缁囨ⅵDedeCMS缃戠珯缁欒嚜瀹氫箟琛ㄥ崟鍔犵粐姊edeCMS妯℃澘鑷甫楠岃瘉鐮佺殑鏂规硶

鏈夋椂鍊欙紝鍥犱负闇€瑕佺粰缁囨ⅵDedeCMS缃戠珯鐨勮嚜瀹氫箟琛ㄥ崟娣诲姞楠岃瘉鐮侊紝闃叉鎭舵剰濉啓琛ㄥ崟鎻愪氦銆?/p>缁囨ⅵDedeCMS缃戠珯缁欒嚜瀹氫箟琛ㄥ崟鍔犵粐姊edeCMS妯℃澘鑷甫楠岃瘉鐮佺殑鏂规硶

鍙互鐢ㄤ互涓嬬殑鏂规硶鏉ュ疄鐜帮細

棣栧厛锛岃鎵惧埌/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]+”
  • “);
    }


鍙嬫儏鎻愮ず锛歂I鐨勮鍗曞凡鎻愪氦鎴愬姛锛岀殑瀹㈡湇浼氬敖蹇笌浣犲彇寰楄仈绯?纭骞跺叧闂?/a> 鎴?杩斿洖淇敼




缁囨ⅵDedeCMS缃戠珯缁欒嚜瀹氫箟琛ㄥ崟鍔犵粐姊edeCMS妯℃澘鑷甫楠岃瘉鐮佺殑鏂规硶
  • Discuz!应用中心安装模板提示版本号不匹配的搞定方式
  • Discuz!应用中心安装模板提示版本号不匹配的搞定方式 | Discuz!应用中心安装模板提示版本号不匹配的搞定方式 ...

    缁囨ⅵDedeCMS缃戠珯缁欒嚜瀹氫箟琛ㄥ崟鍔犵粐姊edeCMS妯℃澘鑷甫楠岃瘉鐮佺殑鏂规硶
  • 织梦DedeCMS模板织梦DedeCMS列表有缩略图则显示,无缩图则不显示图
  • 织梦DedeCMS模板织梦DedeCMS列表有缩略图则显示,无缩图则不显示图 | 织梦DedeCMS模板织梦DedeCMS列表有缩略图则显示,无缩图则不显示图 ...

    缁囨ⅵDedeCMS缃戠珯缁欒嚜瀹氫箟琛ㄥ崟鍔犵粐姊edeCMS妯℃澘鑷甫楠岃瘉鐮佺殑鏂规硶
  • 织梦DedeCMS模板内容页列表页首页调用文章tag带url链接的教程
  • 织梦DedeCMS模板内容页列表页首页调用文章tag带url链接的教程 | 织梦DedeCMS模板内容页列表页首页调用文章tag带url链接的教程 ...