| 1 | {combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} |
|---|
| 2 | |
|---|
| 3 | {footer_script require='jquery.cluetip'} |
|---|
| 4 | var piwigo_need_update_msg = '<a href="admin.php?page=updates">{'A new version of Piwigo is available.'|@translate|@escape:"javascript"}</a>'; |
|---|
| 5 | var ext_need_update_msg = '<a href="admin.php?page=updates&tab=ext">{'Some upgrades are available for extensions.'|@translate|@escape:"javascript"}</a>'; |
|---|
| 6 | |
|---|
| 7 | {literal} |
|---|
| 8 | jQuery().ready(function(){ |
|---|
| 9 | jQuery('.cluetip').cluetip({ |
|---|
| 10 | width: 300, |
|---|
| 11 | splitTitle: '|', |
|---|
| 12 | positionBy: 'bottomTop' |
|---|
| 13 | }); |
|---|
| 14 | jQuery.ajax({ |
|---|
| 15 | type: 'GET', |
|---|
| 16 | url: 'ws.php', |
|---|
| 17 | dataType: 'json', |
|---|
| 18 | data: { method: 'pwg.extensions.checkUpdates', format: 'json' }, |
|---|
| 19 | timeout: 5000, |
|---|
| 20 | success: function (data) { |
|---|
| 21 | if (data['stat'] != 'ok') |
|---|
| 22 | return; |
|---|
| 23 | piwigo_update = data['result']['piwigo_need_update']; |
|---|
| 24 | ext_update = data['result']['ext_need_update'] |
|---|
| 25 | if ((piwigo_update || ext_update) && !jQuery(".warnings").is('div')) |
|---|
| 26 | jQuery("#content").prepend('<div class="warnings"><ul></ul></div>'); |
|---|
| 27 | if (piwigo_update) |
|---|
| 28 | jQuery(".warnings ul").append('<li>'+piwigo_need_update_msg+'</li>'); |
|---|
| 29 | if (ext_update) |
|---|
| 30 | jQuery(".warnings ul").append('<li>'+ext_need_update_msg+'</li>'); |
|---|
| 31 | } |
|---|
| 32 | }); |
|---|
| 33 | }); |
|---|
| 34 | {/literal} |
|---|
| 35 | {/footer_script} |
|---|
| 36 | |
|---|
| 37 | <h2>{'Piwigo Administration'|@translate}</h2> |
|---|
| 38 | <dl style="padding-top: 30px;"> |
|---|
| 39 | <dt>{'Piwigo version'|@translate}</dt> |
|---|
| 40 | <dd> |
|---|
| 41 | <ul> |
|---|
| 42 | <li><a href="{$PHPWG_URL}" class="externalLink">Piwigo</a> {$PWG_VERSION}</li> |
|---|
| 43 | <li><a href="{$U_CHECK_UPGRADE}">{'Check for upgrade'|@translate}</a></li> |
|---|
| 44 | {if isset($SUBSCRIBE_BASE_URL)} |
|---|
| 45 | <li><a href="{$SUBSCRIBE_BASE_URL}{$EMAIL}" class="externalLink cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|@htmlspecialchars|@nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate|@sprintf:$EMAIL}</a></li> |
|---|
| 46 | {/if} |
|---|
| 47 | </ul> |
|---|
| 48 | </dd> |
|---|
| 49 | |
|---|
| 50 | <dt>{'Environment'|@translate}</dt> |
|---|
| 51 | <dd> |
|---|
| 52 | <ul> |
|---|
| 53 | <li>{'Operating system'|@translate}: {$OS}</li> |
|---|
| 54 | <li>PHP: {$PHP_VERSION} (<a href="{$U_PHPINFO}" class="externalLink">{'Show info'|@translate}</a>) [{$PHP_DATATIME}]</li> |
|---|
| 55 | <li>{$DB_ENGINE}: {$DB_VERSION} [{$DB_DATATIME}]</li> |
|---|
| 56 | {if isset($GRAPHICS_LIBRARY)} |
|---|
| 57 | <li>{'Graphics Library'|@translate}: {$GRAPHICS_LIBRARY}</li> |
|---|
| 58 | {/if} |
|---|
| 59 | </ul> |
|---|
| 60 | </dd> |
|---|
| 61 | |
|---|
| 62 | <dt>{'Database'|@translate}</dt> |
|---|
| 63 | <dd> |
|---|
| 64 | <ul> |
|---|
| 65 | <li> |
|---|
| 66 | {$DB_ELEMENTS} |
|---|
| 67 | {if isset($first_added)} |
|---|
| 68 | ({$first_added.DB_DATE}) |
|---|
| 69 | {/if} |
|---|
| 70 | </li> |
|---|
| 71 | <li>{$DB_CATEGORIES} ({$DB_IMAGE_CATEGORY})</li> |
|---|
| 72 | <li>{$DB_TAGS} ({$DB_IMAGE_TAG})</li> |
|---|
| 73 | <li>{$DB_USERS}</li> |
|---|
| 74 | <li>{$DB_GROUPS}</li> |
|---|
| 75 | {if isset($DB_COMMENTS)} |
|---|
| 76 | <li> |
|---|
| 77 | {$DB_COMMENTS} |
|---|
| 78 | {if isset($unvalidated)} |
|---|
| 79 | (<a href="{$unvalidated.URL}">{$unvalidated.INFO}</a>) |
|---|
| 80 | {/if} |
|---|
| 81 | </li> |
|---|
| 82 | {/if} |
|---|
| 83 | <li>{$DB_RATES}</li> |
|---|
| 84 | </ul> |
|---|
| 85 | </dd> |
|---|
| 86 | </dl> |
|---|
| 87 | |
|---|
| 88 | {if $ENABLE_SYNCHRONIZATION} |
|---|
| 89 | <form name="QuickSynchro" action="{$U_CAT_UPDATE}" method="post" id="QuickSynchro" style="display: block; text-align:right;"> |
|---|
| 90 | <div> |
|---|
| 91 | <input type="hidden" name="sync" value="files" checked="checked"> |
|---|
| 92 | <input type="hidden" name="display_info" value="1" checked="checked"> |
|---|
| 93 | <input type="hidden" name="add_to_caddie" value="1" checked="checked"> |
|---|
| 94 | <input type="hidden" name="privacy_level" value="0" checked="checked"> |
|---|
| 95 | <input type="hidden" name="sync_meta" checked="checked"> |
|---|
| 96 | <input type="hidden" name="simulate" value="0"> |
|---|
| 97 | <input type="hidden" name="subcats-included" value="1" checked="checked"> |
|---|
| 98 | </div> |
|---|
| 99 | <div class="bigbutton"> |
|---|
| 100 | <span class="bigtext">{'Quick Local Synchronization'|@translate}</span> |
|---|
| 101 | <input type="submit" value="" name="submit"> |
|---|
| 102 | </div> |
|---|
| 103 | </form> |
|---|
| 104 | {/if} |
|---|