OSDN Git Service

PDO対応
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / xmlrpc / api_metaweblog.inc.php
index 3e42564..a65c623 100755 (executable)
                        $category = _getArrayVal($catlist, 0);
                
                
-//             $comments = (int) _getStructVal($struct, 'mt_allow_comments') ? 0 : 1;\r
-               $comments = $struct->structmem('mt_allow_comments');\r
-               if ($comments) {\r
-                       $closed = (intval(_getStructVal($struct, 'mt_allow_comments')) == 1) ? 0 : 1;\r
-               } else {\r
-                       $closed = 0;\r
-               }\r
+//             $comments = (int) _getStructVal($struct, 'mt_allow_comments') ? 0 : 1;
+               $comments = $struct->structmem('mt_allow_comments');
+               if ($comments) {
+                       $closed = (intval(_getStructVal($struct, 'mt_allow_comments')) == 1) ? 0 : 1;
+               } else {
+                       $closed = 0;
+               }
                                        $publish = _getScalar($m,4);
 
 
                // Add item
-//             $res = _addItem($blogid, $username, $password, $title, $content, $more, $publish, $comments, $category);\r
-               $res = _addItem($blogid, $username, $password, $title, $content, $more, $publish, $closed, $category);\r
+//             $res = _addItem($blogid, $username, $password, $title, $content, $more, $publish, $comments, $category);
+               $res = _addItem($blogid, $username, $password, $title, $content, $more, $publish, $closed, $category);
                                                        
                // Handle trackbacks
                $trackbacks = array();
                
                $comments = $struct->structmem('mt_allow_comments');
                if ($comments) {
-//                     $comments = (int) _getStructVal($struct, 'mt_allow_comments') ? 0 : 1;\r
-                       $closed = (intval(_getStructVal($struct, 'mt_allow_comments')) == 1) ? 0 : 1;\r
+//                     $comments = (int) _getStructVal($struct, 'mt_allow_comments') ? 0 : 1;
+                       $closed = (intval(_getStructVal($struct, 'mt_allow_comments')) == 1) ? 0 : 1;
                } else {
-//                     $comments = $old['closed'];\r
-                       $closed = $old['closed'];\r
+//                     $comments = $old['closed'];
+                       $closed = $old['closed'];
                }
 
-//             $res = _edititem($itemid, $username, $password, $catid, $title, $content, $more, $wasdraft, $publish, $comments);\r
+//             $res = _edititem($itemid, $username, $password, $catid, $title, $content, $more, $wasdraft, $publish, $comments);
                $res = _edititem($itemid, $username, $password, $catid, $title, $content, $more, $wasdraft, $publish, $closed);
                // Handle trackbacks
                $trackbacks = array();
                           ." LIMIT $amount";
                $r = sql_query($query);
 
-               while ($row = mysql_fetch_assoc($r)) {
+               while ($row = sql_fetch_assoc($r)) {
 
                        // remove linebreaks if needed
                        if ($blog->convertBreaks()) {
                                . " ORDER BY cname";
                $r = sql_query($query);
 
-               while ($obj = mysql_fetch_object($r)) {
+               while ($obj = sql_fetch_object($r)) {
 
                        $categorystruct[$obj->cname] = new xmlrpcval(
                                array(