| [ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare SiteMgr - Web Content Management * 4 * http://www.egroupware.org * 5 * -------------------------------------------- * 6 * This program is free software; you can redistribute it and/or modify it * 7 * under the terms of the GNU General Public License as published by the * 8 * Free Software Foundation; either version 2 of the License, or (at your * 9 * option) any later version. * 10 \**************************************************************************/ 11 12 /* $Id: class.module_redirect.inc.php 20295 2006-02-15 12:31:25Z $ */ 13 14 class module_redirect extends Module 15 { 16 function module_redirect() 17 { 18 $this->arguments = array( 19 'URL' => array( 20 'type' => 'textfield', 21 'params' => array('size' => 100), 22 'label' => lang('The URL to redirect to') 23 ) 24 ); 25 $this->title = lang('Redirection'); 26 $this->description = lang('This module lets you define pages that redirect to another URL, if you use it, there should be no other block defined for the page'); 27 } 28 29 function get_content(&$arguments,$properties) 30 { 31 if ($GLOBALS['sitemgr_info']['mode'] != 'Edit') 32 { 33 $GLOBALS['egw']->redirect($arguments['URL']); 34 } 35 else 36 { 37 return lang('The URL to redirect to').': <a href="'.$arguments['URL'].'">'.$arguments['URL'].'</a>'; 38 } 39 } 40 }
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 |