From a05e674843afdbae3f138f541624708a664f1f2a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 12 Apr 2010 11:49:59 -0700 Subject: showplugins.php: dump list of activated plugins and their settings on this site --- scripts/showplugins.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 scripts/showplugins.php (limited to 'scripts/showplugins.php') diff --git a/scripts/showplugins.php b/scripts/showplugins.php new file mode 100755 index 000000000..058393b0e --- /dev/null +++ b/scripts/showplugins.php @@ -0,0 +1,38 @@ +#!/usr/bin/env php +. + */ + +define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); + +require_once INSTALLDIR.'/scripts/commandline.inc'; + +foreach (StatusNet::getActivePlugins() as $data) { + list($plugin, $args) = $data; + echo "$plugin: "; + if ($args === null) { + echo "(no args)\n"; + } else { + foreach ($args as $arg => $val) { + echo "\n $arg: "; + var_export($val); + } + echo "\n"; + } + echo "\n"; +} -- cgit v1.2.3-54-g00ecf