Skip to content

Commit 4cfff78

Browse files
committed
1 parent 6d0a4e4 commit 4cfff78

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

interface/lib/app.inc.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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', '&nbsp;');
169+
}
165170

166171
}
167172

interface/lib/config.inc.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929

3030
ini_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";
@@ -64,6 +64,7 @@
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

interface/web/dns/soa_edit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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 {
3.15 KB
Loading

interface/web/themes/default/templates/main.tpl.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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">&nbsp;</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>

0 commit comments

Comments
 (0)