strFullName = 'NP_' . $pluginName;
// check if plugin exists and is installed
if ( !$manager->pluginInstalled($this->strFullName) )
{
doError(_ERROR_INVALID_PLUGIN);
}
$this->plugin =& $manager->getPlugin($this->strFullName);
$this->bValid = $this->plugin;
if ( !$this->bValid )
{
doError(_ERROR_INVALID_PLUGIN);
}
$this->admin = new ADMIN();
$this->admin->action = 'plugin_' . $pluginName;
}
function start($extraHead = '')
{
global $CONF;
$strBaseHref = '';
$extraHead .= $strBaseHref;
$this->admin->pagehead($extraHead);
}
function end()
{
$this->_AddTicketByJS();
$this->admin->pagefoot();
}
/**
* Add ticket when not used in plugin's admin page
* to avoid CSRF.
*/
function _AddTicketByJS(){
global $CONF,$ticketforplugin;
if ( !($ticket=$ticketforplugin['ticket']) )
{
//echo "\n\n";
return;
}
$ticket=i18n::hsc($ticket);
?>