Minahito
minah****@users*****
2005年 12月 26日 (月) 18:00:09 JST
Index: xoops2jp/html/modules/user/strategy/UserinfoStrategy.class.php diff -u xoops2jp/html/modules/user/strategy/UserinfoStrategy.class.php:1.1.2.2 xoops2jp/html/modules/user/strategy/UserinfoStrategy.class.php:removed --- xoops2jp/html/modules/user/strategy/UserinfoStrategy.class.php:1.1.2.2 Tue Oct 25 20:04:55 2005 +++ xoops2jp/html/modules/user/strategy/UserinfoStrategy.class.php Mon Dec 26 18:00:09 2005 @@ -1,49 +0,0 @@ -<?php -// $Id$ -// ------------------------------------------------------------------------ // -// XOOPS - PHP Content Management System // -// Copyright (c) 2005 XOOPS Cube.org // -// <http://www.xoopscube.org/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // - -require_once XOOPS_MODULE_PATH."/user/strategy/UserFunctionStrategy.class.php"; - -class UserinfoStrategy extends AbstractUserFunctionStrategy -{ - function getFunctionType() - { - return XCUBE_FUNCTION_TYPE_KICK; - } - - function getFunctionUrl() - { - $uid=isset($_REQUEST['uid']) ? intval($_REQUEST['uid']) : 0; - return XOOPS_MODULE_URL."/user/userinfo.php?uid=".$uid; - } - - function executeFunction() - { - header("location: ".$this->getFunctionUrl()); - } -} - -?> \ No newline at end of file Index: xoops2jp/html/modules/user/strategy/UserFeatureStrategy.class.php diff -u xoops2jp/html/modules/user/strategy/UserFeatureStrategy.class.php:1.1.2.2 xoops2jp/html/modules/user/strategy/UserFeatureStrategy.class.php:removed --- xoops2jp/html/modules/user/strategy/UserFeatureStrategy.class.php:1.1.2.2 Tue Oct 25 20:04:44 2005 +++ xoops2jp/html/modules/user/strategy/UserFeatureStrategy.class.php Mon Dec 26 18:00:09 2005 @@ -1,50 +0,0 @@ -<?php -// $Id$ -// ------------------------------------------------------------------------ // -// XOOPS - PHP Content Management System // -// Copyright (c) 2005 XOOPS Cube.org // -// <http://www.xoopscube.org/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // - -class AbstractUserFeatureStrategy -{ - function hasFunction() - { - return true; - } - - function getFunctionType() - { - return XCUBE_FUNCTION_TYPE_NONE; - } - - function getFunctionUrl() - { - return XOOPS_URL; - } - - function executeFunction() - { - } -} - -?> \ No newline at end of file Index: xoops2jp/html/modules/user/strategy/MainStrategy.class.php diff -u xoops2jp/html/modules/user/strategy/MainStrategy.class.php:1.1.2.2 xoops2jp/html/modules/user/strategy/MainStrategy.class.php:removed --- xoops2jp/html/modules/user/strategy/MainStrategy.class.php:1.1.2.2 Tue Oct 25 20:04:36 2005 +++ xoops2jp/html/modules/user/strategy/MainStrategy.class.php Mon Dec 26 18:00:09 2005 @@ -1,49 +0,0 @@ -<?php -// $Id$ -// ------------------------------------------------------------------------ // -// XOOPS - PHP Content Management System // -// Copyright (c) 2005 XOOPS Cube.org // -// <http://www.xoopscube.org/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // - -require_once XOOPS_MODULE_PATH."/user/strategy/UserFeatureStrategy.class.php"; - -class MainStrategy extends AbstractUserFeatureStrategy -{ - function getFunctionType() - { - return XCUBE_FUNCTION_TYPE_KICK; - } - - function getFunctionUrl() - { - global $xoopsUser; - if($xoopsUser) { - return XOOPS_MODULE_URL."/user/userinfo.php?uid=".$xoopsUser->getVar('uid'); - } - else { - return XOOPS_MODULE_URL."/user/index.php"; - } - } -} - -?> \ No newline at end of file