File tree Expand file tree Collapse file tree 12 files changed +21
-104
lines changed
Expand file tree Collapse file tree 12 files changed +21
-104
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ All notable changes to this project will be documented in this file.
4141- Fixed nameserver validation on add new user packages.
4242- Implement additional debug informations for LE validation, thanks to @shakaran .
4343- Do not notify user if the backups are triggered from cronjob.
44+ - Fixed issue with suspending resources when logged directly as a normal user.
4445
4546## [ 1.0.6] - 2019-09-24 - Hotfix
4647### Bugfixes
Original file line number Diff line number Diff line change @@ -67,6 +67,17 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
6767 fi
6868fi
6969
70+ # Create dummy php-fpm configs if missing
71+ for php_folder in /etc/php/* ; do
72+ [ ! -d " ${php_folder} /fpm/pool.d/" ] && continue
73+
74+ v_php=" $( basename $php_folder ) "
75+ if [ ! -f " /etc/php/${v_php} /fpm/pool.d/dummy.conf" ]; then
76+ cp -f " $HESTIA_INSTALL_DIR /php-fpm/dummy.conf" " /etc/php/${v_php} /fpm/pool.d/"
77+ sed -i " s/9999/99${v_php// .} /g" " /etc/php/${v_php} /fpm/pool.d/dummy.conf"
78+ fi
79+ done
80+
7081# Deleting backend configs
7182if [ ! -z " $WEB_BACKEND " ]; then
7283 if [ " $WEB_BACKEND_POOL " = ' user' ]; then
Original file line number Diff line number Diff line change 1111 exit ();
1212}
1313
14- // Check user
15- if ($ _SESSION ['user ' ] != 'admin ' ) {
16- header ("Location: /list/user " );
17- exit ;
18- }
19- if (!empty ($ _GET ['user ' ])) {
20- $ user =$ _GET ['user ' ];
21- }
2214if (!empty ($ _GET ['job ' ])) {
2315 $ v_username = escapeshellarg ($ user );
2416 $ v_job = escapeshellarg ($ _GET ['job ' ]);
2517 exec (HESTIA_CMD ."v-suspend-cron-job " .$ v_username ." " .$ v_job , $ output , $ return_var );
18+ check_return_code ($ return_var ,$ output );
19+ unset($ output );
2620}
27- check_return_code ($ return_var ,$ output );
28- unset($ output );
2921
3022$ back = $ _SESSION ['back ' ];
3123if (!empty ($ back )) {
Original file line number Diff line number Diff line change 1111 exit ();
1212}
1313
14- // Check user
15- if ($ _SESSION ['user ' ] != 'admin ' ) {
16- header ("Location: /list/user " );
17- exit ;
18- }
19-
20- if (!empty ($ _GET ['user ' ])) {
21- $ user =$ _GET ['user ' ];
22- }
23-
2414if (!empty ($ _GET ['database ' ])) {
2515 $ v_username = escapeshellarg ($ user );
2616 $ v_database = escapeshellarg ($ _GET ['database ' ]);
2717 exec (HESTIA_CMD ."v-suspend-database " .$ v_username ." " .$ v_database , $ output , $ return_var );
18+ check_return_code ($ return_var ,$ output );
19+ unset($ output );
2820}
29- check_return_code ($ return_var ,$ output );
30- unset($ output );
3121
3222$ back = $ _SESSION ['back ' ];
3323if (!empty ($ back )) {
Original file line number Diff line number Diff line change 1111 exit ();
1212}
1313
14- // Check user
15- if ($ _SESSION ['user ' ] != 'admin ' ) {
16- header ("Location: /list/user " );
17- exit ;
18- }
19-
20- if (!empty ($ _GET ['user ' ])) {
21- $ user =$ _GET ['user ' ];
22- }
23-
2414// DNS domain
2515if ((!empty ($ _GET ['domain ' ])) && (empty ($ _GET ['record_id ' ]))) {
2616 $ v_username = escapeshellarg ($ user );
Original file line number Diff line number Diff line change 1111 exit ();
1212}
1313
14- // Check user
15- if ($ _SESSION ['user ' ] != 'admin ' ) {
16- header ("Location: /list/user " );
17- exit ;
18- }
19-
20- if (!empty ($ _GET ['user ' ])) {
21- $ user =$ _GET ['user ' ];
22- }
23-
2414// Mail domain
2515if ((!empty ($ _GET ['domain ' ])) && (empty ($ _GET ['account ' ]))) {
2616 $ v_username = escapeshellarg ($ user );
Original file line number Diff line number Diff line change 1111 exit ();
1212}
1313
14- // Check user
15- if ($ _SESSION ['user ' ] != 'admin ' ) {
16- header ("Location: /list/user " );
17- exit ;
18- }
19-
20- if (!empty ($ _GET ['user ' ])) {
21- $ user =$ _GET ['user ' ];
22- }
23-
24-
2514if (!empty ($ _GET ['domain ' ])) {
2615 $ v_username = escapeshellarg ($ user );
2716 $ v_domain = escapeshellarg ($ _GET ['domain ' ]);
Original file line number Diff line number Diff line change 1212 exit ();
1313}
1414
15- // Check user
16- if ($ _SESSION ['user ' ] != 'admin ' ) {
17- header ("Location: /list/user " );
18- exit ;
19- }
20-
21- if (!empty ($ _GET ['user ' ])) {
22- $ user =$ _GET ['user ' ];
23- }
24-
2515if (!empty ($ _GET ['job ' ])) {
2616 $ v_username = escapeshellarg ($ user );
2717 $ v_job = escapeshellarg ($ _GET ['job ' ]);
2818 exec (HESTIA_CMD ."v-unsuspend-cron-job " .$ v_username ." " .$ v_job , $ output , $ return_var );
19+ check_return_code ($ return_var ,$ output );
20+ unset($ output );
2921}
30- check_return_code ($ return_var ,$ output );
31- unset($ output );
3222
3323$ back =getenv ("HTTP_REFERER " );
3424if (!empty ($ back )) {
Original file line number Diff line number Diff line change 1212 exit ();
1313}
1414
15- // Check user
16- if ($ _SESSION ['user ' ] != 'admin ' ) {
17- header ("Location: /list/user " );
18- exit ;
19- }
20-
21- if (!empty ($ _GET ['user ' ])) {
22- $ user =$ _GET ['user ' ];
23- }
2415if (!empty ($ _GET ['database ' ])) {
2516 $ v_username = escapeshellarg ($ user );
2617 $ v_database = escapeshellarg ($ _GET ['database ' ]);
Original file line number Diff line number Diff line change 1111 exit ();
1212}
1313
14- // Check user
15- if ($ _SESSION ['user ' ] != 'admin ' ) {
16- header ("Location: /list/user " );
17- exit ;
18- }
19-
20- if (!empty ($ _GET ['user ' ])) {
21- $ user =$ _GET ['user ' ];
22- }
23-
2414// DNS domain
2515if ((!empty ($ _GET ['domain ' ])) && (empty ($ _GET ['record_id ' ]))) {
2616 $ v_username = escapeshellarg ($ user );
You can’t perform that action at this time.
0 commit comments