[xoops-cvslog 1403] CVS update: xoops2jp/html/modules/base/class/misc

Back to archive index

Minahito minah****@users*****
2005年 12月 26日 (月) 20:01:43 JST


Index: xoops2jp/html/modules/base/class/misc/MiscSslloginAction.class.php
diff -u xoops2jp/html/modules/base/class/misc/MiscSslloginAction.class.php:1.1.2.2 xoops2jp/html/modules/base/class/misc/MiscSslloginAction.class.php:removed
--- xoops2jp/html/modules/base/class/misc/MiscSslloginAction.class.php:1.1.2.2	Sun Nov  6 15:57:48 2005
+++ xoops2jp/html/modules/base/class/misc/MiscSslloginAction.class.php	Mon Dec 26 20:01:43 2005
@@ -1,51 +0,0 @@
-<?php
-// $Id: MiscSslloginAction.class.php,v 1.1.2.2 2005/11/06 06:57:48 minahito Exp $
-//  ------------------------------------------------------------------------ //
-//                XOOPS - PHP Content Management System                      //
-//                    Copyright (c) 2000 XOOPS.org                           //
-//                       <http://www.xoops.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_BASE_PATH."/class/misc/MiscAction.class.php";
-
-class MiscSslloginAction extends MiscAction
-{
-	function execute(&$controller,&$xoopsUser)
-	{
-		$config=$controller->getConfig();
-		if($config['user_ssl']&&isset($_POST[$config['sslpost_name']])&&is_object($xoopsUser)) {
-			require_once XOOPS_ROOT_PATH.'/language/'.$config['language'].'/user.php';
-			return MISC_FRAME_VIEW_INDEX;
-		}
-		else {
-			return MISC_FRAME_VIEW_NONE;
-		}
-	}
-	
-	function executeViewIndex(&$controller,&$xoopsUser,&$renderSystem)
-	{
-		$renderSystem->setTemplateName("base_misc_ssllogin.html");
-		$renderSystem->setAttribute("message", @ sprintf(_US_LOGGINGU,$xoopsUser->getVar('uname')));
-	}
-}
-
-?>
\ No newline at end of file
Index: xoops2jp/html/modules/base/class/misc/MiscFriendAction.class.php
diff -u xoops2jp/html/modules/base/class/misc/MiscFriendAction.class.php:1.1.2.1 xoops2jp/html/modules/base/class/misc/MiscFriendAction.class.php:removed
--- xoops2jp/html/modules/base/class/misc/MiscFriendAction.class.php:1.1.2.1	Fri Oct 21 19:06:44 2005
+++ xoops2jp/html/modules/base/class/misc/MiscFriendAction.class.php	Mon Dec 26 20:01:43 2005
@@ -1,142 +0,0 @@
-<?php
-
-require_once XOOPS_ROOT_PATH."/class/misc/MiscStrategy.class.php";
-
-class MiscFriendAction extends MiscAction
-{
-	var $mStrategy;
-
-	function execute()
-	{
-        if ( !isset($_POST['op']) || $_POST['op'] == "sendform" ) {
-			$this->mStrategy=MiscFriendSendformStrategy();
-        } else {
-			$this->mStrategy=MiscFriendSendsiteStrategy();
-		}
-		
-		if(!is_object($this->mXoopsUser))
-			exit();
-
-		$this->mStrategy->execute();
-	}
-
-	function display()
-	{
-    }
-
-	function hasCloseButton()
-	{
-		return $this->mStrategy->hasCloseButton();
-	}
-}
-
-class AbstractMiscFriendStrategy
-{
-	function hasCloseButton()
-	{
-		return true;
-	}
-}
-
-class MiscFriendSendformStrategy
-{
-	function execute()
-	{
-            $token=&XoopsMultiTokenHandler::quickCreate('misc_sendform');
-            $yname = $xoopsUser->getVar("uname", 'e');
-            $ymail = $xoopsUser->getVar("email", 'e');
-            $fname = "";
-            $fmail = "";
-            $this->printCheckForm();
-            echo '</head><body>
-            <form action="'.XOOPS_URL.'/misc.php" method="post" onsubmit="return checkForm();"><table  width="100%" class="outer" cellspacing="1"><tr><th colspan="2">'._MSC_RECOMMENDSITE.'</th></tr>';
-            echo $token->getHtml();
-            echo "<tr><td class='head'>
-                <input type='hidden' name='op' value='sendsite' />
-                <input type='hidden' name='action' value='showpopups' />
-                <input type='hidden' name='type' value='friend' />\n";
-            echo _MSC_YOURNAMEC."</td><td class='even'><input type='text' name='yname' value='$yname' id='yname' /></td></tr>
-                <tr><td class='head'>"._MSC_YOUREMAILC."</td><td class='odd'><input type='text' name='ymail' value='".$ymail."' id='ymail' /></td></tr>
-                <tr><td class='head'>"._MSC_FRIENDNAMEC."</td><td class='even'><input type='text' name='fname' value='$fname' id='fname' /></td></tr>
-                <tr><td class='head'>"._MSC_FRIENDEMAILC."</td><td class='odd'><input type='text' name='fmail' value='$fmail' id='fmail' /></td></tr>
-                <tr><td class='head'>&nbsp;</td><td class='even'><input type='submit' value='"._SEND."' />&nbsp;<input value='"._CLOSE."' type='button' onclick='javascript:window.close();' /></td></tr>
-                </table></form>\n";
-	}
-	
-	function printCheckForm()
-	{
-		?>
-		<script language='javascript'>
-			<!--//
-			function checkForm()
-			{
-				if ( xoopsGetElementById("yname").value == "" ){
-					alert( "<?php echo _MSC_ENTERYNAME;?>" );
-					xoopsGetElementById("yname").focus();
-					return false;
-				} else if ( xoopsGetElementById("fname").value == "" ){
-					alert( "<?php echo _MSC_ENTERFNAME;?>" );
-					xoopsGetElementById("fname").focus();
-					return false;
-				} else if ( xoopsGetElementById("fmail").value ==""){
-					alert( "<?php echo _MSC_ENTERFMAIL;?>" );
-					xoopsGetElementById("fmail").focus();
-					return false;
-				} else {
-					return true;
-				}
-			}
-			//-->
-		</script>
-		<?php
-	}
-
-	function hasCloseButton()
-	{
-		return false;
-	}
-}
-
-class MiscFriendSendsiteStrategy
-{
-	function execute()
-	{
-            if (!XoopsMultiTokenHandler::quickValidate('misc_sendform')) {
-                exit();
-            }
-            $myts =& MyTextsanitizer::getInstance();
-            $ymail = $xoopsUser->getVar("email");
-            if ( !isset($_POST['yname']) || trim($_POST['yname']) == "" || $ymail == '' || !isset($_POST['fname']) || trim($_POST['fname']) == ""  || !isset($_POST['fmail']) || trim($_POST['fmail']) == '' ) {
-                redirect_header(XOOPS_URL."/misc.php?action=showpopups&amp;type=friend&amp;op=sendform",2,_MSC_NEEDINFO);
-                exit();
-            }
-            $yname = $myts->stripSlashesGPC(trim($_POST['yname']));
-            $fname = $myts->stripSlashesGPC(trim($_POST['fname']));
-            $fmail = $myts->stripSlashesGPC(trim($_POST['fmail']));
-            if (!checkEmail($fmail) || !checkEmail($ymail)) {
-                $errormessage = _MSC_INVALIDEMAIL1."<br />"._MSC_INVALIDEMAIL2."";
-                redirect_header(XOOPS_URL."/misc.php?action=showpopups&amp;type=friend&amp;op=sendform",2,$errormessage);
-                exit();
-            }
-            $xoopsMailer =& getMailer();
-            $xoopsMailer->setTemplate("tellfriend.tpl");
-            $xoopsMailer->assign("SITENAME", $xoopsConfig['sitename']);
-            $xoopsMailer->assign("ADMINMAIL", $xoopsConfig['adminmail']);
-            $xoopsMailer->assign("SITEURL", XOOPS_URL."/");
-            $xoopsMailer->assign("YOUR_NAME", $yname);
-            $xoopsMailer->assign("FRIEND_NAME", $fname);
-            $xoopsMailer->setToEmails($fmail);
-            $xoopsMailer->setFromEmail($ymail);
-            $xoopsMailer->setFromName($yname);
-            $xoopsMailer->setSubject(sprintf(_MSC_INTSITE,$xoopsConfig['sitename']));
-            //OpenTable();
-            if ( !$xoopsMailer->send() ) {
-                echo $xoopsMailer->getErrors();
-            } else {
-                echo "<div><h4>"._MSC_REFERENCESENT."</h4></div>";
-            }
-            //CloseTable();
-	}
-}
-
-?>
\ No newline at end of file
Index: xoops2jp/html/modules/base/class/misc/MiscActionFrame.class.php
diff -u xoops2jp/html/modules/base/class/misc/MiscActionFrame.class.php:1.1.2.3 xoops2jp/html/modules/base/class/misc/MiscActionFrame.class.php:removed
--- xoops2jp/html/modules/base/class/misc/MiscActionFrame.class.php:1.1.2.3	Sun Nov  6 15:58:07 2005
+++ xoops2jp/html/modules/base/class/misc/MiscActionFrame.class.php	Mon Dec 26 20:01:43 2005
@@ -1,88 +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_ROOT_PATH."/class/XCube_ActionStrategy.class.php";
-require_once XOOPS_MODULE_PATH."/base/class/misc/MiscAction.class.php";
-
-define ("MISC_FRAME_PERFORM_SUCCESS",1);
-define ("MISC_FRAME_PERFORM_FAIL",2);
-define ("MISC_FRAME_INIT_SUCCESS",3);
-
-define ("MISC_FRAME_VIEW_NONE",1);
-define ("MISC_FRAME_VIEW_SUCCESS",1);
-define ("MISC_FRAME_VIEW_ERROR",2);
-define ("MISC_FRAME_VIEW_INDEX",3);
-
-/**
- * This is simple frame work for misc page controller.
- * @package base
- */
-class MiscActionFrame extends XCube_ActionStrategy
-{
-	var $mActionName="";
-	var $mAction;
-	
-	function MiscActionFrame()
-	{
-	}
-	
-	function execute(&$controller)
-	{
-		global $xoopsTpl;
-
-		$this->mActionName=isset($_REQUEST['action']) ? trim($_REQUEST['action']) : null;
-		if(!preg_match("/^\w+$/",$this->mActionName))
-			die();
-
-		$this->mAction=MiscActionClassFactory::create($this->mActionName,$controller);
-		
-		if(xoops_getenv("REQUEST_METHOD")=="POST") {
-			$viewStatus=$this->mAction->execute($controller,$controller->getXoopsUser());
-		}
-		else {
-			$viewStatus=$this->mAction->getDefaultView($controller,$controller->getXoopsUser());
-		}
-
-		switch($viewStatus) {
-			case MISC_FRAME_VIEW_SUCCESS:
-				$this->mAction->executeViewSuccess($controller,$controller->getXoopsUser(),$controller->mRenderSystem);
-				break;
-			
-			case MISC_FRAME_VIEW_ERROR:
-				$this->mAction->executeViewError($controller,$controller->getXoopsUser(),$controller->mRenderSystem);
-				break;
-			
-			case MISC_FRAME_VIEW_INDEX:
-				$this->mAction->executeViewIndex($controller,$controller->getXoopsUser(),$controller->mRenderSystem);
-				break;
-		}
-
-		$controller->executeView();
-	}
-}
-
-?>
\ No newline at end of file
Index: xoops2jp/html/modules/base/class/misc/MiscAction.class.php
diff -u xoops2jp/html/modules/base/class/misc/MiscAction.class.php:1.1.2.5 xoops2jp/html/modules/base/class/misc/MiscAction.class.php:removed
--- xoops2jp/html/modules/base/class/misc/MiscAction.class.php:1.1.2.5	Sun Nov  6 16:40:12 2005
+++ xoops2jp/html/modules/base/class/misc/MiscAction.class.php	Mon Dec 26 20:01:43 2005
@@ -1,62 +0,0 @@
-<?php
-
-class MiscAction
-{
-	function MiscAction()
-	{
-	}
-	
-	/**
-	 * @param $controller Base_Controller
-	 * @param $xoopsUser XoopsUserObject
-	 */
-	function getDefaultView(&$controller,&$xoopsUser)
-	{
-		return MISC_FRAME_VIEW_NONE;
-	}
-	
-	function execute()
-	{
-		return MISC_FRAME_VIEW_NONE;
-	}
-	
-	function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem)
-	{
-	}
-
-	function executeViewError(&$controller,&$xoopsUser,&$renderSystem)
-	{
-	}
-
-	function executeViewIndex(&$controller,&$xoopsUser,&$renderSystem)
-	{
-	}
-}
-
-
-class MiscActionClassFactory
-{
-	/**
-	 * @param $controller Base_Controller
-	 */
-	function &create($actionName,$controller)
-	{
-		$instance=null;
-		$fileName=XOOPS_BASE_PATH."/class/misc/Misc".ucfirst($actionName)."Action.class.php";
-		
-		if(file_exists($fileName)) {
-			require_once $fileName;
-			$className="Misc".ucfirst($actionName)."Action";
-			if(class_exists($className)) {
-				$instance = new $className();
-			}
-		}
-		
-		if($instance===null)
-			$instance = new MiscAction();
-		
-		return $instance;
-	}
-}
-
-?>
\ No newline at end of file
Index: xoops2jp/html/modules/base/class/misc/MiscOnlineAction.class.php
diff -u xoops2jp/html/modules/base/class/misc/MiscOnlineAction.class.php:1.1.2.3 xoops2jp/html/modules/base/class/misc/MiscOnlineAction.class.php:removed
--- xoops2jp/html/modules/base/class/misc/MiscOnlineAction.class.php:1.1.2.3	Sun Nov  6 15:39:22 2005
+++ xoops2jp/html/modules/base/class/misc/MiscOnlineAction.class.php	Mon Dec 26 20:01:43 2005
@@ -1,83 +0,0 @@
-<?php
-// $Id: MiscOnlineAction.class.php,v 1.1.2.3 2005/11/06 06:39:22 minahito Exp $
-//  ------------------------------------------------------------------------ //
-//                XOOPS - PHP Content Management System                      //
-//                    Copyright (c) 2000 XOOPS.org                           //
-//                       <http://www.xoops.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_BASE_PATH."/class/misc/MiscAction.class.php";
-
-define ("MISC_ONLINE_PER_PAGE",20);
-
-class MiscOnlineAction extends MiscAction
-{
-	var $mOnlineUsers=array();
-	
-	function getDefaultView(&$controller,&$xoopsUser)
-	{
-		$start=isset($_GET['start']) ? intval($_GET['start']) : 0;
-		
-		$onlineHandler=&xoops_gethandler('online');
-		$onlineTotal=$onlineHandler->getCount();
-		$limit = ($onlineTotal>MISC_ONLINE_PER_PAGE) ? MISC_ONLINE_PER_PAGE : $onlineTotal;
-		
-		// bad
-		$criteria=new CriteriaCompo();
-		$criteria->setLimit($limit);
-		$criteria->setStart($start);
-		
-		$onlineInfos=&$onlineHandler->getAll($criteria);
-		$count=count($onlineInfos);
-		
-		$moduleHandler=&xoops_gethandler('module');
-		$modules=&$moduleHandler->getList(new Criteria('isactive',1));
-		
-		foreach($onlineInfos as $info) {
-			$user=array();
-			$user['onlineInfo']=&$info;
-			if($info['online_uid']) {
-				$user['user']=new XoopsUser($info['online_uid']);
-			}
-			else {
-				$user['user']=null;
-			}
-			
-			$user['module'] = ($info['online_module'] > 0) ? $modules[$info['online_module']] : null;
-			
-			$this->mOnlineUsers[]=&$user;
-
-			unset($user);
-			unset($info);
-		}
-
-		return MISC_FRAME_VIEW_INDEX;
-	}
-	
-	function executeViewIndex(&$controller,&$xoopsUser,&$renderSystem)
-	{
-		$renderSystem->setTemplateName("base_misc_online.html");
-		$renderSystem->setAttribute("onlineUsers",$this->mOnlineUsers);
-	}
-}
-
-?>
\ No newline at end of file
Index: xoops2jp/html/modules/base/class/misc/MiscAvatarsAction.class.php
diff -u xoops2jp/html/modules/base/class/misc/MiscAvatarsAction.class.php:1.1.2.2 xoops2jp/html/modules/base/class/misc/MiscAvatarsAction.class.php:removed
--- xoops2jp/html/modules/base/class/misc/MiscAvatarsAction.class.php:1.1.2.2	Sun Nov  6 16:33:37 2005
+++ xoops2jp/html/modules/base/class/misc/MiscAvatarsAction.class.php	Mon Dec 26 20:01:43 2005
@@ -1,54 +0,0 @@
-<?php
-// $Id: MiscAvatarsAction.class.php,v 1.1.2.2 2005/11/06 07:33:37 minahito Exp $
-//  ------------------------------------------------------------------------ //
-//                XOOPS - PHP Content Management System                      //
-//                    Copyright (c) 2000 XOOPS.org                           //
-//                       <http://www.xoops.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_BASE_PATH."/class/misc/MiscAction.class.php";
-
-class MiscAvatarsAction extends MiscAction
-{
-	var $mAvatarsList=array();
-	
-	function getDefaultView(&$controller,&$xoopsUser)
-	{
-		$avatarHandler=&xoops_gethandler('avatar');
-		$list=&$avatarHandler->getList('S');
-		
-		$counter=0;
-		foreach($list as $fileName=>$avatarName) {
-			$this->mAvatarsList[] = array("fileName"=>$fileName, "avatarName"=>$avatarName,"counter"=>$counter++);
-		}
-		
-		return MISC_FRAME_VIEW_INDEX;
-	}
-
-	function executeViewIndex(&$controller,&$xoopsUser,&$renderSystem)
-	{
-		$renderSystem->setTemplateName("base_misc_avatars.html");
-		$renderSystem->setAttribute("avatarsList",$this->mAvatarsList);
-	}
-}
-
-?>
\ No newline at end of file
Index: xoops2jp/html/modules/base/class/misc/MiscShowpopupsAction.class.php
diff -u xoops2jp/html/modules/base/class/misc/MiscShowpopupsAction.class.php:1.1.2.1 xoops2jp/html/modules/base/class/misc/MiscShowpopupsAction.class.php:removed
--- xoops2jp/html/modules/base/class/misc/MiscShowpopupsAction.class.php:1.1.2.1	Sun Nov  6 17:00:09 2005
+++ xoops2jp/html/modules/base/class/misc/MiscShowpopupsAction.class.php	Mon Dec 26 20:01:43 2005
@@ -1,54 +0,0 @@
-<?php
-// $Id$
-//  ------------------------------------------------------------------------ //
-//                XOOPS - PHP Content Management System                      //
-//                    Copyright (c) 2000 XOOPS.org                           //
-//                       <http://www.xoops.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_BASE_PATH."/class/misc/MiscAction.class.php";
-
-class MiscShowpopupsAction extends MiscAction
-{
-	var $mTargetName;
-	var $mSmiles=array();
-
-	function getDefaultView(&$controller,&$xoopsUser)
-	{
-		$this->mTargetName=isset($_GET['target']) ? trim($_GET['target']) : null;
-		$db=&$controller->getDB();
-		if($result=$db->query("SELECT * FROM ".$db->prefix("smiles"))) {
-			while($this->mSmiles[]=$db->fetchArray($result));
-		}
-
-		return MISC_FRAME_VIEW_INDEX;
-	}
-
-	function executeViewIndex(&$controller,&$xoopsUser,&$renderSystem)
-	{
-		$renderSystem->setTemplateName("base_misc_showpopups.html");
-		$renderSystem->setAttribute("targetName",$this->mTargetName);
-		$renderSystem->setAttribute("smiles",$this->mSmiles);
-	}
-}
-
-?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
Back to archive index