|
Revision 1327, 2.1 kB
(checked in by rats, 4 months ago)
|
* Fixed: --scan-knownbad-files and --check-deleted are no longer supported by rkhunter
* Fixed #1471: chkrootkit should be in lenny / hardy
* Updated Chinese (simplified)
* Updated German
* Fixed #1475: typo on installation (ispcp-setup)
* Fixed: default user for rkhunter.log
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
require '../include/ispcp-lib.php'; |
|---|
| 22 |
|
|---|
| 23 |
check_login(__FILE__); |
|---|
| 24 |
|
|---|
| 25 |
if (!isset($_GET['domain_id'])) { |
|---|
| 26 |
header( "Location: users.php" ); |
|---|
| 27 |
die(); |
|---|
| 28 |
} |
|---|
| 29 |
|
|---|
| 30 |
if (!is_numeric($_GET['domain_id'])) { |
|---|
| 31 |
header( "Location: users.php" ); |
|---|
| 32 |
die(); |
|---|
| 33 |
} |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
$domain_id = $_GET['domain_id']; |
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
$query = <<<SQL_QUERY |
|---|
| 40 |
select |
|---|
| 41 |
domain_name, |
|---|
| 42 |
domain_status, |
|---|
| 43 |
domain_created_id |
|---|
| 44 |
from |
|---|
| 45 |
domain |
|---|
| 46 |
where |
|---|
| 47 |
domain_id = ? |
|---|
| 48 |
SQL_QUERY; |
|---|
| 49 |
|
|---|
| 50 |
$rs = exec_query($sql, $query, array($domain_id)); |
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
if ($rs -> fields['domain_created_id'] != $_SESSION['user_id']){ |
|---|
| 54 |
header( "Location: users.php" ); |
|---|
| 55 |
die(); |
|---|
| 56 |
} |
|---|
| 57 |
|
|---|
| 58 |
$location = 'reseller'; |
|---|
| 59 |
|
|---|
| 60 |
if ($rs -> fields['domain_status'] == Config::get('ITEM_OK_STATUS')) { |
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 |
$action = "disable"; |
|---|
| 64 |
change_domain_status(&$sql, &$domain_id, $rs -> fields['domain_name'], $action, $location); |
|---|
| 65 |
} else if ($rs -> fields['domain_status'] == Config::get('ITEM_DISABLED_STATUS')) { |
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 |
$action = "enable"; |
|---|
| 69 |
change_domain_status(&$sql, &$domain_id, $rs -> fields['domain_name'], $action, $location); |
|---|
| 70 |
|
|---|
| 71 |
} else { |
|---|
| 72 |
|
|---|
| 73 |
header( "Location: users.php" ); |
|---|
| 74 |
die(); |
|---|
| 75 |
} |
|---|
| 76 |
?> |
|---|