Unsupported scripts and control panel web app for a hosting company
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

admin.actions.php 848B

123456789101112131415161718192021222324252627282930313233343536
  1. <?PHP
  2. require_once('lib/database.php');
  3. require_once('lib/common.php');
  4. ?>
  5. <div class="block">
  6. <form action="<?PHP echo CP_PATH; ?>admin" method="post">
  7. <h2>ADMIN: Schedule actions</h2>
  8. <table class="innerblock">
  9. <tr>
  10. <th>Service</th>
  11. <th>Update config</th>
  12. <th>Restart</th>
  13. </tr>
  14. <?PHP
  15. $services = array('apache', 'bind', 'postfix', 'sshkeys');
  16. $i = 0;
  17. foreach ($services as $service) {
  18. ?>
  19. <tr class="<?PHP echo ($i == 0) ? 'even' : 'odd'; ?>">
  20. <td><?PHP echo ucfirst($service); ?></td>
  21. <td><input type="submit" name="<?PHP echo $service; ?>_updateconf" value="Update config"></td>
  22. <td><input type="submit" name="<?PHP echo $service; ?>_restart" value="Restart" <?PHP
  23. if ($service == 'sshkeys') { echo ' disabled="disabled"'; }
  24. ?>></td>
  25. </tr>
  26. <?PHP
  27. $i = 1 - $i;
  28. }
  29. ?>
  30. </table>
  31. </form>
  32. </div>