This repository has been archived by the owner on Dec 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved pages around, created new page to restart javo/marceline, added…
… warning to short playlists
- Loading branch information
Showing
3 changed files
with
93 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
Output::require_group("Administrators"); | ||
|
||
Output::set_title("Sustainer Services"); | ||
MainTemplate::set_subtitle("Manage the sustainer services"); | ||
|
||
if(isset($_POST["restart-marceline"])) { | ||
system("sudo /etc/init.d/marceline restart"); | ||
} | ||
|
||
if(isset($_POST["restart-javo"])) { | ||
system("sudo /etc/init.d/javo restart"); | ||
} | ||
?> | ||
|
||
<div class="row"> | ||
<table class="table table-striped table-hover"> | ||
<thead> | ||
<tr> | ||
<th class="title">Service</th> | ||
<th class="title">Status</th> | ||
<th class="icon">Restart</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Marceline</td> | ||
<td> | ||
<?echo preg_replace('/\(pid\s\d+\)/', '', substr(exec("sudo /etc/init.d/marceline status"), 8));?> | ||
</td> | ||
<td><form method="POST"><input name="restart-marceline" type="submit" class="btn btn-danger" value="Restart" /></form></td> | ||
</tr> | ||
<tr> | ||
<td>JAVO</td> | ||
<td> | ||
<?echo preg_replace('/\(pid\s\d+\)/', '', substr(exec("sudo /etc/init.d/javo status"), 8));?> | ||
</td> | ||
<td><form method="POST"><input name="restart-javo" type="submit" class="btn btn-danger" value="Restart" /></form></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters