View Single Post
  #10  
Old 27th June 2012, 11:36
cfoe cfoe is offline
ISPConfig Developer
 
Join Date: Oct 2011
Location: NRW, Germany
Posts: 233
Thanks: 27
Thanked 57 Times in 32 Posts
Send a message via Skype™ to cfoe
Default

That is not good. So it is really not easy changing the login.

Two remarks about your switch:
  1. I would propose a code change:
    FROM:
    PHP Code:
    if(isset($_SESSION['s']['module']['name']) && isset($_SESSION['s']['theme'])) {
                    if(
    is_file(ISPC_THEMES_PATH.'/'.$_SESSION['s']['theme'].'/'.$_SESSION['s']['module']['name'].'/templates/'.$filename)) {
                        return 
    ISPC_THEMES_PATH.'/'.$_SESSION['s']['theme'].'/'.$_SESSION['s']['module']['name'].'/templates/'.$filename;
                    }
                } 
    TO:
    PHP Code:
    if(isset($_SESSION['s']['module']['name']) && isset($_SESSION['s']['theme'])) {
                    if(
    is_file(ISPC_THEMES_PATH.'/'.$_SESSION['s']['theme'].'/templates/'.$_SESSION['s']['module']['name'].'/'.$filename)) {
                        return 
    ISPC_THEMES_PATH.'/'.$_SESSION['s']['theme'].'/templates/'.$_SESSION['s']['module']['name'].'/'.$filename;
                    }
                } 
    That would save a few folders.
  2. Dashlets do not work.
__________________
Christian Foellmann

OpenSource-Projects - GitHub-Projects - SVN-Mirrors on GitHub - Foe Services
Reply With Quote