{"id":5021,"date":"2022-01-22T10:13:43","date_gmt":"2022-01-22T02:13:43","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=5021"},"modified":"2022-01-22T10:16:49","modified_gmt":"2022-01-22T02:16:49","slug":"%e5%b8%9d%e5%9b%bdcms%e4%b8%8b%e8%bd%bd%e8%bf%9c%e7%a8%8b%e5%9b%be%e7%89%87%e5%81%9a%e6%a0%87%e9%a2%98%e5%9b%be%e7%89%87","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/5021.html","title":{"rendered":"\u5e1d\u56fdCMS\u4e0b\u8f7d\u8fdc\u7a0b\u56fe\u7247\u505a\u6807\u9898\u56fe\u7247"},"content":{"rendered":"

\u7528\u706b\u8f66\u5934\u91c7\u96c6\u4fe1\u606f\u7684\u7ad9\u957f\uff0c\u5982\u679c\u60f3\u91c7\u96c6\u6807\u9898\u56fe\u7247\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e2a\u9ebb\u70e6\uff1a\u8981\u5148\u4e0b\u8f7d\u5230\u672c\u5730\u518d\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u3002\u672c\u6587\u4ecb\u7ecd\u4e00\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06\u8fdc\u7a0b\u56fe\u7247\u7f51\u5740\u7528\u4e8e\u6807\u9898\u56fe\u7247\u3002<\/p>\n

\u7b2c\u4e00\u6b65\uff1a\u6dfb\u52a0\u5b57\u6bb5\u5904\u7406\u51fd\u6570<\/h4>\n

\u5c06\u4ee5\u4e0b\u51fd\u6570\u63d2\u5165\u5230 e\/class\/userfun.php \u6587\u4ef6\u4e2d<\/p>\n

function f_picurl($mid,$f,$isadd,$isq,$value,$cs){\r\n\tglobal $empire,$dbtbpre,$public_r;\r\n\tif($value){\r\n\t\treturn $value;\r\n\t}\r\n\t$picurl=$_POST['picurl'];\r\n\t$classid=(int)$_POST['classid'];\r\n\tif(empty($picurl)||!$classid){\r\n\t\treturn $value;\r\n\t}\r\n\t$r=DoTranUrl($picurl,$classid);\r\n\tif(empty($r['tran'])){\r\n\t\treturn $value;\r\n\t}\r\n\t$r['filesize']=(int)$r['filesize'];\r\n\t$filepass=(int)$_POST['filepass'];\r\n\t$username='picurl';\r\n\t$sql=eInsertFileTable($r['filename'],$r['filesize'],$r['filepath'],$username,$classid,$r['filename'],1,$filepass,$filepass,$public_r['fpath'],0,$modtype,$fstb);\r\n\treturn $r['url'];\r\n}\r\n<\/code><\/pre>\n

 <\/p>\n

\u7b2c\u4e8c\u6b65\uff1a\u4fee\u6539 titlepic \u5b57\u6bb5<\/h4>\n

\u5728\u201c\u540e\u53f0\u589e\u52a0\u4fe1\u606f\u5904\u7406\u51fd\u6570\u201d\u5904\u586b\u4e0a f_picurl \uff0c\u7136\u540e\u4fee\u6539\u201c\u8f93\u5165\u8868\u5355\u66ff\u6362html\u4ee3\u7801\u201d\u6210\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n

\u624b\u52a8\u4e0a\u4f20\uff1a<input name=\"titlepic\" type=\"text\" id=\"titlepic\" value=\"<?=$ecmsfirstpost==1?\"\":ehtmlspecialchars(stripSlashes($r[titlepic]))?>\" size=\"45\">\r\n<a onclick=\"window.open('ecmseditor\/FileMain.php?type=1&classid=<?=$classid?>&infoid=<?=$id?>&filepass=<?=$filepass?>&sinfo=1&doing=1&field=titlepic<?=$ecms_hashur[ehref]?>','','width=700,height=550,scrollbars=yes');\" title=\"\u9009\u62e9\u5df2\u4e0a\u4f20\u7684\u56fe\u7247\"><img src=\"..\/data\/images\/changeimg.gif\" border=\"0\" align=\"absbottom\"><\/a>\r\n<br>\r\n\u8fdc\u7a0b\u4e0b\u8f7d\uff1a<input name=\"picurl\" type=\"text\" id=\"picurl\" size=\"45\"><\/code><\/pre>\n

\u6548\u679c\u9884\u89c8<\/h4>\n

\"cb20e6114fcd8a4ceddeda4a2f916aa7\"<\/p>\n","protected":false},"excerpt":{"rendered":"

\u7528\u706b\u8f66\u5934\u91c7\u96c6\u4fe1\u606f\u7684\u7ad9\u957f\uff0c\u5982\u679c\u60f3\u91c7\u96c6\u6807\u9898\u56fe\u7247\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e2a\u9ebb\u70e6\uff1a\u8981\u5148\u4e0b\u8f7d\u5230\u672c\u5730\u518d\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u3002\u672c\u6587\u4ecb\u7ecd\u4e00\u79cd\u65b9\u6cd5\uff0c […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1580,1589,802],"class_list":["post-5021","post","type-post","status-publish","format-standard","hentry","category-web","tag-cms","tag-1589","tag-802"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5021","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=5021"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5021\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=5021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=5021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=5021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}