1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-08-07 06:33:15 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -7,7 +7,7 @@ error_reporting( E_ALL & ~E_NOTICE ); //to avoid of the crap generation
/////////////////////////////////////////////////////////////////////////////////////////////////////
Murmur users online grapher PHP using ICE
ver 0.4 2011.06.10, 15:44
ver 0.4 2011.06.10, 15:44
author _KaszpiR_ kaszpir at gmail dot com
code is under GPL
@ -31,8 +31,8 @@ By default script tries to connect 127.0.0.1:6502 and query server id 1
2. ice profile configuration
This is not needed with ice 3.4.1
Scroll down in this file and change
$ice_profile = 'Murmur';
Scroll down in this file and change
$ice_profile = 'Murmur';
to the profile that is installed on the server, this is required if you have multiple Ice profiles for various applicaitions.
@ -82,7 +82,7 @@ $ice_profile = 'Murmur';
// Define STDIN in case if it is not already defined by PHP for some reason
// Define STDIN in case if it is not already defined by PHP for some reason
if(!defined("STDIN"))
{
define("STDIN", fopen('php://stdin','r'));
@ -108,7 +108,7 @@ if(isset($argv[1]) && $argv[1] == "autoconf")
if(FALSE)
{
}
else
else
{
fwrite(STDOUT, "No\n");
fwrite(STDERR, "symlink ".$argv[0]." to somethilg like ".$argv[0]."_127.0.0.1_6502_1_description_here \n");
@ -123,7 +123,7 @@ if(isset($argv[1]) && $argv[1] == "config")
{
if(TRUE)
{
// yea dirty hack
// yea dirty hack
echo "graph_title Mumble Users".($desc?" on ".str_replace("_"," ",$desc):"")."\n";
echo "graph_vlabel Connected Users\n";
echo "graph_category VoIP\n";
@ -134,7 +134,7 @@ if(isset($argv[1]) && $argv[1] == "config")
echo "unregistered.label Unregistered\n";
echo "chanlinks.label Linked chans\n";
echo "error.label Server status error\n";
$arr=array("channels","players","registered","unregistered","chanlinks","error");
foreach($arr as $field){
echo "".$field.".draw LINE1\n";
@ -143,7 +143,7 @@ if(isset($argv[1]) && $argv[1] == "config")
return 0;
}else {
echo "RTFM\n";
return 1;
@ -174,7 +174,7 @@ try {
$initData->properties = Ice_createProperties();
$initData->properties->setProperty("Ice.MessageSizeMax", "65536");
$ICE = Ice_initialize($initData);
}
}
$base = $ICE->stringToProxy("Meta:tcp -h ".$ip." -p ".$port);
@ -222,4 +222,4 @@ echo "unregistered.value ".$online_noreg."\n";
echo "chanlinks.value ".$links."\n";
echo "error.value 0\n";
return 0;
?>
?>