File tree Expand file tree Collapse file tree 5 files changed +10
-4
lines changed
default_64_navimg/templates
default_combobox/templates
default_no_navimg/templates Expand file tree Collapse file tree 5 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,12 @@ public function tpl_defaults() {
245245 if (isset ($ _SESSION ['s ' ]['user ' ])) {
246246 $ this ->tpl ->setVar ('cpuser ' , $ _SESSION ['s ' ]['user ' ]['username ' ]);
247247 $ this ->tpl ->setVar ('logout_txt ' , $ this ->lng ('logout_txt ' ));
248+ /* Show search field only for normal users, not mail users */
249+ if (stristr ($ _SESSION ['s ' ]['user ' ]['username ' ],'@ ' )){
250+ $ this ->tpl ->setVar ('usertype ' , 'mailuser ' );
251+ } else {
252+ $ this ->tpl ->setVar ('usertype ' , 'normaluser ' );
253+ }
248254 }
249255
250256 /* Global Search */
Original file line number Diff line number Diff line change 118118 <!-- end: skip link navigation -->
119119 < tmpl _if name ="cpuser ">
120120 < span > < a href ="#logout " onclick ="loadContent('login/logout.php'); "> < tmpl _var name ="logout_txt "> < tmpl _var format ="strtoupper " name ="cpuser "> </ a > <!-- | <a href="#" onclick="capp('help')">Help</a> | <a href="#">Imprint</a>--> </ span >
121- < input type ="text " id ="globalsearch " size ="25 " value ="" />
121+ < tmpl _if name =' usertype ' op =' == ' value =' normaluser ' > < input type ="text " id ="globalsearch " size ="25 " value ="" /> </ tmpl _if >
122122 </ tmpl _if>
123123 </ div >
124124 < h1 id ="ir-HeaderLogo " class ="swap " style ="background-image:url('{tmpl_var name='app_logo'}'); "> < span > ISPConfig 3</ span > </ h1 >
Original file line number Diff line number Diff line change 118118 <!-- end: skip link navigation -->
119119 < tmpl _if name ="cpuser ">
120120 < span > < a href ="#logout " onclick ="loadContent('login/logout.php'); "> LOGOUT < tmpl _var format ="strtoupper " name ="cpuser "> </ a > <!-- | <a href="#" onclick="capp('help')">Help</a> | <a href="#">Imprint</a>--> </ span >
121- < input type ="text " id ="globalsearch " size ="25 " value ="" />
121+ < tmpl _if name =' usertype ' op =' == ' value =' normaluser ' > < input type ="text " id ="globalsearch " size ="25 " value ="" /> </ tmpl _if >
122122 </ tmpl _if>
123123 </ div >
124124 < h1 id ="ir-HeaderLogo " class ="swap " style ="background-image:url('{tmpl_var name='app_logo'}'); "> < span > ISPConfig 3</ span > </ h1 >
Original file line number Diff line number Diff line change 273273 <!-- end: skip link navigation -->
274274 < tmpl _if name ="cpuser ">
275275 < span > < a href ="#logout " onclick ="loadContent('login/logout.php'); "> LOGOUT < tmpl _var format ="strtoupper " name ="cpuser "> </ a > <!-- | <a href="#" onclick="capp('help')">Help</a> | <a href="#">Imprint</a>--> </ span >
276- < input type ="text " id ="globalsearch " size ="25 " value ="" />
276+ < tmpl _if name =' usertype ' op =' == ' value =' normaluser ' > < input type ="text " id ="globalsearch " size ="25 " value ="" /> </ tmpl _if >
277277 </ tmpl _if>
278278 </ div >
279279 < h1 id ="ir-HeaderLogo " class ="swap " style ="background-image:url('{tmpl_var name='app_logo'}'); "> < span > ISPConfig 3</ span > </ h1 >
Original file line number Diff line number Diff line change 119119 <!-- end: skip link navigation -->
120120 < tmpl _if name ="cpuser ">
121121 < span > < a href ="#logout " onclick ="loadContent('login/logout.php'); "> LOGOUT < tmpl _var format ="strtoupper " name ="cpuser "> </ a > <!-- | <a href="#" onclick="capp('help')">Help</a> | <a href="#">Imprint</a>--> </ span >
122- < input type ="text " id ="globalsearch " size ="25 " value ="" />
122+ < tmpl _if name =' usertype ' op =' == ' value =' normaluser ' > < input type ="text " id ="globalsearch " size ="25 " value ="" /> </ tmpl _if >
123123 </ tmpl _if>
124124 </ div >
125125 < h1 id ="ir-HeaderLogo " class ="swap " style ="background-image:url('{tmpl_var name='app_logo'}'); "> < span > ISPConfig 3</ span > </ h1 >
You can’t perform that action at this time.
0 commit comments