Changeset 1182 in ExiteCMS for trunk/includes/user_functions.php


Ignore:
Timestamp:
12/25/07 17:32:57 (4 years ago)
Author:
hverton
Message:

added support for multiple panels per module
updated English locale file
update dbsetup_include.php
files in the template cache now have a more logical name
after login, check if the user theme exists before selecting it. If not, fall back to the site default. If this theme doesn't exist either, terminate with an error message
new CSS tag for optgroups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/user_functions.php

    r1158 r1182  
    102102                define("PATH_THEME", PATH_THEMES.$settings['theme']."/"); 
    103103                define("THEME", THEMES.$settings['theme']."/"); 
     104                // make sure the default theme exists! 
     105                if (!file_exists(PATH_THEMES.$settings['theme']."/theme.php")) { 
     106                    die("<div style='font-family:Verdana;font-size:11px;text-align:center;'><b>FATAL ERROR: Unable to load the default theme</b></div>"); 
     107                } 
    104108            } 
    105109            if ($userdata['user_offset'] <> 0) { 
Note: See TracChangeset for help on using the changeset viewer.