/**
  * Returns links more informations
  *
  * @param void
  * @return html links
  */
 function get_htlm_links_more_info()
 {
     $pwg_links = pwg_URL();
     $link_fmt = '<a href="%s" onclick="window.open(this.href, \'\'); return false;">%s</a>';
     return sprintf(l10n('Go to %s or %s for more informations'), sprintf($link_fmt, $pwg_links['FORUM'], l10n('the forum')), sprintf($link_fmt, $pwg_links['WIKI'], l10n('the wiki')));
 }
示例#2
0
// +-----------------------------------------------------------------------+
$plugin_menu_links = trigger_change('get_admin_plugin_menu_links', array());
function UC_name_compare($a, $b)
{
    return strcmp(strtolower($a['NAME']), strtolower($b['NAME']));
}
usort($plugin_menu_links, 'UC_name_compare');
$template->assign('plugin_menu_items', $plugin_menu_links);
// +-----------------------------------------------------------------------+
// | Refresh permissions                                                   |
// +-----------------------------------------------------------------------+
// Only for pages witch change permissions
if (in_array($page['page'], array('site_manager', 'site_update')) or !empty($_POST) and in_array($page['page'], array('album', 'cat_move', 'cat_options', 'user_list', 'user_perm'))) {
    invalidate_user_cache();
}
// +-----------------------------------------------------------------------+
// | Include specific page                                                 |
// +-----------------------------------------------------------------------+
trigger_notify('loc_begin_admin_page');
include PHPWG_ROOT_PATH . 'admin/' . $page['page'] . '.php';
$template->assign('ACTIVE_MENU', get_active_menu($page['page']));
// +-----------------------------------------------------------------------+
// | Sending html code                                                     |
// +-----------------------------------------------------------------------+
// Add the Piwigo Official menu
$template->assign('pwgmenu', pwg_URL());
include PHPWG_ROOT_PATH . 'include/page_header.php';
trigger_notify('loc_end_admin');
flush_page_messages();
$template->pparse('admin');
include PHPWG_ROOT_PATH . 'include/page_tail.php';