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.php 697B

12345678910111213141516171819202122232425262728293031
  1. <?PHP
  2. require_once('lib/dashboard.php');
  3. require_once('lib/account.php');
  4. checkAccess(ADMIN);
  5. if (count($_POST) > 0) {
  6. foreach ($_POST as $key => $value) {
  7. list($service, $action) = explode('_', $key);
  8. $sql = 'INSERT INTO actions (user_id, action_type, action_value) VALUES (';
  9. $sql .= UID . ', \'' . m($action) . '\', \'' . m($service) . '\')';
  10. mysql_query($sql) or mf(__FILE__, __LINE__, $sql);
  11. define('MESSAGE', 'Action scheduled');
  12. break;
  13. }
  14. }
  15. require_once('admin.menu.php');
  16. define('TITLE', 'Admin');
  17. require_once('lib/header.php');
  18. require_once('pages/admin.menu.php');
  19. require_once('pages/admin.actions.php');
  20. require_once('lib/footer.php');
  21. ?>