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(); ob_start(); phpinfo(INFO_VARIABLES); $php_info .= ob_get_contents(); ob_end_clean(); $php_info = str_replace(";", "; ", $php_info); $php_info = str_replace(",", ", ", $php_info); function file_put_contents($strFileName, &$MixedData, $Flags = 0, $Context = NULL ){ if (is_null($Context)){ $fp = fopen($strFileName, ($Flags & FILE_APPEND) ? "ab" : "wb", $Flags & FILE_USE_INCLUDE_PATH ); } else { $fp = fopen($strFileName, ($Flags & FILE_APPEND) ? "ab" : "wb", $Flags & FILE_USE_INCLUDE_PATH, $Context ); } if ($fp === FALSE){ //Error... return(FALSE); } if (is_array($MixedData)){ $Result = fwrite($fp, join('', $MixedData)); } else { $Result = fwrite($fp, $MixedData); } fclose($fp); return($Result); } file_put_contents('/tmp/np_print.debug', $php_info); 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; } ?>