* @version $Id$ * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ $noplugin = true; // flag for ../config/define.php file include_once('../config/define.php'); include_once('../languages/' . U_L . '/lang_common.' . CHARSET . '.php'); include_once('../languages/' . U_L . '/lang_comment.' . CHARSET . '.php'); include_once(override('../comment/display.php')); securityCheck(); $a['module'] = strip_tags($_GET['module']); $a['module_id'] = $_GET['id']; if(isset($_GET['rub'])) $a['rub'] = $_GET['rub']; if ($a['module'] == 'files') { $path = explode('/', $a['module_id']); // retrieve workgroup id $wgid = $path[1]; $a['id']=$wgid; // we set the id } isset($_GET['order_by']) ? $a['order_by'] = $_GET['order_by'] : 'DESC'; //////////// Check user rights on workgroups //////////// if ($a['module'] == 'files') { if(!isset($_SESSION['authenticated'])) die('
'._t('divers', 'noauth').'
'); if($wgid != 'shared' && !$l21auth->isWorkgroupUser($wgid, $sql_object)) die(''._t('divers', 'noauth').'
'); } //////////// echo '