fix customer-mysql overview, set better email address for error-reports to send to

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-29 23:13:26 +01:00
parent 380d358a54
commit cf3de1c657
4 changed files with 17 additions and 17 deletions

View File

@@ -369,7 +369,7 @@ if ($page == 'overview') {
$mail->Subject = '[Froxlor] Error report by user'; $mail->Subject = '[Froxlor] Error report by user';
$mail->AltBody = $mail_body; $mail->AltBody = $mail_body;
$mail->MsgHTML($mail_html); $mail->MsgHTML($mail_html);
$mail->AddAddress('team@froxlor.org', 'Froxlor Developer Team'); $mail->AddAddress('error-reports@froxlor.org', 'Froxlor Developer Team');
$mail->Send(); $mail->Send();
} catch(phpmailerException $e) { } catch(phpmailerException $e) {
$mailerr_msg = $e->errorMessage(); $mailerr_msg = $e->errorMessage();

View File

@@ -66,7 +66,7 @@ if ($page == 'overview') {
while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) { while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) {
if ($paging->checkDisplay($i)) { if ($paging->checkDisplay($i)) {
$row = htmlentities_array($row); $row = htmlentities_array($row);
$mbdata_stmt = Database::prepare("SELECT SUM(data_length + index_length) FROM information_schema.TABLES $mbdata_stmt = Database::prepare("SELECT SUM(data_length + index_length) as MB FROM information_schema.TABLES
WHERE table_schema = :table_schema WHERE table_schema = :table_schema
GROUP BY table_schema" GROUP BY table_schema"
); );

View File

@@ -2,7 +2,7 @@
<td>{$row['databasename']}</td> <td>{$row['databasename']}</td>
<td>{$row['description']}</td> <td>{$row['description']}</td>
<td>{$row['size']}</td> <td>{$row['size']}</td>
<if 1 < count($sql_root)><td>{$sql_root[$row['dbserver']]['caption']}</td></if> <if 1 < count($sql_root)><td>{$sql_root['host']}</td></if>
<if $row['apsdb'] != '1'> <if $row['apsdb'] != '1'>
<td> <td>
<a href="{$linker->getLink(array('section' => 'mysql', 'page' => 'mysqls', 'action' => 'edit', 'id' => $row['id']))}" style="text-decoration:none;"> <a href="{$linker->getLink(array('section' => 'mysql', 'page' => 'mysqls', 'action' => 'edit', 'id' => $row['id']))}" style="text-decoration:none;">

View File

@@ -2,7 +2,7 @@
<td>{$row['databasename']}</td> <td>{$row['databasename']}</td>
<td>{$row['description']}</td> <td>{$row['description']}</td>
<td>{$row['size']}</td> <td>{$row['size']}</td>
<if 1 < count($sql_root)><td>{$sql_root[$row['dbserver']]['caption']}</td></if> <if 1 < count($sql_root)><td>{$sql_root['host']}</td></if>
<if $row['apsdb'] != '1'> <if $row['apsdb'] != '1'>
<td> <td>
<a href="{$linker->getLink(array('section' => 'mysql', 'page' => 'mysqls', 'action' => 'edit', 'id' => $row['id']))}" style="text-decoration:none;"> <a href="{$linker->getLink(array('section' => 'mysql', 'page' => 'mysqls', 'action' => 'edit', 'id' => $row['id']))}" style="text-decoration:none;">