[ Index ] |
|
Code source de XOOPS 2.0.17.1 |
1 <?php 2 // $Id: formhiddentoken.php 2 2005-11-02 18:23:29Z skalpa $ // ------------------------------------------------------------------------ // 3 // XOOPS - PHP Content Management System // 4 // Copyright (c) 2000 XOOPS.org // 5 // <http://www.xoops.org/> // 6 // ------------------------------------------------------------------------ // 7 // This program is free software; you can redistribute it and/or modify // 8 // it under the terms of the GNU General Public License as published by // 9 // the Free Software Foundation; either version 2 of the License, or // 10 // (at your option) any later version. // 11 // // 12 // You may not change or alter any portion of this comment or credits // 13 // of supporting developers from this source code or any supporting // 14 // source code which is considered copyrighted (c) material of the // 15 // original comment or credit authors. // 16 // // 17 // This program is distributed in the hope that it will be useful, // 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of // 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // 20 // GNU General Public License for more details. // 21 // // 22 // You should have received a copy of the GNU General Public License // 23 // along with this program; if not, write to the Free Software // 24 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // 25 // Author: Kazumi Ono (AKA onokazu) // 26 // URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // 27 // Project: The XOOPS Project // 28 // ------------------------------------------------------------------------- // 29 if (!defined('XOOPS_ROOT_PATH')) { 30 die("XOOPS root path not defined"); 31 } 32 /** 33 * 34 * @author Kazumi Ono <onokazu@xoops.org> 35 * @copyright copyright (c) 2000-2005 XOOPS.org 36 */ 37 /** 38 * A hidden token field 39 * 40 * 41 * @author Kazumi Ono <onokazu@xoops.org> 42 * @copyright copyright (c) 2000-2005 XOOPS.org 43 */ 44 class XoopsFormHiddenToken extends XoopsFormHidden { 45 46 /** 47 * Constructor 48 * 49 * @param string $name "name" attribute 50 */ 51 function XoopsFormHiddenToken($name = 'XOOPS_TOKEN_REQUEST', $timeout = 0){ 52 $this->XoopsFormHidden($name, $GLOBALS['xoopsSecurity']->createToken($timeout)); 53 } 54 } 55 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Nov 25 11:44:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |