Service Manager
'; if ($enable_start_stop) { echo '
'; } echo '
Service
Status
'; if ($enable_start_stop) { echo '
Start
Restart
Stop
'; } echo '
'; foreach ($services as $service) { if (array_search($service,$ignore) === false) { $status = (strpos(shell_exec('/etc/init.d/'.$service.' status'),'started') !== false) ? '
started
' : '
stopped
'; echo '
'.$service.'
'.$status.'
'; if ($enable_start_stop) { echo '
'; } echo '
'; } } echo '
'; if ($enable_start_stop) { echo '
'; } echo '