File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- #!/usr/local/vesta /php/bin/php
1+ #!/usr/local/hestia /php/bin/php
22<?php
33error_reporting (NULL );
44if (empty ($ argv [1 ])) {
1515
1616define ('NO_AUTH_REQUIRED ' ,true );
1717
18- include ("/usr/local/vesta /web/inc/main.php " );
18+ include ("/usr/local/hestia /web/inc/main.php " );
1919
2020// Set system language
21- exec (VESTA_CMD . "v-list-sys-config json " , $ output , $ return_var );
21+ exec (HESTIA_CMD . "v-list-sys-config json " , $ output , $ return_var );
2222$ data = json_decode (implode ('' , $ output ), true );
2323if (!empty ( $ data ['config ' ]['LANGUAGE ' ])) {
2424 $ _SESSION ['language ' ] = $ data ['config ' ]['LANGUAGE ' ];
2525} else {
2626 $ _SESSION ['language ' ] = 'en ' ;
2727}
28- require_once ('/usr/local/vesta /web/inc/i18n/ ' .$ _SESSION ['language ' ].'.php ' );
28+ require_once ('/usr/local/hestia /web/inc/i18n/ ' .$ _SESSION ['language ' ].'.php ' );
2929
3030// Define vars
31- $ from = 'Vesta Control Panel <vesta @ ' .gethostname ().'> ' ;
31+ $ from = 'Hestia Control Panel <hestia @ ' .gethostname ().'> ' ;
3232$ to = $ argv [3 ]."\n" ;
3333$ subject = $ argv [2 ]."\n" ;
3434$ mailtext = file_get_contents ("php://stdin " );
Original file line number Diff line number Diff line change 33session_start ();
44
55define ('VESTA_CMD ' , '/usr/bin/sudo /usr/local/hestia/bin/ ' );
6+ define ('HESTIA_CMD ' , '/usr/bin/sudo /usr/local/hestia/bin/ ' );
67define ('JS_LATEST_UPDATE ' , '1491697868 ' );
78
89$ i = 0 ;
You can’t perform that action at this time.
0 commit comments