vogelor
2010-05-04 95539119e14bb1a472cb732989a978dd240bc04b
Improved Theme-Handling (nor every user can have its own theme)
2 files modified
10 ■■■■■ changed files
interface/lib/app.inc.php 4 ●●●● patch | view | raw | blame | history
interface/web/login/index.php 6 ●●●● patch | view | raw | blame | history
interface/lib/app.inc.php
@@ -203,6 +203,10 @@
        if(isset($_SESSION['s']['user']) && $this->auth->has_clients($_SESSION['s']['user']['userid'])) {
            $this->tpl->setVar('is_reseller', 1);
        }
        /* Show username */
        if(isset($_SESSION['s']['user'])) {
            $this->tpl->setVar('cpuser', $_SESSION['s']['user']['username']);
        }
    }
} // end class
interface/web/login/index.php
@@ -152,7 +152,11 @@
                            
                            $app->plugin->raiseEvent('login',$this);
                            
                            echo 'HEADER_REDIRECT:'.$_SESSION['s']['module']['startpage'];
                            /*
                             * We need LOGIN_REDIRECT instead of HEADER_REDIRECT to load the
                             * new theme, if the logged-in user has another
                             */
                            echo 'LOGIN_REDIRECT:'.$_SESSION['s']['module']['startpage'];
                                        
                               exit;
                         } else {