[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - Online User manual * 4 * http://www.eGroupWare.org * 5 * Written and (c) by RalfBecker@outdoor-training.de * 6 * -------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \**************************************************************************/ 12 13 /* $Id: index.php 20990 2006-04-06 11:11:08Z ralfbecker $ */ 14 15 /** 16 * Check if we allow anon access and with which creditials 17 * 18 * @param array &$anon_account anon account_info with keys 'login', 'passwd' and optional 'passwd_type' 19 * @return boolean true if we allow anon access, false otherwise 20 */ 21 function manual_check_anon_access(&$anon_account) 22 { 23 $c =& CreateObject('phpgwapi.config','manual'); 24 $c->read_repository(); 25 $config =& $c->config_data; 26 unset($c); 27 28 if ($config['manual_allow_anonymous'] && $config['manual_anonymous_user']) 29 { 30 $anon_account = array( 31 'login' => $config['manual_anonymous_user'], 32 'passwd' => $config['manual_anonymous_password'], 33 'passwd_type' => 'text', 34 ); 35 return true; 36 } 37 return false; 38 } 39 40 // uncomment the next line if manual should use a eGW domain different from the first one defined in your header.inc.php 41 // and of cause change the name accordingly ;-) 42 // $GLOBALS['egw_info']['user']['domain'] = $GLOBALS['egw_info']['server']['default_domain'] = 'developers'; 43 44 $GLOBALS['egw_info'] = array( 45 'flags' => array( 46 'currentapp' => 'manual', 47 'autocreate_session_callback' => 'manual_check_anon_access', 48 'disable_Template_class' => True, 49 'noheader' => True, 50 'nonavbar' => True, 51 ), 52 ); 53 include('../header.inc.php'); 54 55 ExecMethod('manual.uimanual.view'); 56 57 $GLOBALS['egw']->common->egw_footer();
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |