function get_plugin($manifest_url)
{
    $manifest = get_plugin_quick($manifest_url);
    $manifest->manifest = $manifest_url;
    $manifest->installed = "";
    $manifest->installedVersion = "";
    $manifest->folder = "";
    if ("" == $manifest->configuration) {
        $manifest->configuration = "None required.";
    }
    return $manifest;
}
    if ('Y' == $dbg) {
        $dbg_msg = sprintf("info: r='%s', d='%s', u='%s', k='%s', v='%s', admin='%s'<br/>", $r, $d, $u, $k, $v, $i2b2_admin);
    }
} else {
    $i2b2_admin = 'N';
}
genJsPostNextPageFunc($r, $d, $u, $k, $v);
// to generate the javascript function postNextPage(), for 'install'
$wcloc = $webclient_path;
$plugin_pkg = $_REQUEST['pkg'];
if ('Y' == $dbg) {
    $dbg_msg = sprintf("<font color='blue' face='arial'><sub><small>debugging...<br/>dbg='%s', %s wcloc='%s', pkg='%s'<br/><br/>", $dbg, $dbg_msg, $wcloc, $plugin_pkg);
} else {
    $dbg_msg = '';
}
$plugin = get_plugin_quick($plugin_pkg);
$pkg = $plugin->package;
$grp = $plugin->group;
$forceDir = "cells/plugins/" . $plugin->group;
$path = str_replace("//", "/", $webclient_path . "/js-i2b2/" . $forceDir . "/");
$blue = "<nobr>'<font color='blue'>%s</font>'</nobr>";
$red = "<font color='red'>";
?>

<html>
 <head>
  <link rel="stylesheet" type="text/css" href="style.css">
 </head>
 <body align="center" style="background-color:#FFFEEE" >
  <h1 style="font-size:40px"><strong><em>i2b2</em></strong> Webclient Plugins Manager</h1>
  <span align="left">