Changeset 2040
- Timestamp:
- Jun 21, 2007, 11:00:09 PM (17 years ago)
- Location:
- branches/branch-1_7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_7/admin/site_update.php
r1903 r2040 5 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 // | branch : BSF (Best So Far) 8 // | file : $RCSfile$ 7 // | file : $Id$ 9 8 // | last update : $Date$ 10 9 // | last modifier : $Author$ … … 128 127 // +-----------------------------------------------------------------------+ 129 128 if (isset($_POST['submit']) 130 and ($_POST['sync'] == 'dirs' or $_POST['sync'] == 'files') 131 and !$general_failure) 129 and ($_POST['sync'] == 'dirs' or $_POST['sync'] == 'files')) 132 130 { 133 131 $counts['new_categories'] = 0; … … 136 134 $counts['new_elements'] = 0; 137 135 $counts['upd_elements'] = 0; 138 136 } 137 138 139 if (isset($_POST['submit']) 140 and ($_POST['sync'] == 'dirs' or $_POST['sync'] == 'files') 141 and !$general_failure) 142 { 139 143 $start = get_moment(); 140 144 // which categories to update ? -
branches/branch-1_7/include/common.inc.php
r2031 r2040 172 172 173 173 // template instance 174 $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template'], $user['theme'] ); 174 if 175 ( 176 defined('IN_ADMIN') and IN_ADMIN and 177 isset($user['admin_template']) and 178 isset($user['admin_theme']) 179 ) 180 { 181 // Admin template 182 $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['admin_template'], $user['admin_theme'] ); 183 } 184 else 185 { 186 // Classic template 187 $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template'], $user['theme'] ); 188 } 175 189 176 190 if ($conf['gallery_locked']) -
branches/branch-1_7/include/functions_user.inc.php
r1986 r2040 145 145 { 146 146 global $conf; 147 147 148 $user['id'] = $user_id; 148 149 $user = array_merge( $user, getuserdata($user_id, $use_cache) ); … … 153 154 $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page']; 154 155 155 // include template/theme configuration 156 if (defined('IN_ADMIN') and IN_ADMIN) 157 { 158 list($user['template'], $user['theme']) = 156 if (is_admin($user['status'])) 157 { 158 list($user['admin_template'], $user['admin_theme']) = 159 159 explode 160 160 ( … … 163 163 : $user['template'] 164 164 ); 165 // TODO : replace $conf['admin_layout'] by $user['admin_layout'] 166 } 167 else 168 { 169 list($user['template'], $user['theme']) = explode('/', $user['template']); 170 } 165 } 166 167 list($user['template'], $user['theme']) = explode('/', $user['template']); 171 168 172 169 return $user;
Note: See TracChangeset
for help on using the changeset viewer.