OSDN Git Service

#17066 - Remove tell a friend files.
authormumin <mumincacao@users.sourceforge.jp>
Tue, 2 Jun 2009 13:02:46 +0000 (22:02 +0900)
committermumin <mumincacao@users.sourceforge.jp>
Tue, 2 Jun 2009 13:02:46 +0000 (22:02 +0900)
14 files changed:
public_html/language/english/mail_template/tellfriend.tpl [deleted file]
public_html/language/english/misc.php [deleted file]
public_html/language/ja_utf8/mail_template/tellfriend.tpl [deleted file]
public_html/language/ja_utf8/misc.php [deleted file]
public_html/modules/legacy/actions/MiscFriendAction.class.php [deleted file]
public_html/modules/legacy/forms/MiscFriendForm.class.php [deleted file]
public_html/modules/legacy/language/english/blocks.php
public_html/modules/legacy/language/english/main.php
public_html/modules/legacy/language/ja_utf8/blocks.php
public_html/modules/legacy/language/ja_utf8/main.php
public_html/modules/legacy/templates/legacy_misc_friend.html [deleted file]
public_html/modules/legacy/templates/legacy_misc_friend_error.html [deleted file]
public_html/modules/legacy/templates/legacy_misc_friend_success.html [deleted file]
public_html/modules/legacy/xoops_version.php

