[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare Wiki - UserInterface * 4 * http://www.egroupware.org * 5 * ------------------------------------------------- * 6 * Copyright (C) 2004 RalfBecker@outdoor-training.de * 7 * -------------------------------------------- * 8 * This program is free software; you can redistribute it and/or modify it * 9 * under the terms of the GNU General Public License as published by the * 10 * Free Software Foundation; either version 2 of the License, or (at your * 11 * option) any later version. * 12 \**************************************************************************/ 13 14 /* $Id: hook_config_validate.inc.php 20988 2006-04-06 11:09:19Z ralfbecker $ */ 15 16 $GLOBALS['egw_info']['server']['found_validation_hook'] = True; 17 18 function final_validation($settings) 19 { 20 //echo "final_validation()"; _debug_array($settings); 21 if ($settings['allow_anonymous']) 22 { 23 // check if anon user set and exists 24 if (!$settings['anonymous_username'] || !($anon_user = $GLOBALS['egw']->accounts->name2id($settings['anonymous_username']))) 25 { 26 $GLOBALS['config_error'] = 'Anonymous user does NOT exist!'; 27 } 28 else // check if anon user has run-rights for manual 29 { 30 $locations = $GLOBALS['egw']->acl->get_all_location_rights($anon_user,'wiki'); 31 if (!$locations['run']) 32 { 33 $GLOBALS['config_error'] = 'Anonymous user has NO run-rights for the application!'; 34 } 35 } 36 } 37 }
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 |