|
Revision 1327, 1.5 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 |
$theme_color = Config::get('USER_INITIAL_THEME'); |
|---|
| 26 |
|
|---|
| 27 |
if (isset($_GET['hpid']) && is_numeric($_GET['hpid'])) |
|---|
| 28 |
$hpid = $_GET['hpid']; |
|---|
| 29 |
else { |
|---|
| 30 |
$_SESSION['hp_deleted'] = '_no_'; |
|---|
| 31 |
header("Location: hosting_plan.php"); |
|---|
| 32 |
die(); |
|---|
| 33 |
} |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
$res = exec_query($sql, "SELECT COUNT(id) FROM orders WHERE plan_id=?", array($hpid)); |
|---|
| 37 |
$data = $res->FetchRow(); |
|---|
| 38 |
if ($data['0'] > 0) { |
|---|
| 39 |
$_SESSION['hp_deleted_ordererror'] = '_yes_'; |
|---|
| 40 |
header("Location: hosting_plan.php"); |
|---|
| 41 |
die(); |
|---|
| 42 |
} |
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
$query = "delete from hosting_plans where id=? and reseller_id=?"; |
|---|
| 46 |
$res = exec_query($sql, $query, array($hpid, $_SESSION['user_id'])); |
|---|
| 47 |
|
|---|
| 48 |
$_SESSION['hp_deleted'] = '_yes_'; |
|---|
| 49 |
|
|---|
| 50 |
header("Location: hosting_plan.php"); |
|---|
| 51 |
die(); |
|---|
| 52 |
|
|---|
| 53 |
?> |
|---|