3 * @file include/create_shadowentry.php
4 * @brief This script creates posts with UID = 0 for a given public post.
6 * This script is started from mod/item.php to save some time when doing a post.
9 use \Friendica\Core\Config;
11 require_once("boot.php");
12 require_once("include/threads.php");
14 function create_shadowentry_run($argv, $argc) {
21 @include(".htconfig.php");
22 require_once("include/dba.php");
23 $db = new dba($db_host, $db_user, $db_pass, $db_data);
24 unset($db_host, $db_user, $db_pass, $db_data);
33 $message_id = intval($argv[1]);
35 add_shadow_entry($message_id);
38 if (array_search(__file__,get_included_files())===0){
39 create_shadowentry_run($_SERVER["argv"],$_SERVER["argc"]);