drop_items($arr_drop);
$json = ['success' => 1];
echo json_encode($json);
- killme();
+ exit();
}
Addon::callHooks('post_local_start', $_REQUEST);
if (!empty($_REQUEST['return'])) {
$a->internalRedirect($return_path);
}
- killme();
+ exit();
}
$parent = $parent_item['id'];
$a->internalRedirect($return_path);
}
- killme();
+ exit();
}
// Init post instance
if (!strlen($body)) {
if ($preview) {
- killme();
+ exit();
}
info(L10n::t('Empty post discarded.') . EOL);
if (!empty($_REQUEST['return'])) {
$a->internalRedirect($return_path);
}
- killme();
+ exit();
}
}
}
echo json_encode($json);
- killme();
+ exit();
}
if ($orig_post) {
Logger::log('return: ' . $return_path);
$a->internalRedirect($return_path);
}
- killme();
+ exit();
} else {
$post_id = 0;
}
Logger::log('post_json: ' . print_r($json, true), Logger::DEBUG);
echo json_encode($json);
- killme();
+ exit();
}
function item_content(App $a)
if ($a->isAjax()) {
// ajax return: [<item id>, 0 (no perm) | <owner id>]
echo json_encode([intval($a->argv[2]), intval($o)]);
- killme();
+ exit();
}
}