File tree Expand file tree Collapse file tree 5 files changed +16
-5
lines changed
Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ function lng($text)
144144 if ($ this ->_language_inc != 1 ) {
145145 // loading global and module Wordbook
146146 @include_once ($ conf ["rootpath " ]."/lib/lang/ " .$ _SESSION ["s " ]["language " ].".lng " );
147- @include_once ($ conf ["rootpath " ]."/web/ " .$ _SESSION ["s " ]["module " ]["name " ]."/lib/lang/ " .$ _SESSION ["s " ]["language " ].".lng " );
147+ @include_once ($ conf ["rootpath " ]."/web/ " .$ _SESSION ["s " ]["module " ]["name " ]."/lib/lang/ " .$ _SESSION ["s " ]["language " ].".lng " );
148148 $ this ->_wb = $ wb ;
149149 $ this ->_language_inc = 1 ;
150150 }
@@ -162,6 +162,11 @@ function tpl_defaults() {
162162 $ this ->tpl ->setVar ('theme ' ,$ _SESSION ["s " ]["theme " ]);
163163 $ this ->tpl ->setVar ('phpsessid ' ,session_id ());
164164 $ this ->tpl ->setVar ('html_content_encoding ' ,$ conf ["html_content_encoding " ]);
165+ if ($ conf ["logo " ] != '' && @is_file ($ conf ["logo " ])){
166+ $ this ->tpl ->setVar ('logo ' , '<img src=" ' .$ conf ["logo " ].'" border="0" alt=""> ' );
167+ } else {
168+ $ this ->tpl ->setVar ('logo ' , ' ' );
169+ }
165170
166171 }
167172
Original file line number Diff line number Diff line change 2929
3030ini_set ('register_globals ' ,0 );
3131
32- $ conf ["rootpath " ] = "F: \\server \\www \\ispconfig3 \\interface " ;
33- //$conf["rootpath"] = "D:\\www\\ispconfig3\\interface";
34- //$conf["rootpath"] = "/home/www/ispconfig3/web/cms";
32+ $ conf ["rootpath " ] = "F: \\server \\www \\ispconfig3 \\interface " ;
33+ //$conf["rootpath"] = "D:\\www\\ispconfig3\\interface";
34+ //$conf["rootpath"] = "/home/www/ispconfig3/web/cms";
3535
3636$ conf ["fs_div " ] = "\\" ; // File system divider, \\ on windows and / on linux and unix
3737$ conf ["classpath " ] = $ conf ["rootpath " ].$ conf ["fs_div " ]."lib " .$ conf ["fs_div " ]."classes " ;
6464
6565$ conf ["theme " ] = 'default ' ;
6666$ conf ["html_content_encoding " ] = 'text/html; charset=iso-8859-1 ' ;
67+ $ conf ["logo " ] = 'themes/default/images/mydns_config_logo.png ' ;
6768
6869/*
6970 Default Language
Original file line number Diff line number Diff line change @@ -56,6 +56,11 @@ class page_action extends tform_actions {
5656 function onSubmit () {
5757 global $ app , $ conf ;
5858
59+ if ($ app ->tform ->getCurrentTab () == 'rr ' ){
60+ parent ::onSubmit ();
61+ return true ;
62+ }
63+
5964 if ($ this ->dataRecord ['id ' ] > 0 ){
6065 if (!$ app ->tform ->checkPerm ($ this ->dataRecord ['id ' ],'u ' )) $ app ->error ($ app ->tform ->wordbook ['error_no_permission ' ]);
6166 } else {
Original file line number Diff line number Diff line change 1818< body bgcolor ="#FFFFFF " leftmargin =0 topmargin =0 marginwidth =0 marginheight =0 onload ="breakout() ">
1919< table width ="100% " height ="100% " border ="0 " cellpadding ="0 " cellspacing ="0 ">
2020 < tr bgcolor ="#496FA8 ">
21- < td height ="30 " colspan ="2 " align ="center " valign ="top " background ="themes/{tmpl_var name= "theme "}/images/bg_nav_1.jpg"> </ td >
21+ < td height ="30 " colspan ="2 " align ="right " valign ="top " background ="themes/{tmpl_var name= "theme "}/images/bg_nav_1.jpg"> < tmpl _var name =" logo " > </ td >
2222 </ tr >
2323 < tr bgcolor ="#FFFFFF ">
2424 < td height ="1 " colspan ="2 " align ="center " valign ="bottom "> < img src ="themes/{tmpl_var name= "theme "}/images/x.gif" width="1 " height ="1 "> </ td >
You can’t perform that action at this time.
0 commit comments