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.
8 require_once("boot.php");
9 require_once("include/threads.php");
11 function create_shadowentry_run($argv, $argc) {
18 @include(".htconfig.php");
19 require_once("include/dba.php");
20 $db = new dba($db_host, $db_user, $db_pass, $db_data);
21 unset($db_host, $db_user, $db_pass, $db_data);
24 load_config('config');
25 load_config('system');
31 $message_id = intval($argv[1]);
33 add_shadow_entry($message_id);
36 if (array_search(__file__,get_included_files())===0){
37 create_shadowentry_run($_SERVER["argv"],$_SERVER["argc"]);