diff --git a/public_html/language/english/mail_template/tellfriend.tpl b/public_html/language/english/mail_template/tellfriend.tpl
deleted file mode 100644 (file)
index 1c3277b..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-Hello {FRIEND_NAME},
-
-Your friend {YOUR_NAME} liked our site and wanted to show it to you.
-
-Site Name: {SITENAME}
-Site URL:  {SITEURL}
-
------------
-{SITENAME} ({SITEURL}) 
-webmaster
-{ADMINMAIL}
diff --git a/public_html/language/english/misc.php b/public_html/language/english/misc.php
deleted file mode 100644 (file)
index 06d54d6..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-// $Id: misc.php,v 1.1 2007/05/15 02:34:43 minahito Exp $
-define("_MSC_YOURNAMEC","Your Name: ");
-define("_MSC_YOUREMAILC","Your Email: ");
-define("_MSC_FRIENDNAMEC","Friend Name: ");
-define("_MSC_FRIENDEMAILC","Friend Email: ");
-define("_MSC_RECOMMENDSITE","Recommend this Site to a Friend");
-// %s is your site name
-define("_MSC_INTSITE","Interesting Site: %s");
-define("_MSC_REFERENCESENT","The reference to our site has been sent to your friend. Thanks!");
-define("_MSC_ENTERYNAME","Please enter your name");
-define("_MSC_ENTERFNAME","Please enter your friend's name");
-define("_MSC_ENTERFMAIL","Please enter your friend's email address");
-define("_MSC_NEEDINFO","You need to enter required info!");
-define("_MSC_INVALIDEMAIL1","The email address you provided is not a valid address.");
-define("_MSC_INVALIDEMAIL2","Please check the address and try again.");
-?>
\ No newline at end of file
diff --git a/public_html/language/ja_utf8/mail_template/tellfriend.tpl b/public_html/language/ja_utf8/mail_template/tellfriend.tpl
deleted file mode 100644 (file)
index 4ff36c7..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-{FRIEND_NAME}さん、こんにちは
-
-あなたのお友達の{YOUR_NAME}さんから、下記サイト推薦のメールが届きました。
-
-サイト名: {SITENAME}
-ホームページ:  {SITEURL}
-
------------
-{SITENAME} ({SITEURL}) 
-webmaster
-{ADMINMAIL}
diff --git a/public_html/language/ja_utf8/misc.php b/public_html/language/ja_utf8/misc.php
deleted file mode 100644 (file)
index d118e72..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-// $Id: misc.php,v 1.1 2007/05/25 06:05:04 minahito Exp $
-define('_MSC_YOURNAMEC','あなたの名前: ');
-define('_MSC_YOUREMAILC','あなたのEmail: ');
-define('_MSC_FRIENDNAMEC','友達の名前: ');
-define('_MSC_FRIENDEMAILC','友達のEmail: ');
-define('_MSC_RECOMMENDSITE','当サイトを友達に薦める');
-// %s is your site name
-define('_MSC_INTSITE','お薦めサイト: %s');
-define('_MSC_REFERENCESENT','当サイトを紹介するメールをあなたのお友達に送信しました。');
-define('_MSC_ENTERYNAME','あなたの名前を入力してください。');
-define('_MSC_ENTERFNAME','お友達の名前を入力してください。');
-define('_MSC_ENTERFMAIL','お友達のメールアドレスを入力してください。');
-define('_MSC_NEEDINFO','必要なデータがすべて入力されていません。');
-define('_MSC_INVALIDEMAIL1','不正なメールアドレスです。');
-define('_MSC_INVALIDEMAIL2','メールアドレスが正しいかどうか確認してください。');
-?>
\ No newline at end of file
diff --git a/public_html/modules/legacy/actions/MiscFriendAction.class.php b/public_html/modules/legacy/actions/MiscFriendAction.class.php
deleted file mode 100644 (file)
index 0e55b19..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-/**
- *
- * @package Legacy
- * @version $Id: MiscFriendAction.class.php,v 1.4 2008/09/25 15:12:07 kilica Exp $
- * @copyright Copyright 2005-2007 XOOPS Cube Project  <http://xoopscube.sourceforge.net/> 
- * @license http://xoopscube.sourceforge.net/license/GPL_V2.txt GNU GENERAL PUBLIC LICENSE Version 2
- *
- */
-
-if (!defined('XOOPS_ROOT_PATH')) exit();
-
-require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractListAction.class.php";
-require_once XOOPS_MODULE_PATH . "/legacy/forms/MiscFriendForm.class.php";
-
-class Legacy_MiscFriendAction extends Legacy_Action
-{
-       var $mActionForm = null;
-       var $mMailer = null;
-       
-       function hasPermission(&$controller, &$xoopsUser)
-       {
-               return is_object($xoopsUser);
-       }
-
-       function prepare(&$controller, &$xoopsUser)
-       {
-               $this->mActionForm =& new Legacy_MiscFriendForm();
-               $this->mActionForm->prepare();
-       }
-
-       function getDefaultView(&$controller, &$xoopsUser)
-       {
-               $this->mActionForm->load($xoopsUser);
-               return LEGACY_FRAME_VIEW_INPUT;
-       }
-       
-       function execute(&$controller, &$xoopsUser)
-       {
-               $this->mActionForm->fetch();
-               $this->mActionForm->validate();
-               
-               if ($this->mActionForm->hasError()) {
-                       return LEGACY_FRAME_VIEW_INPUT;
-               }
-               
-               $root =& XCube_Root::getSingleton();
-               
-               $this->mMailer =& getMailer();
-               $this->mMailer->setTemplate("tellfriend.tpl");
-               $this->mMailer->assign("SITENAME", $root->mContext->getXoopsConfig('sitename'));
-               $this->mMailer->assign("ADMINMAIL", $root->mContext->getXoopsConfig('adminmail'));
-               $this->mMailer->assign("SITEURL", XOOPS_URL . '/');
-               
-               $this->mActionForm->update($this->mMailer);
-               
-               $root->mLanguageManager->loadPageTypeMessageCatalog("misc");
-               
-               $this->mMailer->setSubject(sprintf(_MSC_INTSITE, $root->mContext->getXoopsConfig('sitename')));
-               
-               return $this->mMailer->send() ? LEGACY_FRAME_VIEW_SUCCESS : LEGACY_FRAME_VIEW_ERROR;
-       }
-       
-       function executeViewInput(&$controller, &$xoopsUser, &$render)
-       {
-               $render->setTemplateName("legacy_misc_friend.html");
-               $render->setAttribute('actionForm', $this->mActionForm);
-       }
-
-       function executeViewSuccess(&$controller, &$xoopsUser, &$render)
-       {
-               $render->setTemplateName("legacy_misc_friend_success.html");
-       }
-
-       function executeViewError(&$controller, &$xoopsUser, &$render)
-       {
-               $render->setTemplateName("legacy_misc_friend_error.html");
-               $render->setAttribute('xoopsMailer', $this->mMailer);
-       }
-}
-
-?>
diff --git a/public_html/modules/legacy/forms/MiscFriendForm.class.php b/public_html/modules/legacy/forms/MiscFriendForm.class.php
deleted file mode 100644 (file)
index b496e94..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/**
- *
- * @package Legacy
- * @version $Id: MiscFriendForm.class.php,v 1.3 2008/09/25 15:12:39 kilica Exp $
- * @copyright Copyright 2005-2007 XOOPS Cube Project  <http://xoopscube.sourceforge.net/> 
- * @license http://xoopscube.sourceforge.net/license/GPL_V2.txt GNU GENERAL PUBLIC LICENSE Version 2
- *
- */
-
-if (!defined('XOOPS_ROOT_PATH')) exit();
-
-require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php";
-require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php";
-
-class Legacy_MiscFriendForm extends XCube_ActionForm
-{
-       function getTokenName()
-       {
-               return "module.legacy.MiscFriendForm.TOKEN";
-       }
-
-       function prepare()
-       {
-               //
-               // Set form properties
-               //
-               $this->mFormProperties['yname'] =& new XCube_StringProperty('yname');
-               $this->mFormProperties['ymail'] =& new XCube_StringProperty('ymail');
-               $this->mFormProperties['fname'] =& new XCube_StringProperty('fname');
-               $this->mFormProperties['fmail'] =& new XCube_StringProperty('fmail');
-       
-               //
-               // Set field properties
-               //
-       
-               $this->mFieldProperties['yname'] =& new XCube_FieldProperty($this);
-               $this->mFieldProperties['yname']->setDependsByArray(array('required'));
-               $this->mFieldProperties['yname']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_YNAME);
-       
-               $this->mFieldProperties['ymail'] =& new XCube_FieldProperty($this);
-               $this->mFieldProperties['ymail']->setDependsByArray(array('required','email'));
-               $this->mFieldProperties['ymail']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_YMAIL);
-               $this->mFieldProperties['ymail']->addMessage('required', _MD_LEGACY_ERROR_EMAIL, _MD_LEGACY_LANG_YMAIL);
-       
-               $this->mFieldProperties['fname'] =& new XCube_FieldProperty($this);
-               $this->mFieldProperties['fname']->setDependsByArray(array('required'));
-               $this->mFieldProperties['fname']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_FNAME);
-       
-               $this->mFieldProperties['fmail'] =& new XCube_FieldProperty($this);
-               $this->mFieldProperties['fmail']->setDependsByArray(array('required','email'));
-               $this->mFieldProperties['fmail']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_FMAIL);
-               $this->mFieldProperties['fmail']->addMessage('email', _MD_LEGACY_ERROR_EMAIL, _MD_LEGACY_LANG_FMAIL);
-       }
-       
-       function load(&$user)
-       {
-               $this->set('yname', $user->get('uname'));
-               $this->set('ymail', $user->get('email'));
-       }
-       
-       function update(&$mailer)
-       {
-               $mailer->assign("YOUR_NAME", $this->get('yname'));
-               $mailer->assign("FRIEND_NAME", $this->get('fname'));
-               $mailer->setToEmails($this->get('fmail'));
-               $mailer->setFromEmail($this->get('ymail'));
-               $mailer->setFromName($this->get('yname'));
-       }
-}
-
-?>
index 21a53bc..f60e6a4 100644 (file)
@@ -3,25 +3,16 @@ define("_MB_LEGACY_HOME",  "Home");
 
 define("_MB_LEGACY_VACNT", "View Account");
 define("_MB_LEGACY_EACNT", "Edit Account");
