File tree Expand file tree Collapse file tree 8 files changed +530
-178
lines changed
Expand file tree Collapse file tree 8 files changed +530
-178
lines changed Original file line number Diff line number Diff line change @@ -35,20 +35,17 @@ check_hestia_demo_mode
3535# ----------------------------------------------------------#
3636
3737if [ " $status " = " enable" ]; then
38- if [ $API = " no" ]; then
39- if [ ! -f " $HESTIA /web/api/index.php" ]; then
40- wget -q https://raw.githubusercontent.com/hestiacp/hestiacp/release/web/api/index.php -O $HESTIA /web/api/index.php
41- else
42- sed -i ' s|die("Error: Disabled");|//die("Error: Disabled");|g' $HESTIA /web/api/index.php
43- fi
44- $HESTIA /bin/v-change-sys-config-value " API" " yes"
38+ if [ ! -f " $HESTIA /web/api/index.php" ]; then
39+ wget -q https://raw.githubusercontent.com/hestiacp/hestiacp/release/web/api/index.php -O $HESTIA /web/api/index.php
40+ else
41+ sed -i ' s|die("Error: Disabled");|//die("Error: Disabled");|g' $HESTIA /web/api/index.php
42+ sed -i ' s|////|//|g' $HESTIA /web/api/index.php
4543 fi
44+ $HESTIA /bin/v-change-sys-config-value " API" " yes"
4645else
47- if [ $API = " yes" ]; then
48- $HESTIA /bin/v-change-sys-config-value " API" " no"
49- $HESTIA /bin/v-change-sys-config-value " API_ALLOWED_IP" " "
50- sed -i ' s|//die("Error: Disabled");|die("Error: Disabled");|g' $HESTIA /web/api/index.php
51- fi
46+ $HESTIA /bin/v-change-sys-config-value " API" " no"
47+ $HESTIA /bin/v-change-sys-config-value " API_ALLOWED_IP" " "
48+ sed -i ' s|//die("Error: Disabled");|die("Error: Disabled");|g' $HESTIA /web/api/index.php
5249fi
5350
5451# ----------------------------------------------------------#
Original file line number Diff line number Diff line change @@ -589,6 +589,10 @@ if [ "$HESTIA_B" = true ]; then
589589
590590 # Set permissions
591591 find $BUILD_DIR_HESTIA /usr/local/hestia/ -type f -exec chmod -x {} \;
592+
593+ # Allow send email via /usr/local/hestia/web/inc/mail-wrapper.php via cli
594+ chmod +x $BUILD_DIR_HESTIA /usr/local/hestia/web/inc/mail-wrapper.php
595+ # Allow the executable to be executed
592596 chmod +x $BUILD_DIR_HESTIA /usr/local/hestia/bin/*
593597 chown -R root:root $BUILD_DIR_HESTIA
594598
Original file line number Diff line number Diff line change 227227.l-stat__col {
228228}
229229
230+ .l-stat__col li {
231+ color : # b7b7b7 !important ;
232+ }
233+
230234.l-stat__col a {
231235 border-bottom : 4px solid # 282828 ;
232236 background-color : # 282828 ;
@@ -1480,6 +1484,35 @@ form#vstobjects.suspended {
14801484 border-right : 1px solid transparent !important ;
14811485}
14821486
1487+ .l-percent {
1488+ border-bottom : 2px solid # 585858 !important ;
1489+ }
1490+
1491+ .body-stats .l-unit__name {
1492+ color : # eee !important ;
1493+ }
1494+
1495+ .statistics-count {
1496+ border-bottom : 1px dotted # 707070 ;
1497+ border-right : 1px dotted # 707070 ;
1498+ }
1499+
1500+ .body-stats .units .l-unit {
1501+ background-color : # 282828 !important ;
1502+ border-bottom : 1px solid # 404040 !important ;
1503+ border-left : 1px solid # 282828 !important ;
1504+ border-right : 1px solid # 282828 !important ;
1505+ }
1506+
1507+ .body-stats .units : hover .l-unit : hover {
1508+ background-color : # 303030 !important ;
1509+ color : # fff !important ;
1510+ }
1511+
1512+ .body-stats .units : hover .l-unit : hover b , .body-stats .units : hover .l-unit : hover strong {
1513+ color : # fff !important ;
1514+ }
1515+
14831516@media screen and (max-width : 950px ) {
14841517 .helper-container {
14851518 display : none;
Original file line number Diff line number Diff line change 621621 font-size : 0.85em ;
622622}
623623
624+ .text-italic {
625+ font-style : italic;
626+ }
627+
624628.check-label {
625629 display : inline-block;
626630 cursor : pointer;
@@ -1911,6 +1915,12 @@ div.l-content > div.l-separator:nth-of-type(4) {
19111915 padding-bottom : 15px ;
19121916}
19131917
1918+ .body-stats .l-unit__name {
1919+ margin-left : -42px ;
1920+ margin-top : 12px ;
1921+ color : # 606060 ;
1922+ }
1923+
19141924.l-unit__name .small {
19151925 font-size : 16px ;
19161926}
@@ -1956,7 +1966,13 @@ div.l-content > div.l-separator:nth-of-type(4) {
19561966
19571967.l-unit__stats {
19581968 margin-bottom : 10px ;
1959- margin-left : 12% ;
1969+ margin-left : 15% ;
1970+ border-left : 1px solid transparent !important ;
1971+ border-right : 1px solid transparent !important ;
1972+ }
1973+
1974+ .lang-ar .l-unit__stats {
1975+ margin-left : 20% ;
19601976}
19611977
19621978.l-unit__stats : hover {
@@ -1969,12 +1985,25 @@ div.l-content > div.l-separator:nth-of-type(4) {
19691985.l-unit__stats table {
19701986 width : 100% ;
19711987 table-layout : fixed;
1988+ margin-top : -54px ;
1989+ margin-left : -20px ;
19721990}
19731991
19741992.l-unit__stats td {
1975- height : 22px ;
1976- padding-bottom : 3px ;
1977- vertical-align : top;
1993+ height : 32px ;
1994+ padding-bottom : 4px ;
1995+ vertical-align : middle;
1996+ }
1997+ .body-stats .l-unit__stat-col--left {
1998+ width : 130px ;
1999+ }
2000+
2001+ .l-unit__stat-col .l-unit__stat-col--left .text-right .icon-pad-right .text-italic {
2002+ width : 180px ;
2003+ }
2004+
2005+ .body-stats .l-unit__stat-col--right {
2006+ float : right;
19782007}
19792008
19802009.l-unit__stat-col--left a , .l-unit__stat-col--left a : visited {
@@ -2300,25 +2329,33 @@ body.mobile .l-icon-shortcuts {
23002329}
23012330
23022331.l-unit__stat-cols .graph {
2303- width : 200 px ;
2332+ width : 242 px ;
23042333}
23052334
23062335.l-unit__stat-cols .tiny {
2307- font-size : 11 px ;
2308- line-height : 19 px ;
2336+ font-size : 12 px ;
2337+ line-height : 18 px ;
23092338}
23102339
23112340.l-percent {
2312- border-bottom : 1 px dotted # ccc ;
2313- margin-top : 1 px ;
2314- width : 200 px ;
2341+ border-bottom : 3 px solid # e6e6e6 ;
2342+ margin-top : 2 px ;
2343+ width : 242 px ;
23152344}
23162345
23172346.l-percent__fill {
2318- background-color : # aacc0d ;
2347+ background-color : # 54e000 ;
23192348 height : 3px ;
23202349 position : relative;
2321- bottom : -1px ;
2350+ bottom : -3px ;
2351+ }
2352+
2353+ .statistics-count {
2354+ min-width : 24px ;
2355+ text-align : right;
2356+ border-bottom : 1px dotted # ddd ;
2357+ border-right : 1px dotted # ddd ;
2358+ padding-right : 4px ;
23222359}
23232360
23242361.to-top {
You can’t perform that action at this time.
0 commit comments