"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cli/plugin_manage.php" between
cacti-1.2.21.tar.gz and cacti-1.2.22.tar.gz

About: Cacti is a complete network graphing solution designed to harness the power of RRDTool’s data storage and graphing functionality.

plugin_manage.php  (cacti-1.2.21):plugin_manage.php  (cacti-1.2.22)
skipping to change at line 133 skipping to change at line 133
if (is_dir($config['base_path'] . '/plugins/' . $plugin)) { if (is_dir($config['base_path'] . '/plugins/' . $plugin)) {
print "NOTE: Plugin directory for Plugin $plugin exists" . PHP_EOL; print "NOTE: Plugin directory for Plugin $plugin exists" . PHP_EOL;
if (!api_plugin_installed($plugin)) { if (!api_plugin_installed($plugin)) {
$message = ''; $message = '';
if (api_plugin_can_install($plugin, $mess age)) { if (api_plugin_can_install($plugin, $mess age)) {
api_plugin_install($plugin); api_plugin_install($plugin);
if (api_plugin_installed($plugin) ) { if (api_plugin_installed($plugin) ) {
print "NOTE: Plugin $plug in installed sucessfully." . PHP_EOL; print "NOTE: Plugin $plug in installed successfully." . PHP_EOL;
$installed = true; $installed = true;
if ($enable) { if ($enable) {
api_plugin_enable ($plugin); api_plugin_enable ($plugin);
print "NOTE: Plug in $plugin enabled." . PHP_EOL; print "NOTE: Plug in $plugin enabled." . PHP_EOL;
} }
} }
skipping to change at line 196 skipping to change at line 196
$version = get_cacti_cli_version(); $version = get_cacti_cli_version();
print "Cacti Install Utility, Version $version, " . COPYRIGHT_YEARS . PHP _EOL; print "Cacti Install Utility, Version $version, " . COPYRIGHT_YEARS . PHP _EOL;
} }
/** /**
*display_help - displays the usage of the function *display_help - displays the usage of the function
*/ */
function display_help () { function display_help () {
print 'usage: plugin_manage.php [--plugin=S] [--install --enable --allper ms] [--uninstall ] [--disable]' . PHP_EOL . PHP_EOL; print 'usage: plugin_manage.php [--plugin=S] [--install --enable --allper ms] [--uninstall ] [--disable]' . PHP_EOL . PHP_EOL;
print 'A utility to install/uinstall a Cacti plugin or plugins' . PHP_EO L . PHP_EOL; print 'A utility to install/uninstall a Cacti plugin or plugins' . PHP_E OL . PHP_EOL;
print 'Required:' . PHP_EOL; print 'Required:' . PHP_EOL;
print ' --plugin=S - The plugin to install. Use the option multiple t ime for more plugins' . PHP_EOL . PHP_EOL; print ' --plugin=S - The plugin to install. Use the option multiple t ime for more plugins' . PHP_EOL . PHP_EOL;
print 'Optional:' . PHP_EOL; print 'Optional:' . PHP_EOL;
print ' --install - Install the plugin or plugins' . PHP_EOL; print ' --install - Install the plugin or plugins' . PHP_EOL;
print ' --enable - Enable the plugin or plugins' . PHP_EOL; print ' --enable - Enable the plugin or plugins' . PHP_EOL;
print ' --allperms - Enable all permission for plugin or plugins' . PH P_EOL; print ' --allperms - Enable all permission for plugin or plugins' . PH P_EOL;
print ' --uninstall - Uninstall the plguin or plugins' . PHP_EOL; print ' --uninstall - Uninstall the plugin or plugins' . PHP_EOL;
print ' --disable - Disable the plugin or plugins' . PHP_EOL; print ' --disable - Disable the plugin or plugins' . PHP_EOL;
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)