Fix coding style part 2

This commit is contained in:
Job Snijders
2015-07-15 11:04:22 +02:00
parent ad9590df9b
commit d8693f05ae
733 changed files with 37338 additions and 33926 deletions
+74 -37
View File
@@ -1,54 +1,91 @@
<?php
$graphs['apache'] = array('bits', 'hits', 'scoreboard', 'cpu');
$graphs['drbd'] = array('disk_bits', 'network_bits', 'queue', 'unsynced');
$graphs['mysql'] = array('network_traffic', 'connections', 'command_counters', 'select_types');
$graphs['memcached'] = array('bits', 'commands', 'data', 'items');
$graphs['nginx'] = array('connections', 'req');
$graphs['bind'] = array('queries');
$graphs['tinydns'] = array('queries', 'errors', 'dnssec', 'other');
$graphs['apache'] = array(
'bits',
'hits',
'scoreboard',
'cpu',
);
$graphs['drbd'] = array(
'disk_bits',
'network_bits',
'queue',
'unsynced',
);
$graphs['mysql'] = array(
'network_traffic',
'connections',
'command_counters',
'select_types',
);
$graphs['memcached'] = array(
'bits',
'commands',
'data',
'items',
);
$graphs['nginx'] = array(
'connections',
'req',
);
$graphs['bind'] = array('queries');
$graphs['tinydns'] = array(
'queries',
'errors',
'dnssec',
'other',
);
print_optionbar_start();
echo("<span style='font-weight: bold;'>Apps</span> &#187; ");
echo "<span style='font-weight: bold;'>Apps</span> &#187; ";
unset($sep);
$link_array = array('page' => 'device',
'device' => $device['device_id'],
'tab' => 'apps');
$link_array = array(
'page' => 'device',
'device' => $device['device_id'],
'tab' => 'apps',
);
foreach ($app_list as $app)
{
echo($sep);
foreach ($app_list as $app) {
echo $sep;
# if (!$vars['app']) { $vars['app'] = $app['app_type']; }
// if (!$vars['app']) { $vars['app'] = $app['app_type']; }
if ($vars['app'] == $app['app_type']) {
echo "<span class='pagemenu-selected'>";
// echo('<img src="images/icons/'.$app['app_type'].'.png" class="optionicon" />');
}
else {
// echo('<img src="images/icons/greyscale/'.$app['app_type'].'.png" class="optionicon" />');
}
if ($vars['app'] == $app['app_type'])
{
echo("<span class='pagemenu-selected'>");
#echo('<img src="images/icons/'.$app['app_type'].'.png" class="optionicon" />');
} else {
#echo('<img src="images/icons/greyscale/'.$app['app_type'].'.png" class="optionicon" />');
}
echo(generate_link(nicecase($app['app_type']),array('page'=>'apps','app'=>$app['app_type'])));
if ($vars['app'] == $app['app_type']) { echo("</span>"); }
$sep = " | ";
echo generate_link(nicecase($app['app_type']), array('page' => 'apps', 'app' => $app['app_type']));
if ($vars['app'] == $app['app_type']) {
echo '</span>';
}
$sep = ' | ';
}
print_optionbar_end();
if($vars['app'])
{
if (is_file("pages/apps/".mres($vars['app']).".inc.php"))
{
include("pages/apps/".mres($vars['app']).".inc.php");
} else {
include("pages/apps/default.inc.php");
}
} else {
include("pages/apps/overview.inc.php");
if ($vars['app']) {
if (is_file('pages/apps/'.mres($vars['app']).'.inc.php')) {
include 'pages/apps/'.mres($vars['app']).'.inc.php';
}
else {
include 'pages/apps/default.inc.php';
}
}
else {
include 'pages/apps/overview.inc.php';
}
$pagetitle[] = "Apps";
?>
$pagetitle[] = 'Apps';