[ Index ]
 

Code source de Plume CMS 1.2.2

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/manager/ -> help.php (source)

   1  <?php
   2  /* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
   3  /*
   4  # ***** BEGIN LICENSE BLOCK *****
   5  # This file is part of Plume CMS, a website management application.
   6  # Copyright (C) 2001-2005 Loic d'Anterroches and contributors.
   7  #
   8  # Plume CMS is free software; you can redistribute it and/or modify
   9  # it under the terms of the GNU General Public License as published by
  10  # the Free Software Foundation; either version 2 of the License, or
  11  # (at your option) any later version.
  12  #
  13  # Plume CMS is distributed in the hope that it will be useful,
  14  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16  # GNU General Public License for more details.
  17  #
  18  # You should have received a copy of the GNU General Public License
  19  # along with this program; if not, write to the Free Software
  20  # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  21  #
  22  # ***** END LICENSE BLOCK ***** */
  23  
  24  require_once 'path.php';
  25  require_once $_PX_config['manager_path'].'/prepend.php';
  26  
  27  auth::checkAuth(PX_AUTH_NORMAL);
  28  
  29  $m = new Manager();
  30  $_px_theme = $m->user->getTheme();
  31  
  32  $mode = (!empty($_REQUEST['mode'])) ? $_REQUEST['mode'] : '';
  33  $px_chapter = (!empty($_REQUEST['c'])) ? $_REQUEST['c'] : '';
  34  $px_plugin = (!empty($_REQUEST['p'])) ? $_REQUEST['p'] : '';
  35  
  36  /* ================================================= *
  37   *             title of the page                     *
  38   * ================================================= */
  39  
  40  $px_title =  __('Online help'); // used in _top.php
  41  
  42  if ($mode == 'popup') {
  43      include dirname(__FILE__).'/mtemplates/_pop_top.php';
  44      echo '<p style="text-align: right;"><a href="#" onclick="window.close(); return false;">'.__('Close this window').'</a></p>';
  45  } else {
  46      include dirname(__FILE__).'/mtemplates/_top.php';
  47      echo '<h1>'. __('Online help').'</h1>'."\n\n";
  48  }
  49  $help = '';
  50  if ('' != $px_chapter) {
  51      $help = $m->getHelp($px_chapter, $px_plugin, true);
  52  }
  53  if ('' == $help) {
  54      $px_chapter = '';
  55  }
  56  
  57  if ('' != $px_chapter) {
  58      //display the requested help
  59      echo '<h1>'.$help[1].'</h1>'."\n\n";
  60      echo $help[2];
  61  }
  62  
  63  //display the list of help chapters
  64  echo '<h1>'.__('Help topics').'</h1>';
  65  $chapters = $m->getHelpChapters();
  66  echo '<ul>'."\n";
  67  foreach ($chapters as $c) {
  68      echo '<li><a href="help.php?c='.$c[0].'&amp;mode='.$mode.'">'.$c[1].'</a></li>'."\n";
  69  }
  70  echo '</ul>'."\n";
  71  
  72  echo '<h2>'. __('More help').'</h2>'."\n\n";
  73  echo '<p>'. __('You can read the <a href="http://pxsystem.sourceforge.net/documentation.html">complete online documentation</a>.').'</p>'."\n\n";
  74  echo '<p>'. __('You can also ask your questions to the community on the <a href="http://pxsystem.sourceforge.net/participate.html">forum</a>.').'</p>'."\n\n";
  75  
  76  
  77  
  78  if ($mode == 'popup') {
  79      echo '<p style="text-align: right;"><a href="#" onclick="window.close(); return false;">'.__('Close this window').'</a></p>';
  80      include dirname(__FILE__).'/mtemplates/_pop_bottom.php';
  81  } else {
  82      include dirname(__FILE__).'/mtemplates/_bottom.php';
  83  }
  84  ?>


Généré le : Mon Nov 26 11:57:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics