Changeset 3613:c49075201a42 for admin/index.php
- Timestamp:
- 12/08/17 16:45:49 (8 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r3557 r3613 210 210 ) 211 211 ); 212 213 # Dotclear updates notifications214 if ($core->auth->isSuperAdmin() && !DC_NOT_UPDATE && is_readable(DC_DIGESTS) && !$core->auth->user_prefs->dashboard->nodcupdate)215 {216 $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions');217 $new_v = $updater->check(DC_VERSION);218 $version_info = $new_v ? $updater->getInfoURL() : '';219 220 if ($updater->getNotify() && $new_v) {221 // Check PHP version required222 if (version_compare(phpversion(),$updater->getPHPVersion()) >= 0) {223 echo224 '<div class="dc-update"><h3>'.sprintf(__('Dotclear %s is available!'),$new_v).'</h3> '.225 '<p><a class="button submit" href="'.$core->adminurl->get("admin.update").'">'.sprintf(__('Upgrade now'),$new_v).'</a> '.226 '<a class="button" href="'.$core->adminurl->get("admin.update", array('hide_msg' => 1)).'">'.__('Remind me later').'</a>'.227 ($version_info ? ' </p>'.228 '<p class="updt-info"><a href="'.$version_info.'">'.__('Information about this version').'</a>' : '').'</p>'.229 '</div>';230 } else {231 echo '<p class="info">'.232 sprintf(__('A new version of Dotclear is available but needs PHP version ≥ %s, your\'s is currently %s'),233 $updater->getPHPVersion(),phpversion()).234 '</p>';235 }236 } else {237 if (version_compare(phpversion(),DC_NEXT_REQUIRED_PHP,'<')) {238 echo '<p class="info">'.239 sprintf(__('The next versions of Dotclear will not support PHP version < %s, your\'s is currently %s'),240 DC_NEXT_REQUIRED_PHP,phpversion()).241 '</p>';242 }243 }244 }245 212 246 213 if ($core->auth->getInfo('user_default_blog') != $core->blog->id && $core->auth->getBlogCount() > 1) {
Note: See TracChangeset
for help on using the changeset viewer.