iblog; if ($blogid) { $b =& $manager->getBlog($blogid); } else if ($blog) { $b =& $blog; } else { $b =& $manager->getBlog($CONF['DefaultBlog']); } $Blogname = $b->getName(); $BlogURL = $b->getURL(); // Get the original plugin again ... $plugin =& $manager->getPlugin('NP_Print'); $extra1 = $plugin->getOption(fontSelector1); $extra2 = $plugin->getOption(fontSelector2); $extra3 = $plugin->getOption(fontSelector3); $extra4 = $plugin->getOption(fontSelector4); $extra5 = $plugin->getOption(option2); $extra6 = $plugin->getOption(option3); $template = $plugin->getOption(option4); $extra7 = $plugin->getOption(option5); $extra8 = $plugin->getOption(option6); // readCookievars .... dohtmlHead(); // Here we decide what we do $extraQuery = ' and inumber=' . intval($itemid); if ($template == "") {$template = "default";} echo "
"; $b->readLogAmount($template, 1, $extraQuery, 0, 1, 0); echo "
"; dohtmlEnd(); function showError($message, $what) { echo "An error occurred \n"; echo $what.$message; } // functions for showing this page ... function dohtmlHead() { global $Blogname, $BlogURL, $itemid, $CONF, $extra1, $extra2, $extra3, $extra4, $extra5, $extra6, $extra7; echo " \n \n"; echo "".$Blogname." \n"; echo ""; echo " \n"; echo " \n"; if ($extra1 == 'yes') { echo ""; } echo " \n"; echo " \n"; $itemurl = $BlogURL.createItemLink($itemid); if ($extra7 != '') { include($extra7); } echo "
"; echo ""; echo "
"; echo "
".$extra5.""; echo "
".$extra6."
"; if ($extra1 == 'yes') { echo $extra2."
"; echo " \n"; echo ""; echo ""; echo ""; } echo "
\n"; return 1; } function dohtmlEnd() { global $extra8, $itemid, $BlogURL; $itemurl = $BlogURL.createItemLink($itemid); if ($extra8 != '') { include($extra8); } echo "\n\n"; return 1; } ?>