Skip to content

Commit 4082c22

Browse files
committed
added web statst link and nginx extention title
1 parent 50f7bcc commit 4082c22

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed

web/templates/admin/list_db.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
}
1313

1414
list($http_host, $port) = split(':', $_SERVER["HTTP_HOST"]);
15+
if ($data[$key]['TYPE'] == 'mysql') $db_admin = "phpMyAdmin";
1516
if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "http://".$http_host."/phpMyAdmin/";
17+
if ($data[$key]['TYPE'] == 'pgsql') $db_admin = "phpPgAdmin";
1618
if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$http_host."/phpPgAdmin/";
1719
?>
1820

@@ -68,7 +70,7 @@
6870
<td class="data-dotted" width="830px" style="vertical-align:top;">
6971
<table width="830px"><tr>
7072
<td></td>
71-
<td class="data-controls" width="120px"><img src="/images/new_window.png" width="8px" height="8px"> <a href="<?php echo $db_admin_link; ?>" target="_blank"> open web admin</a></td>
73+
<td class="data-controls" width="126px"><img src="/images/new_window.png" width="8px" height="8px"> <a href="<?php echo $db_admin_link; ?>" target="_blank"> open <?php echo $db_admin ?> </a></td>
7274
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/db/?database=<?php echo $key ?>"> edit</a></td>
7375
<td class="data-controls" width="80px">
7476
<img src="/images/suspend.png" width="7px" height="8px">

web/templates/admin/list_mail_acc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
</tr></table>
8282

8383
<table class="data-col2" width="830px">
84-
<tr><td colspan=3 class="domain" style="padding: 0 0 0 4px;"><b><?php echo $key ?></b> <a class="aliases" style="padding: 0 20px 0 4px"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a></td></tr>
84+
<tr><td colspan=3 class="domain" style="padding: 0 0 0 4px;"><b><?php echo $key."@".$_GET['domain'] ?></b> <a class="aliases" style="padding: 0 20px 0 4px"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a></td></tr>
8585
<tr>
8686
<td style="vertical-align:top;" >
8787
<table>

web/templates/admin/list_web.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@
2121
$ssl_home = '';
2222
}
2323
if (strlen($data[$key]['NGINX_EXT']) > 16 ) {
24+
$nginx_ext_title = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
2425
$nginx_ext = substr($data[$key]['NGINX_EXT'], 0, 16);
2526
$nginx_ext = trim($nginx_ext, ",");
2627
$nginx_ext = str_replace(',', ', ', $nginx_ext);
2728
$nginx_ext = $nginx_ext.", ...";
2829
} else {
30+
$nginx_ext_title = '';
2931
$nginx_ext = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
3032
}
3133

@@ -83,6 +85,10 @@
8385
<td class="data-dotted" width="830px" style="vertical-align:top;">
8486
<table width="830px"><tr>
8587
<td></td>
88+
<?php if (!empty($data[$key]['STATS'])) {
89+
echo ' <td class="data-controls" width="114px"><img src="/images/new_window.png" width="8px" height="8px">';
90+
echo "<a href='http://".$key."/vstats/' target='_blank'> open webstats </a></td>";
91+
} ?>
8692
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/web/?domain=<?php echo "$key" ?>"> edit</a></td>
8793
<td class="data-controls" width="80px">
8894
<img src="/images/suspend.png" width="7px" height="8px">
@@ -127,7 +133,7 @@
127133
<tr><td class="counter-name" width="40%">SSL Support:</td><td class="counter-value"><?php echo $data[$key]['SSL'] ?></td></tr>
128134
<tr><td class="counter-name">SSL Home:</td><td class="counter-value"><?php echo $ssl_home ?></td></tr>
129135
<tr><td class="counter-name">Nginx Template:</td><td class="counter-value"><?php echo $data[$key]['NGINX'] ?></td></tr>
130-
<tr><td class="counter-name">Nginx Extentions:</td><td class="counter-value"><?php echo $nginx_ext ?></td></tr>
136+
<tr><td class="counter-name">Nginx Extentions:</td><td class="counter-value" <?php if (!empty($nginx_ext_title)) echo "title='".$nginx_ext_title."'" ?>><?php echo $nginx_ext ?></td></tr>
131137
</table>
132138
</td>
133139
</tr>

web/templates/user/list_mail_acc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</tr></table>
5757

5858
<table class="data-col2" width="830px">
59-
<tr><td colspan=3 class="domain" style="padding: 0 0 0 4px;"><b><?php echo $key ?></b> <a class="aliases" style="padding: 0 20px 0 4px"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a></td></tr>
59+
<tr><td colspan=3 class="domain" style="padding: 0 0 0 4px;"><b><?php echo $key."@".$_GET['domain'] ?></b> <a class="aliases" style="padding: 0 20px 0 4px"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a></td></tr>
6060
<tr>
6161
<td style="vertical-align:top;" >
6262
<table>

web/templates/user/list_web.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@
2121
$ssl_home = '';
2222
}
2323
if (strlen($data[$key]['NGINX_EXT']) > 16 ) {
24+
$nginx_ext_title = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
2425
$nginx_ext = substr($data[$key]['NGINX_EXT'], 0, 16);
2526
$nginx_ext = trim($nginx_ext, ",");
2627
$nginx_ext = str_replace(',', ', ', $nginx_ext);
2728
$nginx_ext = $nginx_ext.", ...";
2829
} else {
30+
$nginx_ext_title = '';
2931
$nginx_ext = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
3032
}
3133

@@ -65,6 +67,10 @@
6567
<td class="data-dotted" width="830px" style="vertical-align:top;">
6668
<table width="830px"><tr>
6769
<td></td>
70+
<?php if (!empty($data[$key]['STATS'])) {
71+
echo ' <td class="data-controls" width="114px"><img src="/images/new_window.png" width="8px" height="8px">';
72+
echo "<a href='http://".$key."/vstats/' target='_blank'> open webstats </a></td>";
73+
} ?>
6874
<td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="/edit/web/?domain=<?php echo "$key" ?>"> edit</a></td>
6975
<td class="data-controls" width="70px">
7076
<img src="/images/delete.png" width="7px" height="7px">
@@ -102,7 +108,7 @@
102108
<tr><td class="counter-name" width="40%">SSL Support:</td><td class="counter-value"><?php echo $data[$key]['SSL'] ?></td></tr>
103109
<tr><td class="counter-name">SSL Home:</td><td class="counter-value"><?php echo $ssl_home ?></td></tr>
104110
<tr><td class="counter-name">Nginx Template:</td><td class="counter-value"><?php echo $data[$key]['NGINX'] ?></td></tr>
105-
<tr><td class="counter-name">Nginx Extentions:</td><td class="counter-value"><?php echo $nginx_ext ?></td></tr>
111+
<tr><td class="counter-name">Nginx Extentions:</td><td class="counter-value" <?php if (!empty($nginx_ext_title)) echo "title='".$nginx_ext_title."'" ?>><?php echo $nginx_ext ?></td></tr>
106112
</table>
107113
</td>
108114
</tr>

0 commit comments

Comments
 (0)