can i hide SSL option for user?

Discussion in 'Tips/Tricks/Mods' started by radim_h, Aug 19, 2010.

  1. radim_h

    radim_h Member HowtoForge Supporter

    hell-ow! :)

    is there posibility hide the ssl option for web pages for users?

    As only one user per IP address can use SSL, this option is bit confusing for users..
    i would like if only admin can set SSL option for users
     
  2. HyperAtom

    HyperAtom New Member

  3. radim_h

    radim_h Member HowtoForge Supporter

    done :)

    done that :)
     
  4. shoevring

    shoevring New Member

    Yes you can, very easy, but every updates you should do this every time..

    /usr/local/ispconfig/interface/web/sites/form/web_domain.tform.php

    In line: ~ 247 before: $form["tabs"]['ssl'] = array (

    Set this mark: /*

    and

    In line: ~360 before: //* Statistics

    Set this mark: */

    Save and then the SSL tab is away from everybody, if you only want to admins can see them, just remove the: /* and */

    In line: ~ 247 before: $form["tabs"]['ssl'] = array (

    Paste this in: if($_SESSION['s']['user']['typ'] == 'admin') {

    AND

    In line: ~360 before: //* Statistics

    Paste this in: }


    And you are done ;)
     

Share This Page