-define("_MB_LEGACY_INBOX", "Inbox");
 define("_MB_LEGACY_LOUT",  "Logout");
 define("_MB_LEGACY_ADMENU","Administration Menu");
 
 define("_MB_LEGACY_SEARCH","Search");
 define("_MB_LEGACY_ADVS",  "Advanced Search");
 
-define("_MB_LEGACY_RECO",  "Recommend Us");
-define("_MB_LEGACY_PWWIDTH", "Pop-Up Window Width");
-define("_MB_LEGACY_PWHEIGHT","Pop-Up Window Height");
-define("_MB_LEGACY_LOGO",    "Logo image file under %s directory");  // %s is your root image directory name
-define("_MB_LEGACY_SADMIN",  "Show admin groups");
-
 define("_MB_LEGACY_LANG_NUMTHEME", "%s themes");
 define('_MB_LEGACY_LANG_THSHOW', "Display screenshot image");
 define('_MB_LEGACY_LANG_THWIDTH', "Screenshot image width");
 
-define('_MB_LEGACY_LANG_RECOMMENDSITE', "Recommend this Site to a Friend");
-
 define('_MB_LEGACY_MESSAGE_CAN_NOT_THEME_CHANGE', "Sorry, you can't change themes now.");
 
 ?>
index 3eb4c49..562a455 100644 (file)
@@ -16,10 +16,7 @@ define('_MD_LEGACY_LANG_CODE', "Code");
 define('_MD_LEGACY_LANG_DOBR', "Insert line-break automatically");
 define('_MD_LEGACY_LANG_DOHTML', "Enable HTML tags");
 define('_MD_LEGACY_LANG_DOXCODE', "Enable XOOPS code");
