OSDN Git Service

#16813 - Remove new users block files.
authormumin <mumincacao@users.sourceforge.jp>
Thu, 21 May 2009 12:52:46 +0000 (21:52 +0900)
committermumin <mumincacao@users.sourceforge.jp>
Thu, 21 May 2009 12:52:46 +0000 (21:52 +0900)
public_html/modules/user/blocks/user_newusers.php [deleted file]
public_html/modules/user/language/english/modinfo.php
public_html/modules/user/language/ja_utf8/modinfo.php
public_html/modules/user/xoops_version.php

diff --git a/public_html/modules/user/blocks/user_newusers.php b/public_html/modules/user/blocks/user_newusers.php
deleted file mode 100644 (file)
index a7ff180..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-function b_user_newusers_show($options)
-{
-    $block = array();
-    $criteria = new CriteriaCompo(new Criteria('level', 0, '>'));
-    $limit = (!empty($options[0])) ? $options[0] : 10;
-    $criteria->setOrder('DESC');
-    $criteria->setSort('user_regdate');
-    $criteria->setLimit($limit);
-    $member_handler =& xoops_gethandler('member');
-    $newmembers =& $member_handler->getUsers($criteria);
-    $count = count($newmembers);
-    for ($i = 0; $i < $count; $i++) {
-        if ( $options[1] == 1 ) {
-            $block['users'][$i]['avatar'] = $newmembers[$i]->getVar('user_avatar') != 'blank.gif' ? XOOPS_UPLOAD_URL.'/'.$newmembers[$i]->getVar('user_avatar') : '';
-        } else {
-            $block['users'][$i]['avatar'] = '';
-        }
-        $block['users'][$i]['id'] = $newmembers[$i]->getVar('uid');
-        $block['users'][$i]['name'] = $newmembers[$i]->getVar('uname');
-        $block['users'][$i]['joindate'] = $newmembers[$i]->getVar('user_regdate');
-    }
-    return $block;
-}
-
-function b_user_newusers_edit($options)
-{
-    $inputtag = '<input type="text" name="options[]" value="'.$options[0].'" />';
-    $form = sprintf(_MB_USER_DISPLAY,$inputtag);
-    $form .= '<br />'._MB_USER_DISPLAYA.'&nbsp;<input type="radio" id="options[]" name="options[]" value="1"';
-    if ( $options[1] == 1 ) {
-        $form .= ' checked="checked"';
-    }
-    $form .= ' />&nbsp;'._YES.'<input type="radio" id="options[]" name="options[]" value="0"';
-    if ( $options[1] == 0 ) {
-        $form .= ' checked="checked"';
-    }
-    $form .= ' />&nbsp;'._NO;
-    return $form;
-}
-?>
index ead138d..2f770ad 100644 (file)
@@ -9,8 +9,6 @@ define('_MI_USER_ADMENU_RANK_LIST', "User Rank Manager");
 define('_MI_USER_ADMENU_USER_SEARCH', "User Search");
 define('_MI_USER_BLOCK_LOGIN_DESC', "Shows login form");
 define('_MI_USER_BLOCK_LOGIN_NAME', "Login");
-define('_MI_USER_BLOCK_NEWUSERS_DESC', "Shows most recent users");
-define('_MI_USER_BLOCK_NEWUSERS_NAME', "New Members");
 define('_MI_USER_BLOCK_TOPUSERS_DESC', "Top posters");
 define('_MI_USER_BLOCK_TOPUSERS_NAME', "Top Posters");
 define('_MI_USER_CONF_ACTV_ADMIN', "Activation by administrators");
index 201f401..644da74 100644 (file)
@@ -9,8 +9,6 @@ define('_MI_USER_ADMENU_RANK_LIST', "ユーザーランク管理");
 define('_MI_USER_ADMENU_USER_SEARCH', "ユーザー検索");
 define('_MI_USER_BLOCK_LOGIN_DESC', "ログインフォームを表示します");
 define('_MI_USER_BLOCK_LOGIN_NAME', "ログイン");
-define('_MI_USER_BLOCK_NEWUSERS_DESC', "新しい登録ユーザの一覧を表示します");
-define('_MI_USER_BLOCK_NEWUSERS_NAME', "新しい登録ユーザ");
 define('_MI_USER_BLOCK_TOPUSERS_DESC', "投稿数のランキングを表示します");
 define('_MI_USER_BLOCK_TOPUSERS_NAME', "投稿数ランキング");
 define('_MI_USER_CONF_ACTV_ADMIN', "管理者が確認してアカウントを有効にする");
index 6b31140..b98850c 100644 (file)
@@ -306,15 +306,6 @@ $modversion['blocks'][1]['template'] = 'user_block_login.html';
 $modversion['blocks'][1]['visible_any'] = true;
 $modversion['blocks'][1]['show_all_module'] = true;
 
-$modversion['blocks'][3]['file'] = "user_newusers.php";
-$modversion['blocks'][3]['name'] = _MI_USER_BLOCK_NEWUSERS_NAME;
-$modversion['blocks'][3]['description'] = _MI_USER_BLOCK_NEWUSERS_DESC;
-$modversion['blocks'][3]['show_func'] = "b_user_newusers_show";
-$modversion['blocks'][3]['template'] = 'user_block_newusers.html';
-$modversion['blocks'][3]['edit_func'] = "b_user_newusers_edit";
-$modversion['blocks'][3]['options'] = "10|1";
-$modversion['blocks'][3]['show_all_module'] = true;
-
 $modversion['blocks'][4]['file'] = "user_topusers.php";
 $modversion['blocks'][4]['name'] = _MI_USER_BLOCK_TOPUSERS_NAME;
 $modversion['blocks'][4]['description'] = _MI_USER_BLOCK_TOPUSERS_DESC;