Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th March 2011, 14:47
xaver xaver is offline
Member
 
Join Date: May 2009
Posts: 77
Thanks: 10
Thanked 25 Times in 14 Posts
 
Default Howto disbale SSL or some other setting e.g. Domains

Hello,

on ISPConfig3 installation i don't want SSL for user, but admin can setup it.
  1. basis is /usr/local/ispconfig/interface/web/sites/
  2. copy in ./templates your normal template to admin version e.g web_domain_edit.html to web_domain_admin_edit.htm
  3. remove the functions in normal template e.g. SSL (complete <div ..>... <div/>)
  4. go into ./form an select your php file and copy the lines for it and set a if-else for admin
  5. change in admin the template
  6. remove lines in else for user
e.g.
PHP Code:
if($_SESSION["s"]["user"]["typ"] == 'admin') { //ask for usertype
$form["tabs"]['domain'] = array (
    
'title'     => "Domain",
    
'width'     => 100,
    
'template'     => "templates/web_domain_admin_edit.htm"// new template
    
'readonly'    => $web_domain_edit_readonly,
    
'fields'     => array (
     
//change nothing -> ADMIN
    
.........
)
);
} else { 
// if  usertype != admin
$form["tabs"]['domain'] = array (
    
'title'     => "Domain",
    
'width'     => 100,
    
'template'     => "templates/web_domain_edit.htm"// new template
    
'readonly'    => $web_domain_edit_readonly,
    
'fields'     => array (
    ...........
   
/* 'ssl' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'CHECKBOX',
            'default'    => 'n',
            'value'        => array(0 => 'n',1 => 'y')
        ), */
     //remove lines or comment out
    
..........
)
);

Regards,
xaver

Last edited by xaver; 27th March 2011 at 14:59. Reason: Change title
Reply With Quote
The Following User Says Thank You to xaver For This Useful Post:
falko (28th March 2011)
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some errors after using iRedMail to setup mail server DaaX HOWTO-Related Questions 1 21st January 2010 15:27
Exim Gateway with mailwatch (Unable to receive emails) siul0_0 HOWTO-Related Questions 10 8th May 2009 23:00
How to install OpenOficeOrg 3.0.0 in Ubuntu 8.04 ernesthagger HOWTO-Related Questions 43 23rd December 2008 14:42
SSL for virtual hosts on one certificate rbartz Tips/Tricks/Mods 8 20th November 2007 17:59
Help. Apache don't start payne Server Operation 3 17th August 2007 15:57


All times are GMT +2. The time now is 23:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.