/[LeafOK_CVS]/fenglin/manage/export_article.php
ViewVC logotype

Diff of /fenglin/manage/export_article.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 by sysadm, Fri Jan 16 09:16:57 2026 UTC Revision 1.4 by sysadm, Wed Jan 21 13:17:43 2026 UTC
# Line 153  Line 153 
153                                  case 'S': // Restore article                                  case 'S': // Restore article
154                                  case 'M': // Modify article                                  case 'M': // Modify article
155                                  case 'T': // Move article                                  case 'T': // Move article
156                                  case 'Z': // Set article as trnasship                                  case 'E': // Set article as excerption
157                                    case 'O': // Unset article as excerption
158                                    case 'Z': // Set article as transship
159                                          unset($delete_aid_list[$aid]);                                          unset($delete_aid_list[$aid]);
160                                          $export_aid_list[$aid] = true;                                          $export_aid_list[$aid] = true;
161                                          break;                                          break;
# Line 193  Line 195 
195                  foreach($export_aid_list as $aid => $dummy)                  foreach($export_aid_list as $aid => $dummy)
196                  {                  {
197                          $buffer = shell_exec($PHP_bin . " ../bbs/view_article.php export_xml " . $aid);                          $buffer = shell_exec($PHP_bin . " ../bbs/view_article.php export_xml " . $aid);
198                          if (!$buffer || ($buffer[0] == "<" && file_put_contents($export_dir . "/" . $aid . ".xml", $buffer) == false))                          if ($buffer != false && $buffer[0] == "<")
199                          {                          {
200                                  echo ("Write " . $aid . ".xml error!");                                  if (file_put_contents($export_dir . "/" . $aid . ".xml", $buffer) == false)
201                                  $ret = -3;                                  {
202                                  break;                                          echo ("Write " . $aid . ".xml error!");
203                                            $ret = -3;
204                                            break;
205                                    }
206                                    echo $aid . "\n";
207                          }                          }
                         echo $aid . "\n";  
208                  }                  }
209    
210                  if ($ret != 0)                  if ($ret != 0)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1