<?php
/*
oc4ware - Software 4 Open Communities
Copyright (c) 2001-2002 oc4 e.V. (http://www.oc4home.org)
Software 4 Open Communities (oc4ware) provides Web community portal
software in the scope of the Semantic Web initiative for distributed
content, knowledge management, online publishing in self-organised
online journals.
----------------------------------------------------------------------
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
----------------------------------------------------------------------
Authors: Sandro.Zic <hide@address.com>; |
Your Name <hide@address.com>; |
----------------------------------------------------------------------
$Id: pending.php,v 1.1 2002/10/29 19:47:49 czonsius Exp $
*/
/*************************************************
* INCLUDES
**************************************************/
// GLOBALs
$number = $_REQUEST['number'];
$retrieval = OC4_FRAMEWORK::connect('forums/connector/retrieval');
$forum = $retrieval->call('getForum', array($_REQUEST['number']));
// check whether the user has access
$acl = OC4_FRAMEWORK::connect('forums/connector/acl');
if(!$acl->call('isAuthorized', array($_SESSION[userInfo]->listIdentities(), OC4_FRAMEWORK::uriPrefix('forums').$_REQUEST['number'].$forum["language"]))){
OC4_AUTHENTICATION::redirectToLogin();
}
/***************************************************************************
* PAGE CONTENT *
***************************************************************************/
// dont show toc
$no_toc = true;
require_once 'header.php';
?>
<p>You cannot change anything in this forum while waiting for review. Please contact the publishers if necessary:</p>
<?php
$owners = $acl->call( 'listOwners', array( $forum["URI"], OC4_FRAMEWORK::uriPrefix('roles').'pbl' ));
if(count($owners) && is_array($owners)){
echo '<ul>';
foreach($owners as $owner) {
// retrieve the owner data
$journals_repository_retrieval = OC4_FRAMEWORK::connect('journals_repository/connector/retrieval');
$data = $journals_repository_retrieval->call( 'getJournal', array($owner, 'URI'));
//print_r($data);
echo '<li><a href="'.OC4_FRAMEWORK::conf('journals_repository/paths/public/item').$data[number].'">'.$data[name].'</a> ('.$data['name_full'].')</li>';
}
echo '</ul>';
}
// footer
require_once 'footer.php';
?>