{"id":689,"date":"2007-11-14T14:51:33","date_gmt":"2007-11-14T05:51:33","guid":{"rendered":"http:\/\/blog.talerpg.net\/gento\/?p=688"},"modified":"2007-11-14T14:51:33","modified_gmt":"2007-11-14T05:51:33","slug":"xoops-xcl%e8%a6%9a%e6%9b%b81","status":"publish","type":"post","link":"https:\/\/trpg.work\/otneg\/2007\/11\/14\/xoops-xcl%e8%a6%9a%e6%9b%b81\/","title":{"rendered":"[Xoops] XCL\u899a\u66f8[1]"},"content":{"rendered":"<p>\u3000\u4f5c\u696d\u8a18\u9332\u30ce\u30fc\u30c8\u306b\u66f8\u3044\u305f\u3093\u3060\u3051\u3069\u3001\u3053\u3063\u3061\u306b\u3082\u4e00\u5fdc\u3002<br \/>\n\u3000\u30e6\u30fc\u30b6\u60c5\u5831\u306e\u9805\u76ee\u3092\u5897\u3084\u3059\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3002<br \/>\n\uff08\u8a3b\uff1a\u3053\u308c\u3060\u3051\u3060\u3068\u30e6\u30fc\u30b6\u767b\u9332\u9805\u76ee\u3092\u5897\u3084\u3057\u3066\u3082 DB \u306b\u306f\u53cd\u6620\u3055\u308c\u306a\u3044\uff09<br \/>\n<span style=\"color:#FF0000\">\uff08\u8a3b2\uff1a\u7d20\u4eba\u306e Hack \u306a\u306e\u3067\u3001\u771f\u4f3c\u3057\u3066\u30c8\u30e9\u30d6\u3063\u3066\u3082\u8cac\u4efb\u306f\u3068\u308c\u307e\u305b\u3093(\u6c57)\uff09<\/span><\/p>\n<p><!--more--><br \/>\n*\u3000*\u3000*<br \/>\n<span style=\"color:#FF0000\">\u203b\u6ce8\u610f\uff01\uff1aHack \u3059\u308b\u969b\u306f\u5f8c\u3067\u7b87\u6240\u304c\u5206\u304b\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3053\u3068\u3002<\/span><\/p>\n<p><strong>1. phpMyAdmin \u3067\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u8ffd\u52a0<\/strong><br \/>\n\u3000{prefix}_user \u30c6\u30fc\u30d6\u30eb\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8ffd\u52a0\u3002<br \/>\n\u3000\u3000\u30fb\u6570\u5024\uff1aTINYINT\uff08\u7d76\u5bfe\u5024\u306e\u307f\u3092\u6271\u3046\u306a\u3089 UNSIGNED \u306b\u8a2d\u5b9a\uff09<br \/>\n\u3000\u3000\u30fb\u6587\u5b57\u5217\uff1aVARCHAR<\/p>\n<p><strong>2. \u8a00\u8a9e\u5b9a\u6570\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\uff08\u3053\u308c\u3082Hack\uff1f\uff09<\/strong><br \/>\n\u3000\u51fa\u529b\u3059\u308b\u8a00\u8a9e\u5b9a\u6570\u3092\u7de8\u96c6\u3059\u308b\u3002<br \/>\n\u3000\u6271\u3046\u30d5\u30a1\u30a4\u30eb\u306f \/modules\/user\/language \u4ee5\u4e0b\u3001\u5404\u8a00\u8a9e main.php<br \/>\n\u3000\u3000\u30fb\u63a5\u982d\u8a9e\uff1a_MD_USER<br \/>\n\u3000\u3000\u30fb\u7528\u8a9e\u7a2e\u5225\uff1a_LANG\uff08\u5358\u8a9e\uff09, _MESSAGE\uff08\u30e1\u30c3\u30bb\u30fc\u30b8\uff09, _ERROR\uff08\u8b66\u544a\u6587\uff09<\/p>\n<p><strong>3. *.php \u3092 Hack<\/strong><br \/>\n\u3000\u8ffd\u52a0\u3057\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\uff08\u9805\u76ee\uff09\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3002<\/p>\n<blockquote><p><strong>\u30fb\/karnel\/user.php<\/strong><br \/>\nfunction XoopsUser($id = null) {}\uff0870\u884c\u76ee\uff5e\uff09\u5185\u306b<br \/>\n\u3000$this-&gt;initVar(&#8216;{\u9805\u76ee\u540d}&#8217;, XOBJ_DTYPE_{\u30c7\u30fc\u30bf\u578b}, \u521d\u671f\u5024, false);<\/p><\/blockquote>\n<blockquote><p><strong>\u30fb\/modules\/user\/class\/users.php<\/strong><br \/>\n\u3000\/karnel\/user.php \u3068\u540c\u3058\u3088\u3046\u306b\u7de8\u96c6\u3002<\/p><\/blockquote>\n<blockquote><p><strong>\u30fb\/modules\/user\/forms\/EditUserForm.class.php<\/strong><br \/>\n\u3010function prepare()\u3011<br \/>\n\u3000\/\/ set properties<br \/>\n\u3000\u3000$this-&gt;mFormProperties[&#8216;{\u9805\u76ee\u540d}&#8217;] =&amp; new XCube_{\u30c7\u30fc\u30bf\u578b}Property(&#8216;{\u9805\u76ee\u540d}&#8217;);<br \/>\n\u3000\/\/ set fields<br \/>\n\u3000\u3000$this-&gt;mFieldProperties[&#8216;{\u9805\u76ee\u540d}&#8217;] =&amp; new XCube_FieldProperty($this);<br \/>\n\u3000\u3000$this-&gt;mFieldProperties[&#8216;{\u9805\u76ee\u540d}&#8217;]-&gt;setDependsByArray(array(&#8216;{\u203b\u5224\u5b9a\u5185\u5bb9}&#8217;));<br \/>\n\u3000\u3000\u3000\u203brequired : \u5165\u529b\u306e\u6709\u7121<br \/>\n\u3000\u3000\u3000\u203bmaxlength : \u6700\u5927\u6587\u5b57\u6570<br \/>\n\u3000\u3000\u3000\u203bminlength : \u6700\u5c0f\u6587\u5b57\u6570<br \/>\n\u3000\u3000\u3000\u203bintRange : \u6570\u5024\u5e45\uff08\u4e0b\u9650\u3068\u4e0a\u9650\u306f\u5f8c\u8ff0\uff09<br \/>\n\u3000\u3000$this-&gt;mFieldProperties[&#8216;{\u9805\u76ee\u540d}&#8217;]-&gt;addMessage(&#8220;{\u5224\u5b9a\u5185\u5bb9}&#8221;, _MD_USER_ERROR_{\u5224\u5b9a\u5185\u5bb9}, _MD_USER_LANG_{\u9805\u76ee\u540d}, &#8220;{\u5224\u5b9a\u57fa\u6e96\u5024\uff1f}&#8221;);<br \/>\n\u3000\u3000$this-&gt;mFieldProperties[&#8216;{\u9805\u76ee\u540d}&#8217;]-&gt;addVar(&#8220;{\u5224\u5b9a\u5185\u5bb9}&#8221;, {\u5224\u5b9a\u57fa\u6e96\u5024});<\/p>\n<p>\u3010function load(&amp;$obj)\u3011<br \/>\n\u3000$this-&gt;set(&#8216;{\u9805\u76ee\u540d}&#8217;, $obj-&gt;get(&#8216;{\u9805\u76ee\u540d}&#8217;));<\/p>\n<p>\u3010function update(&amp;$obj)\u3011<br \/>\n\u3000$obj-&gt;set(&#8216;{\u9805\u76ee\u540d}&#8217;, $this-&gt;get(&#8216;{\u9805\u76ee\u540d}&#8217;));\n<\/p><\/blockquote>\n<p><strong>4. Default \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u30b3\u30d4\u30fc<\/strong><br \/>\n\u3000[\u4e92\u63db\u30ec\u30f3\u30c0\u30fc\u30b7\u30b9\u30c6\u30e0] \u2192 [\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u7ba1\u7406] \u3067\u30c6\u30f3\u30d7\u30ec\u3092\u30b3\u30d4\u30fc\u3002<br \/>\n\u30001\u56de\u3068\u3063\u3066\u304a\u3051\u3070 OK\u3002<br \/>\n\u3000\u30b3\u30d4\u30fc\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3057\u3066\u3001\u3053\u3061\u3089\u306e\u30c6\u30f3\u30d7\u30ec\u3092\u7de8\u96c6\u3059\u308b\u3002<\/p>\n<p><strong>5. \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7de8\u96c6<\/strong><br \/>\n\u3000[altsys] \u2192 [\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u7ba1\u7406] \u3067\u30c6\u30f3\u30d7\u30ec\u3092\u7de8\u96c6\u3059\u308b\u3002<\/p>\n<blockquote><p><strong>\u30fb\/\u30e6\u30fc\u30b6\u30e2\u30b8\u30e5\u30fc\u30eb\/user_edituser.html<\/strong><br \/>\n\u3010\u9805\u76ee\u3092\u76f4\u63a5\u5165\u529b\u3011<br \/>\nget(&#8216;{\u9805\u76ee\u540d}&#8217;)}&gt;<\/p>\n<p>\u3010\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3067\u9078\u629e\u3011<br \/>\n<label>get(&#8216;{\u9805\u76ee\u540d}&#8217;)}&gt;<\/label>\n<\/p><\/blockquote>\n<blockquote><p><strong>\u30fb\/\u30e6\u30fc\u30b6\u30e2\u30b8\u30e5\u30fc\u30eb\/user_userinfo.html<\/strong><br \/>\n\u3010\u9805\u76ee\u3092\u305d\u306e\u307e\u307e\u8868\u793a\u3059\u308b\u5834\u5408\u3011<br \/>\ngetShow(&#8216;{\u9805\u76ee\u540d}&#8217;)}&gt;<\/p>\n<p>\u3010\u9805\u76ee\u5185\u5bb9\u306b\u3088\u3063\u3066\u8868\u793a\u3092\u6761\u4ef6\u5206\u5c90\u3059\u308b\u5834\u5408\u3011<br \/>\n\u3000<br \/>\n\u3000\u3000<br \/>\n\u3000<br \/>\n\u3000\u3000<br \/>\n\u3000<br \/>\n\u3000\u3000<br \/>\n\u3000<br \/>\n\u3000\u203b\u6761\u4ef6\u6587\u3067\u9805\u76ee\u5185\u5bb9\u3092\u6271\u3046\u3068\u304d\u306f $thisUser-&gt;getShow(&#8216;{\u9805\u76ee\u540d}&#8217;) \u3092\u4f7f\u3046\n<\/p><\/blockquote>\n<p><strong>6. \u52d5\u4f5c\u78ba\u8a8d\u3068\u4fdd\u5b58<\/strong><br \/>\n\u3000\u52d5\u4f5c\u78ba\u8a8d\u3057\u3066\u3001\u6210\u529f\u3057\u3066\u3044\u305f\u3089\u30c6\u30f3\u30d7\u30ec\u3092 Default \u5074\u306b\u30b3\u30d4\u30fc\u3002<br \/>\n\u3000\uff08\u5225\u306e\u7de8\u96c6\u3092\u3057\u305f\u3068\u304d\u306e\u30af\u30ed\u30b9\u30c1\u30a7\u30c3\u30af\u7528\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u4f5c\u696d\u8a18\u9332\u30ce\u30fc\u30c8\u306b\u66f8\u3044\u305f\u3093\u3060\u3051\u3069\u3001\u3053\u3063\u3061\u306b\u3082\u4e00\u5fdc\u3002 \u3000\u30e6\u30fc\u30b6\u60c5\u5831\u306e\u9805\u76ee\u3092\u5897\u3084\u3059\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3002 \uff08\u8a3b\uff1a\u3053\u308c\u3060\u3051\u3060\u3068\u30e6\u30fc\u30b6\u767b\u9332\u9805\u76ee\u3092\u5897\u3084\u3057\u3066\u3082 DB \u306b\u306f\u53cd\u6620\u3055\u308c\u306a\u3044\uff09 \uff08\u8a3b2\uff1a\u7d20\u4eba\u306e Hack \u306a\u306e\u3067\u3001\u771f\u4f3c\u3057\u3066\u30c8\u30e9\u30d6\u3063\u3066\u3082 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-689","post","type-post","status-publish","format-standard","hentry","category-diary"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/trpg.work\/otneg\/wp-json\/wp\/v2\/posts\/689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trpg.work\/otneg\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trpg.work\/otneg\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trpg.work\/otneg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trpg.work\/otneg\/wp-json\/wp\/v2\/comments?post=689"}],"version-history":[{"count":0,"href":"https:\/\/trpg.work\/otneg\/wp-json\/wp\/v2\/posts\/689\/revisions"}],"wp:attachment":[{"href":"https:\/\/trpg.work\/otneg\/wp-json\/wp\/v2\/media?parent=689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trpg.work\/otneg\/wp-json\/wp\/v2\/categories?post=689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trpg.work\/otneg\/wp-json\/wp\/v2\/tags?post=689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}