Example #1
0
                }
            }
        }
        if ($this->plug['plugin_version'] != $this->plug_vars['@attributes']['version'] && $this->plug['plugin_installflag']) {
            //	$text .= "<br /><input type='button' class='btn' onclick=\"location.href='".e_SELF."?upgrade.{$this->plug['plugin_id']}'\" title='".EPL_UPGRADE." to v".$this->plug_vars['@attributes']['version']."' value='".EPL_UPGRADE."' />";
            $text .= "<a class='btn btn-default' href='" . e_SELF . "?upgrade.{$this->plug['plugin_id']}' title=\"" . EPL_UPGRADE . " to v" . $this->plug_vars['@attributes']['version'] . "\" >" . ADMIN_UPGRADEPLUGIN_ICON . "</a>";
        }
        if ($this->plug['plugin_installflag'] && e_DEBUG == true) {
            $text .= "<a class='btn btn-default' href='" . e_SELF . "?refresh." . $this->plug['plugin_id'] . "' title='" . 'Repair plugin settings' . "'> " . ADMIN_REPAIRPLUGIN_ICON . "</a>";
        }
        $text .= "</div>\t";
        return $text;
    }
}
require_once "auth.php";
$pman->pluginObserver();
$mes = e107::getMessage();
$frm = e107::getForm();
function e_help()
{
    $help_text = str_replace('[x]', PLUGIN_SCAN_INTERVAL ? PLUGIN_SCAN_INTERVAL / 60 : 0, EPL_ADLAN_228);
    return array('caption' => EPL_ADLAN_227, 'text' => $help_text . "<p><a class='btn btn-xs btn-mini btn-primary' href='" . e_SELF . "?refresh'>" . EPL_ADLAN_229 . "</a></p>");
}
require_once "footer.php";
exit;
// FIXME switch to admin UI
class pluginManager
{
    var $plugArray;
    var $action;
    var $id;