loleslav
Banned User
Hello
I wrote you a panel.
In this panel can be managed by the browser, you can:
Turn on the application from the browser
Turn off applications from a browser
Restart the application from the browser
Eg afraid to give the tutor/gamemaster access to the ssh access
Just give him access to the panel
And how OTS deactivated and you will not he go through the panel switches
To the 2 entries in the /etc/sudoers were not problems with the rights:
Please protect htaccess
.htaccess generator
SS
Give me Reputation
I wrote you a panel.
In this panel can be managed by the browser, you can:
Turn on the application from the browser
Turn off applications from a browser
Restart the application from the browser
Eg afraid to give the tutor/gamemaster access to the ssh access
Just give him access to the panel
And how OTS deactivated and you will not he go through the panel switches
PHP:
<?
if($_GET[start]=="tak"){
@system("/usr/bin/sudo /home/tibia/start");
header("Location: ".$_SERVER['HTTP_REFERER']);
echo '<a href="'.$_SERVER['HTTP_REFERER'].'">Powrót</a>';
exit;
}
if($_GET[stop]=="tak"){
@system("/usr/bin/sudo /home/tibia/stop");
header("Location: ".$_SERVER['HTTP_REFERER']);
echo '<a href="'.$_SERVER['HTTP_REFERER'].'">Powrót</a>';
exit;
}
if($_GET[restart]=="tak"){
@system("/usr/bin/sudo /home/tibia/stop");
@system("/usr/bin/sudo /home/tibia/start");
header("Location: ".$_SERVER['HTTP_REFERER']);
echo '<a href="'.$_SERVER['HTTP_REFERER'].'">Powrót</a>';
exit;
}
?>
<html>
<head>
<meta content="text/html; charset=iso-8859-2"
http-equiv="content-type">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(204, 204, 255);"
alink="#000099" link="#000099" vlink="#990099">
<table
style="width: 800px; margin-left: auto; margin-right: auto; text-align: left;"
border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr style="height: 50px; vertical-align: top;">
<td style="vertical-align: top; width: 100px;"> <br>
</td>
<td> TIBIA CONTROL<br>
</td>
<td style="vertical-align: top; width: 100px;"> <br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 100px;"><br>
</td>
<td style="vertical-align: top;"> <a href="./?start=tak">START</a><br>
<a href="./?stop=tak">STOP</a><br>
<a href="./?restart=tak">RESTART</a><br>
<br>
</td>
<td style="vertical-align: top; width: 100px;"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 100px;"><br>
</td>
<td style="vertical-align: top;"> <br>
</td>
<td style="vertical-align: top; width: 100px;"><br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
</body>
</html>
Code:
www-data ALL= NOPASSWD: /home/tibia/start
www-data ALL= NOPASSWD: /home/tibia/stop
Please protect htaccess
.htaccess generator
SS
![2009-03-07_190226.png](/proxy.php?image=http%3A%2F%2Fadriangallery.ath.cx%2F%259cmieszne%2F2009-03-07_190226.png&hash=0c0d091a3516e11bbdfed421c578cf1a)
![2009-03-07_190337.png](/proxy.php?image=http%3A%2F%2Fadriangallery.ath.cx%2F%259cmieszne%2F2009-03-07_190337.png&hash=d4f5b2c68ba49ff241d9bc39bda642d7)
![2009-03-07_190356.png](/proxy.php?image=http%3A%2F%2Fadriangallery.ath.cx%2F%259cmieszne%2F2009-03-07_190356.png&hash=7d1070252998c250420d09428297d46d)
![2009-03-07_190418.png](/proxy.php?image=http%3A%2F%2Fadriangallery.ath.cx%2F%259cmieszne%2F2009-03-07_190418.png&hash=89fab2187301d1f5fc3168e635079ec5)
Give me Reputation