| 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; |
| 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) |