{"id":133,"date":"2006-11-28T14:44:56","date_gmt":"2006-11-28T06:44:56","guid":{"rendered":"http:\/\/twycf.com\/wordpress\/archives\/133"},"modified":"2006-11-28T15:22:34","modified_gmt":"2006-11-28T07:22:34","slug":"userinfophp-%e7%a9%ba%e7%99%bd%e9%a0%81%e9%9d%a2%e6%87%b6%e4%ba%ba%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/twycf.com\/?p=133","title":{"rendered":"userinfo.php \u7a7a\u767d\u9801\u9762\u61f6\u4eba\u89e3\u6c7a\u65b9\u6cd5"},"content":{"rendered":"<p>\u9019\u4e00\u9663\u5b50\u5fd9\u7684\u660f\u5929\u6697\u5730\uff0c\u90e8\u843d\u683c\u4e0a\u4e5f\u96dc\u8349\u53e2\u751f\u4e86\uff0c\u4ee5\u5f8c\u5982\u679c\u771f\u7684\u5f88\u5fd9\uff0c\u53ef\u80fd\u6703\u51fa\u73fe\u53ea\u6709\u77ed\u77ed\u5e7e\u500b\u5b57\u7684\u6587\u7ae0\uff0c\u53cd\u6b63\u662f\u5de5\u4f5c\u96dc\u8a18\u561b\u2026<br \/>\nmodules\/profile\/userinfo.php<br \/>\n\u9019\u4e00\u96bb\u7a0b\u5f0f\u6709\u6642\u5019\u6703\u51fa\u73fe\u7a7a\u767d\u9801\u9762\uff0c\u4e4b\u524d\u56e0\u70ba\u6709\u6642\u6b63\u5e38\uff0c\u6709\u6642\u4e0d\u6b63\u5e38\uff0c\u6240\u4ee5\u6c92\u6709\u76f4\u63a5\u61f7\u7591\u5230\u7a0b\u5f0f\u78bc\u8eab\u4e0a\uff0c\u4f46\u6700\u8fd1\u51fa\u73fe\u7684\u983b\u7387\u592a\u904e\u983b\u7e41\uff0c\u72e0\u4e0b\u5fc3\u4f86\u505a\u5168\u9762\u7684 Debug.<!--more--><br \/>\n\u628auserinfo.php\u52a0\u5165Debug Code \u5f8c\uff0c\u958b\u59cb\u57f7\u884c\u4fbf\u767c\u89ba\u7a0b\u5f0f\u5361\u5728\u547c\u53eb XoopsModule \u7684 search \u6210\u54e1<br \/>\n<coolcode linenum=\"off\">$results =&#038; $modules[$mid]->search(&#8221;, &#8221;, 5, 0, $thisUser->getVar(&#8216;uid&#8217;));<\/coolcode>\u800c\u8981\u8ffd\u8e64\u9019\u4e00\u96bb\u7a0b\u5f0f\uff0c\u8981\u76f4\u63a5\u53bb \/kernel\/module.php \u627e search \u9019\u4e00\u500b\u51fd\u5f0f\uff0c\u540c\u6a23\u7684\u63d2\u5165 Debug Code \u5f8c\uff0c\u57f7\u884c\u4fbf\u767c\u89ba\u7a0b\u5f0f\u53c8\u5361\u5728<br \/>\n<coolcode linenum=\"off\">if (file_exists(XOOPS_ROOT_PATH.&#8221;\/modules\/&#8221;.$this->getVar(&#8216;dirname&#8217;).&#8217;\/&#8217;.$search[&#8216;file&#8217;])) {<br \/>\n  include_once XOOPS_ROOT_PATH.&#8217;\/modules\/&#8217;.$this->getVar(&#8216;dirname&#8217;).&#8217;\/&#8217;.$search[&#8216;file&#8217;];<br \/>\n} else {<br \/>\n  return false;<br \/>\n}<\/coolcode><br \/>\n\u8ffd\u5230\u5f8c\u9762\uff0c\u539f\u4f86\u662fuserinfo.php \u4ed6\u6703\u53bb\u641c\u5c0b\u76ee\u524d\u4f7f\u7528\u8005\uff0c\u5728\u5404\u500b\u6a21\u7d44\u6700\u65b0\u767c\u8868\u7684\u6587\u7ae0\uff0c\u7d50\u679c\u56e0\u70ba\u6709\u4e00\u500b\u6a21\u7d44\u7684\u7684\u641c\u5c0b\u529f\u80fd\u6c92\u6709\u5b9a\u7fa9\u597d(\u901a\u5e38\u662f\u56e0\u70ba\u540c\u6a23\u7684\u6a21\u7d44\u88dd\u4e86\u5169\u500b\uff0c\u4f46\u662f\u641c\u5c0b\u7684\u529f\u80fd\u6c92\u6709\u8a2d\u5b9a\u597d\uff0c\u6bd4\u5982 iContent\u3001iContent1 \u5169\u500b\u540c\u6a23\u7684\u6a21\u7d44)\uff0c\u9020\u6210\u4ed6\u53bbinclude \u641c\u5c0b\u7a0b\u5f0f\u6642\uff0c\u6574\u500b\u6d41\u7a0b\u4e2d\u65b7\uff0c\u8b8a\u6210\u7a7a\u767d\u9801\u9762\uff0c\u89e3\u6c7a\u65b9\u6cd5\u5f88\u7c21\u55ae\uff0c\u5c31\u662f\u628a\u9019\u4e00\u500b\u529f\u80fd\u95dc\u6389( \u641c\u5c0b\u76ee\u524d\u4f7f\u7528\u8005\uff0c\u5728\u5404\u500b\u6a21\u7d44\u6700\u65b0\u767c\u8868\u6587\u7ae0\u7684\u529f\u80fd)<br \/>\n\u6211\u4e5f\u5728xoops \u7db2\u7ad9\u627e\u5230\u76f8\u95dc\u7684\u8a0e\u8ad6\uff0c\u7db2\u5740\u5982\u4e0b\uff1a<br \/>\n<a href=\"http:\/\/dev.xoops.org\/modules\/xfmod\/tracker\/?func=detail&#038;aid=4157&#038;group_id=1179&#038;atid=896\">[ #4157 ] Pageworks search failing (breaks userinfo.php)<\/a><br \/>\n\u6240\u8b02\u7684\u61f6\u4eba\u89e3\u6c7a\u65b9\u6cd5\uff0c\u5c31\u662f\u76f4\u63a5\u628a\u9019\u500b\u529f\u80fd\u95dc\u6389\uff0c\u5982\u679c\u8981\u8b93\u9019\u4e00\u500b\u529f\u80fd\u6b63\u5e38\u904b\u4f5c\uff0c\u9700\u8981\u91cd\u65b0\u5b9a\u7fa9\u91cd\u8907\u5b89\u88dd\u7684\u6a21\u7d44\u88e1\u7684 search function.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9019\u4e00\u9663\u5b50\u5fd9\u7684\u660f\u5929\u6697\u5730\uff0c\u90e8\u843d\u683c\u4e0a\u4e5f\u96dc\u8349\u53e2\u751f\u4e86\uff0c\u4ee5\u5f8c\u5982\u679c\u771f\u7684\u5f88\u5fd9\uff0c\u53ef\u80fd\u6703\u51fa\u73fe\u53ea\u6709\u77ed\u77ed\u5e7e\u500b\u5b57\u7684\u6587\u7ae0\uff0c\u53cd\u6b63\u662f\u5de5\u4f5c\u96dc\u8a18\u561b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","category-xoops"],"_links":{"self":[{"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=133"}],"version-history":[{"count":0,"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/posts\/133\/revisions"}],"wp:attachment":[{"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}