@@ -791,10 +791,12 @@ function update($event_name, $data) {
791791 $ app ->system ->exec_safe ('chmod -R a+r ? ' , $ error_page_path );
792792 }
793793
794- //* Copy the web skeleton files only when there is no index.ph or index.html file yet
795- if (!file_exists ($ data ['new ' ]['document_root ' ].'/ ' .$ web_folder .'/index.html ' ) && !file_exists ($ data ['new ' ]['document_root ' ].'/ ' .$ web_folder .'/index.php ' )) {
794+ //* Copy the web skeleton files only when there is no index.php, standard_index.html or index.html file yet
795+ if (!file_exists ($ data ['new ' ]['document_root ' ].'/ ' .$ web_folder .'/index.html ' ) && !file_exists ($ data ['new ' ]['document_root ' ].'/ ' .$ web_folder .'/index.php ' ) && ! file_exists ( $ data [ ' new ' ][ ' document_root ' ]. ' / ' . $ web_folder . ' /standard_index.html ' ) ) {
796796 if (file_exists ($ conf ['rootpath ' ] . '/conf-custom/index/standard_index.html_ ' .substr ($ conf ['language ' ], 0 , 2 ))) {
797- if (!file_exists ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/index.html ' )) $ app ->system ->exec_safe ('cp ? ? ' , $ conf ['rootpath ' ] . '/conf-custom/index/standard_index.html_ ' .substr ($ conf ['language ' ], 0 , 2 ), $ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/index.html ' );
797+ if (!file_exists ($ data ['new ' ]['document_root ' ] . '/ ' . $ web_folder . '/standard_index.html ' )) {
798+ $ app ->system ->exec_safe ('cp ? ? ' , $ conf ['rootpath ' ] . '/conf-custom/index/standard_index.html_ ' . substr ($ conf ['language ' ], 0 , 2 ), $ data ['new ' ]['document_root ' ] . '/ ' . $ web_folder . '/standard_index.html ' );
799+ }
798800
799801 if (is_file ($ conf ['rootpath ' ] . '/conf-custom/index/favicon.ico ' )) {
800802 if (!file_exists ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/favicon.ico ' )) $ app ->system ->exec_safe ('cp ? ? ' , $ conf ['rootpath ' ] . '/conf-custom/index/favicon.ico ' , $ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/ ' );
@@ -804,13 +806,13 @@ function update($event_name, $data) {
804806 }
805807 } else {
806808 if (file_exists ($ conf ['rootpath ' ] . '/conf-custom/index/standard_index.html ' )) {
807- if (!file_exists ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/index .html ' )) $ app ->system ->exec_safe ('cp ? ? ' , $ conf ['rootpath ' ] . '/conf-custom/index/standard_index.html ' , $ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/index .html ' );
809+ if (!file_exists ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/standard_index .html ' )) $ app ->system ->exec_safe ('cp ? ? ' , $ conf ['rootpath ' ] . '/conf-custom/index/standard_index.html ' , $ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/standard_index .html ' );
808810 } else {
809- if (!file_exists ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/index .html ' )) $ app ->system ->exec_safe ('cp ? ? ' , $ conf ['rootpath ' ] . '/conf/index/standard_index.html_ ' .substr ($ conf ['language ' ], 0 , 2 ), $ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/index .html ' );
810- if (is_file ($ conf ['rootpath ' ] . '/conf/index/favicon.ico ' )){
811+ if (!file_exists ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/standard_index .html ' )) $ app ->system ->exec_safe ('cp ? ? ' , $ conf ['rootpath ' ] . '/conf/index/standard_index.html_ ' .substr ($ conf ['language ' ], 0 , 2 ), $ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/standard_index .html ' );
812+ if (is_file ($ conf ['rootpath ' ] . '/conf/index/favicon.ico ' )) {
811813 if (!file_exists ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/favicon.ico ' )) $ app ->system ->exec_safe ('cp ? ? ' , $ conf ['rootpath ' ] . '/conf/index/favicon.ico ' , $ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/ ' );
812814 }
813- if (is_file ($ conf ['rootpath ' ] . '/conf/index/robots.txt ' )){
815+ if (is_file ($ conf ['rootpath ' ] . '/conf/index/robots.txt ' )) {
814816 if (!file_exists ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/robots.txt ' )) $ app ->system ->exec_safe ('cp ? ? ' , $ conf ['rootpath ' ] . '/conf/index/robots.txt ' , $ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/ ' );
815817 }
816818 }
0 commit comments