Merge pull request #168 from BNoiZe/master
sizes are displayed correctly, fixes #1277
This commit is contained in:
@@ -285,9 +285,9 @@ if ($page == 'customers'
|
||||
$stmt = Database::prepare("DELETE FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid` = :id");
|
||||
Database::pexecute($stmt, array('id' => $id));
|
||||
$domains_deleted = $stmt->rowCount();
|
||||
$stmt = Database::prepare("DELETE FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE` WHERE `customerid` = :id");
|
||||
$stmt = Database::prepare("DELETE FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid` = :id");
|
||||
Database::pexecute($stmt, array('id' => $id));
|
||||
$stmt = Database::prepare("DELETE FROM `" . TABLE_PANEL_HTACCESS . "` WHERE` WHERE `customerid` = :id");
|
||||
$stmt = Database::prepare("DELETE FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid` = :id");
|
||||
Database::pexecute($stmt, array('id' => $id));
|
||||
$stmt = Database::prepare("DELETE FROM `" . TABLE_PANEL_SESSIONS . "` WHERE `customerid` = :id AND `adminsession` = '0'");
|
||||
Database::pexecute($stmt, array('id' => $id));
|
||||
|
||||
@@ -56,8 +56,7 @@ if ($page == 'overview') {
|
||||
if (!isset($emails[$row['domain']]) || !is_array($emails[$row['domain']])) {
|
||||
$emails[$row['domain']] = array();
|
||||
}
|
||||
|
||||
$row['mboxsize'] = size_readable($row['mboxsize']);
|
||||
|
||||
$emails[$row['domain']][$row['email_full']] = $row;
|
||||
}
|
||||
|
||||
@@ -106,6 +105,8 @@ if ($page == 'overview') {
|
||||
if (strlen($row['destination']) > 35) {
|
||||
$row['destination'] = substr($row['destination'], 0, 32) . '... (' . $destinations_count . ')';
|
||||
}
|
||||
|
||||
$row['mboxsize'] = size_readable($row['mboxsize'], 'GiB', 'bi', '%01.'.(int)$settings['panel']['decimal_places'].'f %s');
|
||||
|
||||
$row = htmlentities_array($row);
|
||||
eval("\$accounts.=\"" . getTemplate("email/emails_email") . "\";");
|
||||
|
||||
@@ -66,13 +66,13 @@ if ($page == 'overview') {
|
||||
while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) {
|
||||
if ($paging->checkDisplay($i)) {
|
||||
$row = htmlentities_array($row);
|
||||
$mbdata_stmt = Database::prepare("SELECT SUM( data_length + index_length) / 1024 / 1024 'MB' FROM information_schema.TABLES
|
||||
$mbdata_stmt = Database::prepare("SELECT SUM(data_length + index_length) FROM information_schema.TABLES
|
||||
WHERE table_schema = :table_schema
|
||||
GROUP BY table_schema"
|
||||
);
|
||||
Database::pexecute($mbdata_stmt, array("table_schema" => $row['databasename']));
|
||||
$mbdata = $mbdata_stmt->fetch(PDO::FETCH_ASSOC);
|
||||
$row['size'] = number_format($mbdata['MB'], 3, '.', '');
|
||||
$row['size'] = size_readable($mbdata['MB'], 'GiB', 'bi', '%01.'.(int)$settings['panel']['decimal_places'].'f %s');
|
||||
eval("\$mysqls.=\"" . getTemplate('mysql/mysqls_database') . "\";");
|
||||
$count++;
|
||||
}
|
||||
|
||||
@@ -79,17 +79,17 @@ if (!is_null($month) && !is_null($year)) {
|
||||
$traf['day'] = $row['day'] . '.';
|
||||
|
||||
if (extension_loaded('bcmath')) {
|
||||
$traf['ftptext'] = bcdiv($row['ftp_up'], 1024, $settings['panel']['decimal_places']) . " MB up/ " . bcdiv($row['ftp_down'], 1024, $settings['panel']['decimal_places']) . " MB down (FTP)";
|
||||
$traf['httptext'] = bcdiv($http, 1024, $settings['panel']['decimal_places']) . " MB (HTTP)";
|
||||
$traf['mailtext'] = bcdiv($mail, 1024, $settings['panel']['decimal_places']) . " MB (Mail)";
|
||||
$traf['ftptext'] = bcdiv($row['ftp_up'], 1024, $settings['panel']['decimal_places']) . " MiB up/ " . bcdiv($row['ftp_down'], 1024, $settings['panel']['decimal_places']) . " MiB down (FTP)";
|
||||
$traf['httptext'] = bcdiv($http, 1024, $settings['panel']['decimal_places']) . " MiB (HTTP)";
|
||||
$traf['mailtext'] = bcdiv($mail, 1024, $settings['panel']['decimal_places']) . " MiB (Mail)";
|
||||
$traf['ftp'] = bcdiv($ftp, 1024, $settings['panel']['decimal_places']);
|
||||
$traf['http'] = bcdiv($http, 1024, $settings['panel']['decimal_places']);
|
||||
$traf['mail'] = bcdiv($mail, 1024, $settings['panel']['decimal_places']);
|
||||
$traf['byte'] = bcdiv($traf['byte'], 1024, $settings['panel']['decimal_places']);
|
||||
} else {
|
||||
$traf['ftptext'] = round($row['ftp_up'] / 1024, $settings['panel']['decimal_places']) . " MB up/ " . round($row['ftp_down'] / 1024, $settings['panel']['decimal_places']) . " MB down (FTP)";
|
||||
$traf['httptext'] = round($http / 1024, $settings['panel']['decimal_places']) . " MB (HTTP)";
|
||||
$traf['mailtext'] = round($mail / 1024, $settings['panel']['decimal_places']) . " MB (Mail)";
|
||||
$traf['ftptext'] = round($row['ftp_up'] / 1024, $settings['panel']['decimal_places']) . " MiB up/ " . round($row['ftp_down'] / 1024, $settings['panel']['decimal_places']) . " MiB down (FTP)";
|
||||
$traf['httptext'] = round($http / 1024, $settings['panel']['decimal_places']) . " MiB (HTTP)";
|
||||
$traf['mailtext'] = round($mail / 1024, $settings['panel']['decimal_places']) . " MiB (Mail)";
|
||||
$traf['http'] = round($http, $settings['panel']['decimal_places']);
|
||||
$traf['ftp'] = round($ftp, $settings['panel']['decimal_places']);
|
||||
$traf['mail'] = round($mail, $settings['panel']['decimal_places']);
|
||||
@@ -99,16 +99,10 @@ if (!is_null($month) && !is_null($year)) {
|
||||
eval("\$traffic.=\"" . getTemplate('traffic/traffic_month') . "\";");
|
||||
$show = $lng['traffic']['months'][intval($row['month'])] . ' ' . $row['year'];
|
||||
}
|
||||
|
||||
if (extension_loaded('bcmath')) {
|
||||
$traffic_complete['http'] = bcdiv($traffic_complete['http'], 1024, $settings['panel']['decimal_places']);
|
||||
$traffic_complete['ftp'] = bcdiv($traffic_complete['ftp'], 1024, $settings['panel']['decimal_places']);
|
||||
$traffic_complete['mail'] = bcdiv($traffic_complete['mail'], 1024, $settings['panel']['decimal_places']);
|
||||
} else {
|
||||
$traffic_complete['http'] = round($traffic_complete['http'] / 1024, $settings['panel']['decimal_places']);
|
||||
$traffic_complete['ftp'] = round($traffic_complete['ftp'] / 1024, $settings['panel']['decimal_places']);
|
||||
$traffic_complete['mail'] = round($traffic_complete['mail'] / 1024, $settings['panel']['decimal_places']);
|
||||
}
|
||||
|
||||
$traffic_complete['http'] = size_readable($traffic_complete['http'] * 1024, 'GiB', 'bi', '%01.'.(int)$settings['panel']['decimal_places'].'f %s');
|
||||
$traffic_complete['ftp'] = size_readable($traffic_complete['ftp'] * 1024, 'GiB', 'bi', '%01.'.(int)$settings['panel']['decimal_places'].'f %s');
|
||||
$traffic_complete['mail'] = size_readable($traffic_complete['mail'] * 1024, 'GiB', 'bi', '%01.'.(int)$settings['panel']['decimal_places'].'f %s');
|
||||
|
||||
eval("echo \"" . getTemplate('traffic/traffic_details') . "\";");
|
||||
} else {
|
||||
@@ -138,17 +132,17 @@ if (!is_null($month) && !is_null($year)) {
|
||||
$traf['byte'] = $http + $ftp_up + $ftp_down + $mail;
|
||||
|
||||
if (extension_loaded('bcmath')) {
|
||||
$traf['ftptext'] = bcdiv($ftp_up, 1024, $settings['panel']['decimal_places']) . " MB up/ " . bcdiv($ftp_down, 1024, $settings['panel']['decimal_places']) . " MB down (FTP)";
|
||||
$traf['httptext'] = bcdiv($http, 1024, $settings['panel']['decimal_places']) . " MB (HTTP)";
|
||||
$traf['mailtext'] = bcdiv($mail, 1024, $settings['panel']['decimal_places']) . " MB (Mail)";
|
||||
$traf['ftptext'] = bcdiv($ftp_up, 1024, $settings['panel']['decimal_places']) . " MiB up/ " . bcdiv($ftp_down, 1024, $settings['panel']['decimal_places']) . " MiB down (FTP)";
|
||||
$traf['httptext'] = bcdiv($http, 1024, $settings['panel']['decimal_places']) . " MiB (HTTP)";
|
||||
$traf['mailtext'] = bcdiv($mail, 1024, $settings['panel']['decimal_places']) . " MiB (Mail)";
|
||||
$traf['ftp'] = bcdiv(($ftp_up + $ftp_down), 1024, $settings['panel']['decimal_places']);
|
||||
$traf['http'] = bcdiv($http, 1024, $settings['panel']['decimal_places']);
|
||||
$traf['mail'] = bcdiv($mail, 1024, $settings['panel']['decimal_places']);
|
||||
$traf['byte'] = bcdiv($traf['byte'], 1024 * 1024, $settings['panel']['decimal_places']);
|
||||
} else {
|
||||
$traf['ftptext'] = round($ftp_up / 1024, $settings['panel']['decimal_places']) . " MB up/ " . round($ftp_down / 1024, $settings['panel']['decimal_places']) . " MB down (FTP)";
|
||||
$traf['httptext'] = round($http / 1024, $settings['panel']['decimal_places']) . " MB (HTTP)";
|
||||
$traf['mailtext'] = round($mail / 1024, $settings['panel']['decimal_places']) . " MB (Mail)";
|
||||
$traf['ftptext'] = round($ftp_up / 1024, $settings['panel']['decimal_places']) . " MiB up/ " . round($ftp_down / 1024, $settings['panel']['decimal_places']) . " MiB down (FTP)";
|
||||
$traf['httptext'] = round($http / 1024, $settings['panel']['decimal_places']) . " MiB (HTTP)";
|
||||
$traf['mailtext'] = round($mail / 1024, $settings['panel']['decimal_places']) . " MiB (Mail)";
|
||||
$traf['ftp'] = round(($ftp_up + $ftp_down) / 1024, $settings['panel']['decimal_places']);
|
||||
$traf['http'] = round($http / 1024, $settings['panel']['decimal_places']);
|
||||
$traf['mail'] = round($mail / 1024, $settings['panel']['decimal_places']);
|
||||
@@ -158,15 +152,9 @@ if (!is_null($month) && !is_null($year)) {
|
||||
eval("\$traffic.=\"" . getTemplate('traffic/traffic_traffic') . "\";");
|
||||
}
|
||||
|
||||
if (extension_loaded('bcmath')) {
|
||||
$traffic_complete['http'] = bcdiv($traffic_complete['http'], 1024 * 1024, $settings['panel']['decimal_places']);
|
||||
$traffic_complete['ftp'] = bcdiv($traffic_complete['ftp'], 1024 * 1024, $settings['panel']['decimal_places']);
|
||||
$traffic_complete['mail'] = bcdiv($traffic_complete['mail'], 1024 * 1024, $settings['panel']['decimal_places']);
|
||||
} else {
|
||||
$traffic_complete['http'] = round($traffic_complete['http'] / (1024 * 1024), $settings['panel']['decimal_places']);
|
||||
$traffic_complete['ftp'] = round($traffic_complete['ftp'] / (1024 * 1024), $settings['panel']['decimal_places']);
|
||||
$traffic_complete['mail'] = round($traffic_complete['mail'] / (1024 * 1024), $settings['panel']['decimal_places']);
|
||||
}
|
||||
$traffic_complete['http'] = size_readable($traffic_complete['http'] * 1024, 'GiB', 'bi', '%01.'.(int)$settings['panel']['decimal_places'].'f %s');
|
||||
$traffic_complete['ftp'] = size_readable($traffic_complete['ftp'] * 1024, 'GiB', 'bi', '%01.'.(int)$settings['panel']['decimal_places'].'f %s');
|
||||
$traffic_complete['mail'] = size_readable($traffic_complete['mail'] * 1024, 'GiB', 'bi', '%01.'.(int)$settings['panel']['decimal_places'].'f %s');
|
||||
|
||||
eval("echo \"" . getTemplate('traffic/traffic') . "\";");
|
||||
}
|
||||
|
||||
@@ -61,8 +61,8 @@ $lng['customer']['phone'] = 'Phone';
|
||||
$lng['customer']['fax'] = 'Fax';
|
||||
$lng['customer']['email'] = 'Email';
|
||||
$lng['customer']['customernumber'] = 'Customer ID';
|
||||
$lng['customer']['diskspace'] = 'Webspace (MB)';
|
||||
$lng['customer']['traffic'] = 'Traffic (GB)';
|
||||
$lng['customer']['diskspace'] = 'Webspace (MiB)';
|
||||
$lng['customer']['traffic'] = 'Traffic (GiB)';
|
||||
$lng['customer']['mysqls'] = 'MySQL-databases';
|
||||
$lng['customer']['emails'] = 'Email-addresses';
|
||||
$lng['customer']['accounts'] = 'Email-accounts';
|
||||
@@ -720,11 +720,11 @@ $lng['traffic']['months'][9] = "September";
|
||||
$lng['traffic']['months'][10] = "October";
|
||||
$lng['traffic']['months'][11] = "November";
|
||||
$lng['traffic']['months'][12] = "December";
|
||||
$lng['traffic']['mb'] = "Traffic (MB)";
|
||||
$lng['traffic']['mb'] = "Traffic (MiB)";
|
||||
$lng['traffic']['distribution'] = '<font color="#019522">FTP</font> | <font color="#0000FF">HTTP</font> | <font color="#800000">Mail</font>';
|
||||
$lng['traffic']['sumhttp'] = 'Summation HTTP-Traffic in';
|
||||
$lng['traffic']['sumftp'] = 'Summation FTP-Traffic in';
|
||||
$lng['traffic']['summail'] = 'Summation Mail-Traffic in';
|
||||
$lng['traffic']['sumhttp'] = 'Total HTTP-Traffic';
|
||||
$lng['traffic']['sumftp'] = 'Total FTP-Traffic';
|
||||
$lng['traffic']['summail'] = 'Total Mail-Traffic';
|
||||
|
||||
// ADDED IN 1.2.19-svn4.5
|
||||
|
||||
@@ -1870,13 +1870,13 @@ $lng['error']['session_timeout_desc'] = 'You should not set the session timeout
|
||||
$lng['admin']['assignedmax'] = 'Assigned / Max';
|
||||
$lng['admin']['usedmax'] = 'Used / Max';
|
||||
$lng['admin']['used'] = 'Used';
|
||||
$lng['mysql']['size'] = 'Database size (MB)';
|
||||
$lng['mysql']['size'] = 'Size';
|
||||
|
||||
$lng['error']['invalidhostname'] = 'Hostname can\'t be empty nor can it consist only of whitespaces';
|
||||
|
||||
$lng['traffic']['http'] = 'HTTP (MB)';
|
||||
$lng['traffic']['ftp'] = 'FTP (MB)';
|
||||
$lng['traffic']['mail'] = 'Mail (MB)';
|
||||
$lng['traffic']['http'] = 'HTTP (MiB)';
|
||||
$lng['traffic']['ftp'] = 'FTP (MiB)';
|
||||
$lng['traffic']['mail'] = 'Mail (MiB)';
|
||||
|
||||
// ADDED IN 0.9.27-svn1
|
||||
$lng['serversettings']['mod_fcgid']['idle_timeout']['title'] = 'Idle Timeout';
|
||||
|
||||
@@ -61,8 +61,8 @@ $lng['customer']['phone'] = 'Telefon';
|
||||
$lng['customer']['fax'] = 'Fax';
|
||||
$lng['customer']['email'] = 'E-Mail';
|
||||
$lng['customer']['customernumber'] = 'Kundennummer';
|
||||
$lng['customer']['diskspace'] = 'Webspace (MB)';
|
||||
$lng['customer']['traffic'] = 'Traffic (GB)';
|
||||
$lng['customer']['diskspace'] = 'Webspace (MiB)';
|
||||
$lng['customer']['traffic'] = 'Traffic (GiB)';
|
||||
$lng['customer']['mysqls'] = 'MySQL-Datenbanken';
|
||||
$lng['customer']['emails'] = 'E-Mail-Adressen';
|
||||
$lng['customer']['accounts'] = 'E-Mail-Konten';
|
||||
@@ -718,12 +718,12 @@ $lng['traffic']['months'][9] = "September";
|
||||
$lng['traffic']['months'][10] = "Oktober";
|
||||
$lng['traffic']['months'][11] = "November";
|
||||
$lng['traffic']['months'][12] = "Dezember";
|
||||
$lng['traffic']['mb'] = "Traffic (MB)";
|
||||
$lng['traffic']['mb'] = "Traffic (MiB)";
|
||||
$lng['traffic']['day'] = "Tag";
|
||||
$lng['traffic']['distribution'] = '<font color="#019522">FTP</font> | <font color="#0000FF">HTTP</font> | <font color="#800000">Mail</font>';
|
||||
$lng['traffic']['sumhttp'] = 'Summe HTTP-Traffic in';
|
||||
$lng['traffic']['sumftp'] = 'Summe FTP-Traffic in';
|
||||
$lng['traffic']['summail'] = 'Summe Mail-Traffic in';
|
||||
$lng['traffic']['sumhttp'] = 'Gesamt HTTP-Traffic';
|
||||
$lng['traffic']['sumftp'] = 'Gesamt FTP-Traffic';
|
||||
$lng['traffic']['summail'] = 'Gesamt Mail-Traffic';
|
||||
|
||||
// ADDED IN 1.2.19-svn4.5
|
||||
|
||||
@@ -1597,13 +1597,13 @@ $lng['error']['session_timeout_desc'] = 'Der Wert der Session-Timeout sollte nic
|
||||
$lng['admin']['assignedmax'] = 'Zugewiesen / Max.';
|
||||
$lng['admin']['usedmax'] = 'Benutzt / Max.';
|
||||
$lng['admin']['used'] = 'Benutzt';
|
||||
$lng['mysql']['size'] = 'Datenbankgröße (MB)';
|
||||
$lng['mysql']['size'] = 'Datenbankgröße';
|
||||
|
||||
$lng['error']['invalidhostname'] = 'Hostname darf nicht leer sein oder nur aus Leerzeichen bestehen';
|
||||
|
||||
$lng['traffic']['http'] = 'HTTP (MB)';
|
||||
$lng['traffic']['ftp'] = 'FTP (MB)';
|
||||
$lng['traffic']['mail'] = 'Mail (MB)';
|
||||
$lng['traffic']['http'] = 'HTTP (MiB)';
|
||||
$lng['traffic']['ftp'] = 'FTP (MiB)';
|
||||
$lng['traffic']['mail'] = 'Mail (MiB)';
|
||||
|
||||
// ADDED IN 0.9.27-svn1
|
||||
$lng['serversettings']['mod_fcgid']['idle_timeout']['title'] = 'Idle-Timeout';
|
||||
|
||||
@@ -124,6 +124,10 @@ footer a:hover {
|
||||
border: 1px solid #999999;
|
||||
}
|
||||
|
||||
.errorbox {
|
||||
width: 800px;
|
||||
}
|
||||
|
||||
.fullform,.midform,.tinyform {
|
||||
border: 1px solid #666;
|
||||
background-color: #f8f8f8;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<td><if $row['destination'] == ''> <else>{$row['destination']}</if></td>
|
||||
<td><if $row['popaccountid'] != 0>{$lng['panel']['yes']} ({$row['mboxsize']})</if><if $row['popaccountid'] == 0>{$lng['panel']['no']}</if></td>
|
||||
<if $settings['catchall']['catchall_enabled'] == '1'><td><if $row['iscatchall'] != 0>{$lng['panel']['yes']}</if><if $row['iscatchall'] == 0>{$lng['panel']['no']}</if></td></if>
|
||||
<if $settings['system']['mail_quota_enabled'] == '1'><td><if $row['quota'] == 0>{$lng['emails']['noquota']}<else>{$row['quota']} MB</if></if></td>
|
||||
<if $settings['system']['mail_quota_enabled'] == '1'><td><if $row['quota'] == 0>{$lng['emails']['noquota']}<else>{$row['quota']} MiB</if></if></td>
|
||||
<td>
|
||||
<a href="{$linker->getLink(array('section' => 'email', 'page' => $page, 'action' => 'edit', 'id' => $row['id']))}" style="text-decoration:none;">
|
||||
<img src="templates/{$theme}/assets/img/icons/edit.png" alt="{$lng['panel']['edit']}" />
|
||||
|
||||
@@ -15,9 +15,9 @@ $header
|
||||
|
||||
<table class="formtable">
|
||||
<tr>
|
||||
<td>{$lng['traffic']['sumftp']} GB</td>
|
||||
<td>{$lng['traffic']['sumhttp']} GB</td>
|
||||
<td>{$lng['traffic']['summail']} GB</td>
|
||||
<td>{$lng['traffic']['sumftp']}</td>
|
||||
<td>{$lng['traffic']['sumhttp']}</td>
|
||||
<td>{$lng['traffic']['summail']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div style="color:#019522;text-align:center">{$traffic_complete['ftp']}</div></td>
|
||||
|
||||
@@ -15,9 +15,9 @@ $header
|
||||
|
||||
<table class="formtable">
|
||||
<tr>
|
||||
<td>{$lng['traffic']['sumftp']} MB</td>
|
||||
<td>{$lng['traffic']['sumhttp']} MB</td>
|
||||
<td>{$lng['traffic']['summail']} MB</td>
|
||||
<td>{$lng['traffic']['sumftp']}</td>
|
||||
<td>{$lng['traffic']['sumhttp']}</td>
|
||||
<td>{$lng['traffic']['summail']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div style="color:#019522;text-align:center">{$traffic_complete['ftp']}</div></td>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="loginpage">
|
||||
<article class="login bradius">
|
||||
<article class="login errorbox bradius">
|
||||
<header class="dark">
|
||||
<img src="templates/Froxlor/assets/img/logo.png" alt="Froxlor Server Management Panel" />
|
||||
</header>
|
||||
|
||||
11
templates/Sparkle/assets/css/main.css
vendored
11
templates/Sparkle/assets/css/main.css
vendored
@@ -182,7 +182,7 @@ footer img {
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
.login, .install {
|
||||
.login, .install, .errorbox {
|
||||
background-color:#fff;
|
||||
margin: 9%;
|
||||
margin-left: auto;
|
||||
@@ -194,7 +194,7 @@ footer img {
|
||||
margin: 10px !important;
|
||||
}
|
||||
|
||||
.install {
|
||||
.install, .errorbox {
|
||||
width: 800px;
|
||||
}
|
||||
|
||||
@@ -230,11 +230,14 @@ table.tinyform input {
|
||||
padding: 5px 15px 15px 15px;
|
||||
}
|
||||
|
||||
.tinyform,.loginsec {
|
||||
.tinyform, .loginsec, .errorsec {
|
||||
margin-top:10px;
|
||||
padding:10px 0;
|
||||
text-align:center;
|
||||
}
|
||||
.errorsec {
|
||||
padding: 10px 10px;
|
||||
}
|
||||
.tinyform {
|
||||
padding: 0;
|
||||
}
|
||||
@@ -332,7 +335,7 @@ p.submit {
|
||||
padding-right:46px;
|
||||
}
|
||||
|
||||
.installsec aside,.loginsec aside {
|
||||
.installsec aside,.loginsec aside, .errorsec aside {
|
||||
border-top:1px solid #d1d5d8;
|
||||
clear:both;
|
||||
float:none;
|
||||
|
||||
17
templates/Sparkle/assets/js/main.js
vendored
17
templates/Sparkle/assets/js/main.js
vendored
@@ -25,20 +25,21 @@ $(document).ready(function() {
|
||||
return false;
|
||||
});
|
||||
|
||||
// Load Newsfeed
|
||||
var ajax_load = "<div id='newsitem'>Loading newsfeed...</div>";
|
||||
$("#newsfeeditems").html(ajax_load).load("lib/ajax.php?action=newsfeed", function() {
|
||||
if ($("#newsfeeditems").html() != "") {
|
||||
$(window).trigger('resize');
|
||||
$("#newsfeed").slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
// Height of divs fix
|
||||
var snheight = $('#sidenavigation').height();
|
||||
var mainheight = $('#maincontent').height();
|
||||
if (snheight > mainheight) {
|
||||
$('#maincontent').height(snheight - 60);
|
||||
}
|
||||
|
||||
// Load Newsfeed
|
||||
var ajax_load = "<div id='newsitem'>Loading newsfeed...</div>";
|
||||
$("#newsfeeditems").html(ajax_load).load("lib/ajax.php?action=newsfeed", function() {
|
||||
if ($("#newsfeeditems").html() != "") {
|
||||
$("#newsfeed").slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
// this is necessary for the special setting feature (ref #1010)
|
||||
$.getQueryVariable = function(key) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<td><if $row['destination'] == ''> <else>{$row['destination']}</if></td>
|
||||
<td><if $row['popaccountid'] != 0>{$lng['panel']['yes']} ({$row['mboxsize']})</if><if $row['popaccountid'] == 0>{$lng['panel']['no']}</if></td>
|
||||
<if $settings['catchall']['catchall_enabled'] == '1'><td><if $row['iscatchall'] != 0>{$lng['panel']['yes']}</if><if $row['iscatchall'] == 0>{$lng['panel']['no']}</if></td></if>
|
||||
<if $settings['system']['mail_quota_enabled'] == '1'><td><if $row['quota'] == 0>{$lng['emails']['noquota']}<else>{$row['quota']} MB</if></if></td>
|
||||
<if $settings['system']['mail_quota_enabled'] == '1'><td><if $row['quota'] == 0>{$lng['emails']['noquota']}<else>{$row['quota']} MiB</if></if></td>
|
||||
<td>
|
||||
<a href="{$linker->getLink(array('section' => 'email', 'page' => $page, 'action' => 'edit', 'id' => $row['id']))}" style="text-decoration:none;">
|
||||
<img src="templates/{$theme}/assets/img/icons/edit.png" alt="{$lng['panel']['edit']}" />
|
||||
|
||||
@@ -13,9 +13,9 @@ $header
|
||||
<fieldset>
|
||||
<table class="fullform bradius">
|
||||
<tr>
|
||||
<th>{$lng['traffic']['sumftp']} GB</th>
|
||||
<th>{$lng['traffic']['sumhttp']} GB</th>
|
||||
<th>{$lng['traffic']['summail']} GB</th>
|
||||
<th>{$lng['traffic']['sumftp']}</th>
|
||||
<th>{$lng['traffic']['sumhttp']}</th>
|
||||
<th>{$lng['traffic']['summail']}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div style="color:#019522;">{$traffic_complete['ftp']}</div></td>
|
||||
|
||||
@@ -14,11 +14,13 @@ $header
|
||||
<legend>Froxlor - {$lng['menue']['traffic']['traffic']} $show</legend>
|
||||
|
||||
<table class="formtable">
|
||||
<tr>
|
||||
<td>{$lng['traffic']['sumftp']} MB</td>
|
||||
<td>{$lng['traffic']['sumhttp']} MB</td>
|
||||
<td>{$lng['traffic']['summail']} MB</td>
|
||||
</tr>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lng['traffic']['sumftp']}</th>
|
||||
<th>{$lng['traffic']['sumhttp']}</th>
|
||||
<th>{$lng['traffic']['summail']}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td><div style="color:#019522;text-align:center">{$traffic_complete['ftp']}</div></td>
|
||||
<td><div style="color:#0000FF;text-align:center">{$traffic_complete['http']}</div></td>
|
||||
|
||||
4
templates/Sparkle/misc/dberrornice.tpl
vendored
4
templates/Sparkle/misc/dberrornice.tpl
vendored
@@ -19,12 +19,12 @@
|
||||
<body>
|
||||
<div class="loginpage">
|
||||
|
||||
<article class="login bradius">
|
||||
<article class="errorbox bradius">
|
||||
<header class="dark">
|
||||
<img src="templates/Sparkle/assets/img/logo.png" alt="Froxlor Server Management Panel" />
|
||||
</header>
|
||||
|
||||
<section class="loginsec">
|
||||
<section class="errorsec">
|
||||
<div class="errorcontainer bradius">
|
||||
<div class="errortitle">A database error occured</div>
|
||||
<div class="error">
|
||||
|
||||
Reference in New Issue
Block a user