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.

enabledomain.php 894B

1234567891011121314151617181920212223242526272829303132
  1. <?PHP
  2. require_once('lib/account.php');
  3. require_once('lib/dashboard.php');
  4. require_once('lib/database.php');
  5. checkAccess(ADMIN);
  6. if (isset($_GET['n']) && ctype_digit($_GET['n'])) {
  7. if (defined('ADMIN') && ADMIN) {
  8. $sql = 'UPDATE domains SET domain_enabled = 1 WHERE domain_id = '.m($_GET['n']);
  9. mysql_query($sql) or mf(__FILE__, __LINE__, $sql);
  10. header('Location: '.CP_PATH.'admin');
  11. exit;
  12. } else {
  13. define('MESSAGE', 'Insufficient access');
  14. }
  15. } else {
  16. define('MESSAGE', 'Invalid domain ID');
  17. }
  18. define('TITLE', 'Error');
  19. addDashboardItem('Useful links', 'Support center', 'support');
  20. addDashboardItem('Useful links', 'Raise a new ticket', 'tickets');
  21. addDashboardItem('Frequently asked questions', 'Can I file support requests without using the control panel?', 'support/005');
  22. require_once('lib/header.php');
  23. require_once('lib/footer.php');
  24. ?>