[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/include/admin/ -> overview.inc.php (source)

   1  <?php # $Id: overview.inc.php 1841 2007-08-10 09:59:23Z garvinhicking $
   2  # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
   3  # All rights reserved.  See LICENSE file for licensing details
   4  /* vim: set sts=4 ts=4 expandtab : */
   5  
   6  if (IN_serendipity !== true) {
   7      die ("Don't hack!");
   8  }
   9  
  10  $user = serendipity_fetchAuthor($serendipity['authorid']);
  11  $bookmarklet = "javascript:bm=document.selection?document.selection.createRange().text:document.getSelection();void(newwin=open('" . $serendipity['baseURL'] . "serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=new&serendipity[title]='+ escape(document.title) + '&serendipity[body]=' + escape(bm) +'&serendipity[url]=' + escape(location.href), 'new_log_entry','resizable=yes, scrollbars=yes, width=800, height=600, location=yes,status=yes')); newwin.focus();";
  12  
  13  $output = array(
  14      'welcome'       => WELCOME_BACK . ' ' . $user[0]['realname'],
  15      'show_links'    => true,
  16      'links_title'   => FURTHER_LINKS,
  17      'bookmarklet'   => $bookmarklet,
  18      'links'         => array(
  19          '<a href="http://www.s9y.org/">' . FURTHER_LINKS_S9Y . '</a>',
  20          '<a href="http://www.s9y.org/33.html">' . FURTHER_LINKS_S9Y_DOCS . '</a>',
  21          '<a href="http://blog.s9y.org/">' . FURTHER_LINKS_S9Y_BLOG . '</a>',
  22          '<a href="http://www.s9y.org/forums/">' . FURTHER_LINKS_S9Y_FORUMS . '</a>',
  23          '<a href="http://php-blog.sf.net/">' . FURTHER_LINKS_S9Y_SPARTACUS . '</a>',
  24          '<a href="' . $bookmarklet . '" onclick="alert(\'' . FURTHER_LINKS_S9Y_BOOKMARKLET_DESC . '\'); return false;" title="' . FURTHER_LINKS_S9Y_BOOKMARKLET_DESC . '">' . FURTHER_LINKS_S9Y_BOOKMARKLET . '</a>'
  25      ),
  26      'links_css'     => 'further_links',
  27      'more'          => ''
  28  );
  29  
  30  serendipity_plugin_api::hook_event('backend_frontpage_display', $output);
  31  
  32  if ($output['show_links']) {
  33      echo '<div class="' . $output['links_css'] . '">' . "\n";
  34      echo '<p class="further_links_head">' . $output['links_title'] . '</p>' . "\n";
  35      echo '<ul>' . "\n";
  36      foreach($output['links'] AS $link) {
  37          echo '<li>' . $link . '</li>' . "\n";
  38      }
  39      echo '</ul>' . "\n";
  40      echo '<p class="further_links_foot" style="display: none"></p>' . "\n";
  41      echo '</div>' . "\n";
  42  }
  43  echo '<h3 class="serendipityWelcomeBack">' . $output['welcome'] . '</h3>';
  44  echo $output['more'];


Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics