/* NP_Print version 1.1 Updates, documentation and tips about this plugin will be posted at Nucleus Wikki: http://www.xiffy.nl/wakka/Print This plugin is based on NP_MailToAFriend.php by Appie Verschoor, mod by Edmond Hui (admun) History: May 31, 2004 - Fixed for FancyURL - Use sql_table Oct 8, 2004 - Fixed item table quote problem - Fixed XHTML */ include('../../../config.php'); global $manager, $blog, $CONF, $DIR_PLUGINS; $query = 'SELECT iblog FROM '. sql_table('item') .' WHERE inumber=' . intval($itemid); $res = sql_query($query); $obj = mysql_fetch_object($res); $blogid = $obj->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 "