$v)
{
${$k} = $v;
}
foreach ($_GET as $k => $v)
{
${$k} = $v;
}
if (empty($entryID))
{
redirect_header("index.php");
}
function printPage($entryID)
{
global $xoopsConfig, $xoopsDB, $xoopsModule, $xoopsModuleConfig, $myts;
$result1 = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix("lxentries")." WHERE entryID = '$entryID' and submit = '0' order by datesub");
list( $entryID, $categoryID, $term, $init, $definition, $ref, $url, $uid, $submit, $datesub, $counter, $html, $smiley, $xcodes, $breaks, $block, $offline, $notifypub ) = $xoopsDB -> fetchrow($result1);
$result2 = $xoopsDB -> query ( "SELECT name FROM " . $xoopsDB -> prefix ("lxcategories") . " WHERE categoryID = '$categoryID'");
list ($name) = $xoopsDB -> fetchRow ($result2);
$result3 = $xoopsDB->query("SELECT name, uname FROM ".$xoopsDB->prefix("users")." WHERE uid = '$uid'");
list($authorname, $username) = $xoopsDB -> fetchRow($result3);
$datetime = formatTimestamp($datesub,"D, d-M-Y, H:i");
$categoryname = $myts->makeTboxData4Show($name);
$term = $myts->makeTboxData4Show($term);
$definition = str_replace("[pagebreak]","
",$definition);
$definition = $myts->displayTarea($definition, $html, $smiley, $xcodes, '', $breaks);
if ($authorname == '')
{
$authorname = $myts->makeTboxData4Show($username);
}
else
{
$authorname = $myts->makeTboxData4Show($authorname);
}
echo "\n";
echo "\n
".$definition."