{"id":1427,"date":"2024-05-22T17:15:11","date_gmt":"2024-05-22T09:15:11","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1427"},"modified":"2024-05-23T09:09:00","modified_gmt":"2024-05-23T01:09:00","slug":"%e7%bb%87%e6%a2%a6dedecms%e6%8f%90%e7%a4%ba%e4%bf%a1%e6%81%af%e6%8f%90%e7%a4%ba%e6%a1%86%e7%be%8e%e5%8c%96","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1427.html","title":{"rendered":"\u7ec7\u68a6dedecms\u63d0\u793a\u4fe1\u606f\u63d0\u793a\u6846\u7f8e\u5316"},"content":{"rendered":"

DEDECMS\u7684\u9ed8\u8ba4\u63d0\u793a\u4fe1\u606f\u6846\u4e0d\u592a\u597d\u770b\uff0c\u5982\u4e0b\u56fe<\/p>\n


\n<\/a>
\"3333\"<\/a><\/p>\n

\u4e0d\u592a\u597d\u770b\u3002<\/p>\n

\u7f8e\u5316\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n

\u6253\u5f00 \\include\\common.func.php \u627e\u5230<\/p>\n

function ShowMsg($msg, $gourl, $onlymsg=0, $limittime=0)<\/pre>\n

\u5927\u7ea6\u5728229\u884c\uff0c\u4e00\u76f4\u5230291\u884c\uff0c\u5168\u90e8\u66ff\u6362\u6210<\/p>\n

function ShowMsg($msg, $gourl, $onlymsg=0, $limittime=0)\r\n{\r\n    if(empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..';\r\n\r\n    $htmlhead  = \"<html>\\r\\n<head>\\r\\n<title>\u63d0\u793a\u4fe1\u606f<\/title>\\r\\n<meta http-equiv=\\\"Content-Type\\\" content=\\\"text\/html; charset=gb2312\\\" \/>\\r\\n<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\\\">\\r\\n<meta name=\\\"renderer\\\" content=\\\"webkit\\\">\\r\\n<meta http-equiv=\\\"Cache-Control\\\" content=\\\"no-siteapp\\\" \/>\";\r\n    $htmlhead .= \"<base target='_self'\/>\\r\\n<style>div{line-height:160%;}<\/style><\/head>\\r\\n<body leftmargin='0' topmargin='0' bgcolor='#FFFFFF'>\".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '').\"\\r\\n<center>\\r\\n<script>\\r\\n\";\r\n    $htmlfoot  = \"<\/script>\\r\\n<\/center>\\r\\n<\/body>\\r\\n<\/html>\\r\\n\";\r\n\r\n    $litime = ($limittime==0 ? 1000 : $limittime);\r\n    $func = '';\r\n\r\n    if($gourl=='-1')\r\n    {\r\n        if($limittime==0) $litime = 5000;\r\n        $gourl = \"javascript:history.go(-1);\";\r\n    }\r\n\r\n    if($gourl=='' || $onlymsg==1)\r\n    {\r\n        $msg = \"<script>alert(\\\"\".str_replace(\"\\\"\",\"\u201c\",$msg).\"\\\");<\/script>\";\r\n    }\r\n    else\r\n    {\r\n        \/\/\u5f53\u7f51\u5740\u4e3a:close::objname \u65f6, \u5173\u95ed\u7236\u6846\u67b6\u7684id=objname\u5143\u7d20\r\n        if(preg_match('\/close::\/',$gourl))\r\n        {\r\n            $tgobj = trim(preg_replace('\/close::\/', '', $gourl));\r\n            $gourl = 'javascript:;';\r\n            $func .= \"window.parent.document.getElementById('{$tgobj}').style.display='none';\\r\\n\";\r\n        }\r\n\r\n        $func .= \"      var pgo=0;\r\n      function JumpUrl(){\r\n        if(pgo==0){ location='$gourl'; pgo=1; }\r\n      }\\r\\n\";\r\n        $rmsg = $func;\r\n\t\t$rmsg .= \"document.write(\\\"<style>body{background:#F6F6F6}.tips-box{margin-top:50px;padding:0;width:450px;border:10px solid #E8E8E8;background:#fff;color:#444;font-family:\u5fae\u8f6f\u96c5\u9ed1}.tips .title{margin:0 20px;padding:15px 0;border-bottom:1px dotted #DDD;text-align:left;font-size:15px}.tips .title p{padding-left:10px;height:18px;border-left:2px solid #268B26;font-weight:600;line-height:18px;margin: 0;}.tips .content{position:relative;padding:30px;height:120px;background:#fff;color:#666;font-size:15px}.tips .content p.tip{color:#999;font-size:1px}.tips .content a.go{display:block;margin:15px auto 0;padding:6px 10px;width:80px;border:1px solid #268B26;border-radius:3px;color:#268B26;text-decoration:blink;font-size:13px}.tips .content a:hover{background:#268B26;color:#fff}<\/style>\\\");\\r\\n;\";\r\n        $rmsg .= \"document.write(\\\"<div class='tips tips-box'>\";\r\n        $rmsg .= \"<div class='title'><p>\u63d0\u793a\u4fe1\u606f<\/p><\/div>\\\");\\r\\n\";\r\n        $rmsg .= \"document.write(\\\"<div class='content'>\\\");\\r\\n\";\r\n        $rmsg .= \"document.write(\\\"\".str_replace(\"\\\"\",\"\u201c\",$msg).\"\\\");\\r\\n\";\r\n        $rmsg .= \"document.write(\\\"\";\r\n\r\n        if($onlymsg==0)\r\n        {\r\n            if( $gourl != 'javascript:;' && $gourl != '')\r\n            {\r\n                $rmsg .= \"<a href='{$gourl}' class='go'>\u70b9\u51fb\u8df3\u8f6c<\/a>\";\r\n                $rmsg .= \"<br\/><\/div>\\\");\\r\\n\";\r\n                $rmsg .= \"setTimeout('JumpUrl()',$litime);\";\r\n            }\r\n            else\r\n            {\r\n                $rmsg .= \"<br\/><\/div>\\\");\\r\\n\";\r\n            }\r\n        }\r\n        else\r\n        {\r\n            $rmsg .= \"<br\/><br\/><\/div>\\\");\\r\\n\";\r\n        }\r\n        $msg  = $htmlhead.$rmsg.$htmlfoot;\r\n    }\r\n    echo $msg;\r\n}\r\n<\/code><\/pre>\n

 <\/p>\n

\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n

\"2222\"<\/p>\n

\u662f\u4e0d\u662f\u597d\u770b\u591a\u4e86\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"

DEDECMS\u7684\u9ed8\u8ba4\u63d0\u793a\u4fe1\u606f\u6846\u4e0d\u592a\u597d\u770b\uff0c\u5982\u4e0b\u56fe \u4e0d\u592a\u597d\u770b\u3002 \u7f8e\u5316\u65b9\u6cd5\u5982\u4e0b\uff1a \u6253\u5f00 \\include\\commo […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,447,180,448],"class_list":["post-1427","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-447","tag-180","tag-448"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=1427"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1427\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}