Changeset 112:d71829bc12e2
- Timestamp:
- 05/02/11 19:33:57 (14 years ago)
- Branch:
- userprefs
- Location:
- admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r109 r112 251 251 } 252 252 253 # Dashboard columns (processed first, as we need to know the result before displaying the icons.) 254 $dashboardItems = ''; 255 256 # Dotclear updates notifications 257 if ($core->auth->isSuperAdmin() && is_readable(DC_DIGESTS)) 258 { 259 $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions'); 260 $new_v = $updater->check(DC_VERSION); 261 262 if ($updater->getNotify() && $new_v) { 263 $dashboardItems .= 264 '<div id="upg-notify" class="static-msg"><p>'.sprintf(__('Dotclear %s is available!'),$new_v).'</p> '. 265 '<ul><li><strong><a href="update.php">'.sprintf(__('Upgrade now'),$new_v).'</a></strong>'. 266 '</li><li><a href="update.php?hide_msg=1">'.__('Remind me later').'</a>'. 267 '</li></ul></div>'; 268 } 269 } 270 271 # Errors modules notifications 272 if ($core->auth->isSuperAdmin()) 273 { 274 $list = array(); 275 foreach ($core->plugins->getErrors() as $k => $error) { 276 $list[] = '<li>'.$error.'</li>'; 277 } 278 279 if (count($list) > 0) { 280 $dashboardItems .= 281 '<div id="module-errors" class="error"><p>'.__('Some plugins are installed twice:').'</p> '. 282 '<ul>'.implode("\n",$list).'</ul></div>'; 283 } 284 285 } 286 287 foreach ($__dashboard_items as $i) 288 { 289 if ($i->count() > 0) 290 { 291 $dashboardItems .= '<div>'; 292 foreach ($i as $v) { 293 $dashboardItems .= $v; 294 } 295 $dashboardItems .= '</div>'; 296 } 297 } 298 253 299 # Dashboard icons 254 echo '<div id="dashboard-main"><div id="icons" >';300 echo '<div id="dashboard-main"><div id="icons"'.($dashboardItems ? '' : 'class="fullwidth"').'>'; 255 301 foreach ($__dashboard_icons as $i) 256 302 { … … 308 354 echo '</div>'; 309 355 310 # Dashboard columns311 $dashboardItems = '';312 313 # Dotclear updates notifications314 if ($core->auth->isSuperAdmin() && is_readable(DC_DIGESTS))315 {316 $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions');317 $new_v = $updater->check(DC_VERSION);318 319 if ($updater->getNotify() && $new_v) {320 $dashboardItems .=321 '<div id="upg-notify" class="static-msg"><p>'.sprintf(__('Dotclear %s is available!'),$new_v).'</p> '.322 '<ul><li><strong><a href="update.php">'.sprintf(__('Upgrade now'),$new_v).'</a></strong>'.323 '</li><li><a href="update.php?hide_msg=1">'.__('Remind me later').'</a>'.324 '</li></ul></div>';325 }326 }327 328 # Errors modules notifications329 if ($core->auth->isSuperAdmin())330 {331 $list = array();332 foreach ($core->plugins->getErrors() as $k => $error) {333 $list[] = '<li>'.$error.'</li>';334 }335 336 if (count($list) > 0) {337 $dashboardItems .=338 '<div id="module-errors" class="error"><p>'.__('Some plugins are installed twice:').'</p> '.339 '<ul>'.implode("\n",$list).'</ul></div>';340 }341 342 }343 344 foreach ($__dashboard_items as $i)345 {346 if ($i->count() > 0)347 {348 $dashboardItems .= '<div>';349 foreach ($i as $v) {350 $dashboardItems .= $v;351 }352 $dashboardItems .= '</div>';353 }354 }355 356 echo ($dashboardItems ? '<div id="dashboard-items">'.$dashboardItems.'</div>' : ''); 356 357 -
admin/style/info.png
- Property exe deleted
Note: See TracChangeset
for help on using the changeset viewer.