Witam mam taki oto skrypt:
<?
$file="jakis_program";
$sciezka="/home/folder/";
?>
<div align="center">
<table border="0" width="198" cellspacing="0" cellpadding="0" id="table1">
<tr>
<td width="57"><a href="panel.php?p=serw&s=start">
<img border="0" src="../images/img_panel/start.gif" width="57" height="43"></a></td>
<td> </td>
<td width="29"><a href="panel.php?p=serw&s=reset">
<img border="0" src="../images/img_panel/reset.gif" width="57" height="43"></a></td>
<td width="14"> </td>
<td width="14"><a href="panel.php?p=serw&s=stop">
<img border="0" src="../images/img_panel/stop.gif" width="57" height="43"></a></td>
</tr>
</table>
</div>
<p>
<?
if ($s=='stop')
{
system('kill -9 $(ps auxwww | grep -v grep | grep '.$file.' | awk \'{print $2}\')'); }
if ($s=='reset')
{
system('kill -CONT $(ps auxwww | grep -v grep | grep '.$file.' | awk \'{print $2}\')'); }
if ($s=='start')
{
$adres=$sciezka.$file.' &';
}
?>
Jak zrobić, żeby był widoczny tylko przycisk start gdy program jest wyłączony, a jak zrobić żeby były widoczne tylko przyciski restart oraz stop gdy serwer jest włączony??
Pozdrawiam,