[ 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/ -> comments.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 dirname(__FILE__).'/prepend.php';
  26  require_once dirname(__FILE__).'/inc/class.comment.php';
  27  
  28  auth::checkAuth(PX_AUTH_NORMAL);
  29  $is_user_admin = auth::asLevel(PX_AUTH_ADMIN);
  30  
  31  $m = new Manager();
  32  $_px_theme = $m->user->getTheme();
  33  
  34  if (empty($_REQUEST['op']) && empty($_REQUEST['comment_id'])) {
  35      // get last 15 comments for the current website in 
  36      // reverse chronological order
  37      $ct = $m->getComments('', 15);
  38  }
  39  
  40  
  41  $px_title = __('Comments');
  42  include dirname(__FILE__).'/mtemplates/_top.php';
  43  
  44  echo '<h1>'.$px_title.'</h1>'."\n\n";
  45  
  46  if (empty($_REQUEST['op']) && empty($_REQUEST['comment_id'])) {
  47      include dirname(__FILE__).'/mtemplates/comments-list.php';
  48  }
  49  
  50  include dirname(__FILE__).'/mtemplates/_bottom.php';
  51  
  52  ?>


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