echo $_GET["pid"]; echo "<br />"; $pid = $_GET["pid"]; $oid = $_GET["oid"]; $template = $_GET["t"]; $cache_key = $_GET["ck"]; foreach ($oid as $o) { echo $o; echo "<br />"; } // set up chdir(".."); require_once 'config.webapp.inc.php'; ini_set("include_path", ini_get("include_path") . PATH_SEPARATOR . $INCLUDE_PATH); require_once "init.php"; $cfg = new Config(); $db = new Database($TWITALYTIC_CFG); $conn = $db->getConnection(); $td = new TweetDAO($db); foreach ($oid as $o) { echo "<br />"; if (isset($_GET["fp"])) { $td->assignParent($pid, $o, $_GET["fp"]); } else { $td->assignParent($pid, $o); } } $db->closeConnection($conn); $s = new SmartyTwitalytic(); $s->clear_cache($template, $cache_key); echo 'Assignment complete.<br /><a href="' . $TWITALYTIC_CFG['site_root_path'] . '?u=' . $_GET['u'] . '#replies">Back home</a>.';