Merge remote-tracking branch 'origin/0.9.31'
This commit is contained in:
@@ -294,7 +294,7 @@ if ($page == 'customers'
|
|||||||
DELETE FROM `" . TABLE_PANEL_TASKS . "`
|
DELETE FROM `" . TABLE_PANEL_TASKS . "`
|
||||||
WHERE `type` = '2' AND `data` LIKE :loginname"
|
WHERE `type` = '2' AND `data` LIKE :loginname"
|
||||||
);
|
);
|
||||||
Database::pexecute($del_stmt, array(':loginname' => "%:{$result['loginname']};%"));
|
Database::pexecute($del_stmt, array('loginname' => "%:{$result['loginname']};%"));
|
||||||
|
|
||||||
$admin_update_query = "UPDATE `" . TABLE_PANEL_ADMINS . "` SET `customers_used` = `customers_used` - 1 ";
|
$admin_update_query = "UPDATE `" . TABLE_PANEL_ADMINS . "` SET `customers_used` = `customers_used` - 1 ";
|
||||||
$admin_update_query.= ", `domains_used` = `domains_used` - 0" . (int)($domains_deleted - $result['subdomains_used']);
|
$admin_update_query.= ", `domains_used` = `domains_used` - 0" . (int)($domains_deleted - $result['subdomains_used']);
|
||||||
|
|||||||
@@ -362,7 +362,7 @@ if ($page == 'overview') {
|
|||||||
$mail_body .= "-------------------------------------------------------------\n\n";
|
$mail_body .= "-------------------------------------------------------------\n\n";
|
||||||
$mail_body .= "Froxlor-version: ".$version."\n\n";
|
$mail_body .= "Froxlor-version: ".$version."\n\n";
|
||||||
$mail_body .= "End of report";
|
$mail_body .= "End of report";
|
||||||
$mail_html = str_replace("\n", "<br />", $mail_body);
|
$mail_html = nl2br($mail_body);
|
||||||
|
|
||||||
// send actual report to dev-team
|
// send actual report to dev-team
|
||||||
if (isset($_POST['send'])
|
if (isset($_POST['send'])
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ class DbManagerMySQL {
|
|||||||
while ($host = $host_res_stmt->fetch(PDO::FETCH_ASSOC)) {
|
while ($host = $host_res_stmt->fetch(PDO::FETCH_ASSOC)) {
|
||||||
// as of MySQL 5.0.2 this also revokes privileges. (requires MySQL 4.1.2+)
|
// as of MySQL 5.0.2 this also revokes privileges. (requires MySQL 4.1.2+)
|
||||||
$drop_stmt = Database::prepare("DROP USER :dbname@:host");
|
$drop_stmt = Database::prepare("DROP USER :dbname@:host");
|
||||||
Database::pexecute($drop_stmt, array(':dbname' => $dbname, ':host' => $host['Host']), false);
|
Database::pexecute($drop_stmt, array('dbname' => $dbname, 'host' => $host['Host']), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
$drop_stmt = Database::prepare("DROP DATABASE IF EXISTS `".$dbname."`");
|
$drop_stmt = Database::prepare("DROP DATABASE IF EXISTS `".$dbname."`");
|
||||||
|
|||||||
Reference in New Issue
Block a user