-define('_MD_LEGACY_LANG_EMOTION', "Emoticon");
 define('_MD_LEGACY_LANG_ERROR', "error");
-define('_MD_LEGACY_LANG_FMAIL', "Friend's Email");
-define('_MD_LEGACY_LANG_FNAME', "Friend's Name");
 define('_MD_LEGACY_LANG_MID', "mid");
 define('_MD_LEGACY_LANG_NEXT_PAGE', "Next page");
 define('_MD_LEGACY_LANG_OPTION', "Option");
@@ -27,8 +24,6 @@ define('_MD_LEGACY_LANG_POST', "Post");
 define('_MD_LEGACY_LANG_PREV_PAGE', "Prev. page");
 define('_MD_LEGACY_LANG_SHOW_ALL', "Show all");
 define('_MD_LEGACY_LANG_UID', "uid");
-define('_MD_LEGACY_LANG_YMAIL', "Your Email");
-define('_MD_LEGACY_LANG_YNAME', "Your Name");
 define('_MD_LEGACY_MESSAGE_INSTALL_COMPLETE_CONFIRM', "Install Complete!");
 define('_MD_LEGACY_MESSAGE_INSTALL_COMPLETE_WARNING', "Remove {0} directory to block anonymous attackers trying to use the installer.");
 define('_MD_LEGACY_MESSAGE_LOGGEDOUT', "You are now logged out.");
index ec4b01d..da69fda 100644 (file)
@@ -3,25 +3,16 @@ define("_MB_LEGACY_HOME",  "ホーム");
 
 define("_MB_LEGACY_VACNT", "アカウント情報");
 define("_MB_LEGACY_EACNT", "アカウント編集");
-define("_MB_LEGACY_INBOX", "受信箱");
 define("_MB_LEGACY_LOUT",  "ログアウト");
 define("_MB_LEGACY_ADMENU","管理者メニュー");
 
 define("_MB_LEGACY_SEARCH","検索");
 define("_MB_LEGACY_ADVS",  "高度な検索");
 
-define("_MB_LEGACY_RECO",  "当サイトを推薦する");
-define("_MB_LEGACY_PWWIDTH", "ポップアップウィンドウの横幅");
-define("_MB_LEGACY_PWHEIGHT","ポップアップウィンドウの高さ");
-define("_MB_LEGACY_LOGO",    "%s ディレクトリ内のロゴファイル名");  // %s is your root image directory name
-define("_MB_LEGACY_SADMIN",  "管理者グループを表示する");
-
 define("_MB_LEGACY_LANG_NUMTHEME", "%s テーマ");
 define("_MB_LEGACY_LANG_THSHOW", "スクリーンショット画像の表示");
 define("_MB_LEGACY_LANG_THWIDTH", "スクリーンショット画像のピクセル幅");
 
-define('_MB_LEGACY_LANG_RECOMMENDSITE', "当サイトを友達に薦める");
-
 define('_MB_LEGACY_MESSAGE_CAN_NOT_THEME_CHANGE', "ただいまテーマチェンジャーはご利用になれません");
 
 ?>
index 79c1900..cee233e 100644 (file)
@@ -16,10 +16,7 @@ define('_MD_LEGACY_LANG_CODE', "コード");
 define('_MD_LEGACY_LANG_DOBR', "改行を自動挿入する");
 define('_MD_LEGACY_LANG_DOHTML', "HTMLタグを有効にする");
 define('_MD_LEGACY_LANG_DOXCODE', "XOOPSコードを有効にする");
-define('_MD_LEGACY_LANG_EMOTION', "意味");
 define('_MD_LEGACY_LANG_ERROR', "エラー");
-define('_MD_LEGACY_LANG_FMAIL', "友達のEmail");
-define('_MD_LEGACY_LANG_FNAME', "友達の名前");
 define('_MD_LEGACY_LANG_MID', "mid");
 define('_MD_LEGACY_LANG_NEXT_PAGE', "次のページ");
 define('_MD_LEGACY_LANG_OPTION', "オプション");
@@ -27,8 +24,6 @@ define('_MD_LEGACY_LANG_POST', "投稿する");
 define('_MD_LEGACY_LANG_PREV_PAGE', "前のページ");
 define('_MD_LEGACY_LANG_SHOW_ALL', "すべて表示");
 define('_MD_LEGACY_LANG_UID', "uid");
-define('_MD_LEGACY_LANG_YMAIL', "あなたのEmail");
-define('_MD_LEGACY_LANG_YNAME', "あなたの名前");
 define('_MD_LEGACY_MESSAGE_INSTALL_COMPLETE_CONFIRM', "インストール完了!");
 define('_MD_LEGACY_MESSAGE_INSTALL_COMPLETE_WARNING', "あなたのサーバーに {0} ディレクトリが残っています。悪意のある攻撃者がこのインストールウィザードにアクセスできないようにする為に、このディレクトリを削除してください。");
 define('_MD_LEGACY_MESSAGE_LOGGEDOUT', "ログアウトしました。");
diff --git a/public_html/modules/legacy/templates/legacy_misc_friend.html b/public_html/modules/legacy/templates/legacy_misc_friend.html
deleted file mode 100644 (file)
index c23cbf0..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<{if $actionForm->hasError()}>
-<div class="errorMsg">
-  <ul>
-    <{foreach item=message from=$actionForm->getErrorMessages()}>
-      <li><{$message}></li>
-    <{/foreach}>
-  </ul>
-</div>
-<{/if}>
-<form action="./misc.php?type=friend" method="post">
-  <{xoops_token form=$actionForm}>
-  <table  width="100%" class="outer" cellspacing="1">
-    <tr>
-      <th colspan="2"><{$smarty.const._MB_LEGACY_LANG_RECOMMENDSITE}></th>
-    </tr>
-    <tr>
-      <td class='head'>
-        <input type='hidden' name='type' value='friend' />
-        <{$smarty.const._MD_LEGACY_LANG_YNAME}>
-      </td>
-      <td class='even'>
-        <{xoops_input type=text name=yname value=$actionForm->get('yname')}>
-      </td>
-    </tr>
-    <tr>
-      <td class='head'><{$smarty.const._MD_LEGACY_LANG_YMAIL}></td>
-      <td class='odd'>
-        <{xoops_input type=text name=ymail value=$actionForm->get('ymail')}>
-      </td>
-    </tr>
-    <tr>
-      <td class='head'><{$smarty.const._MD_LEGACY_LANG_FNAME}></td>
-      <td class='even'>
-        <{xoops_input type=text name=fname value=$actionForm->get('fname')}>
-      </td>
-    </tr>
-    <tr>
-      <td class='head'><{$smarty.const._MD_LEGACY_LANG_FMAIL}></td>
-      <td class='odd'>
-        <{xoops_input type=text name=fmail value=$actionForm->get('fmail')}>
-      </td>
-    </tr>
-    <tr>
-      <td class='head'>&nbsp;</td>
-      <td class='even'>
-        <input type='submit' value='<{$smarty.const._SUBMIT}>' />&nbsp;
-        <input value='<{$smarty.const._CLOSE}>' type='button' onclick='javascript:window.close();' />
-      </td>
-    </tr>
-  </table>
-</form>
\ No newline at end of file
diff --git a/public_html/modules/legacy/templates/legacy_misc_friend_error.html b/public_html/modules/legacy/templates/legacy_misc_friend_error.html
deleted file mode 100644 (file)
index 6867825..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<{$xoopsMailer->getErrors()}>
diff --git a/public_html/modules/legacy/templates/legacy_misc_friend_success.html b/public_html/modules/legacy/templates/legacy_misc_friend_success.html
deleted file mode 100644 (file)
index 8b97d8c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<div class="resultMsg">
-  <h4><{$smarty.const._MSC_REFERENCESENT}></h4>
-
-  <br />
-  <br />
-  &raquo;&raquo;<a href="<{$xoops_url}>/"><{$smarty.const._MAIN}></a>
-  <br />
-</div>
index 8cd214b..fc9e412 100644 (file)
@@ -54,12 +54,6 @@ $modversion['templates'][20]['file'] = 'legacy_search_showall.html';
 $modversion['templates'][20]['description'] = '';
 $modversion['templates'][21]['file'] = 'legacy_search_showallbyuser.html';
 $modversion['templates'][21]['description'] = '';
-$modversion['templates'][25]['file'] = 'legacy_misc_friend.html';
-$modversion['templates'][25]['description'] = '';
-$modversion['templates'][26]['file'] = 'legacy_misc_friend_success.html';
-$modversion['templates'][26]['description'] = '';
-$modversion['templates'][27]['file'] = 'legacy_misc_friend_error.html';
-$modversion['templates'][27]['description'] = '';
 $modversion['templates'][28]['file'] = 'legacy_xoopsform_checkbox.html';
 $modversion['templates'][28]['description'] = 'The embedded template for the checkbox of the xoopsform.';
 $modversion['templates'][29]['file'] = 'legacy_xoopsform_button.html';