<?php
// $Id: xoops_version.php,v 1.1.2.16 2006/03/29 13:52:01 nobunobu 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 //
//  ------------------------------------------------------------------------ //

$modversion['name'] = _MI_USER_NAME;
$modversion['version'] = 1.00;
$modversion['description'] = _MI_USER_NAME_DESC;
$modversion['author'] = "";
$modversion['credits'] = "The XOOPS Project";
$modversion['help'] = "help.html";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 1;
$modversion['image'] = "images/user.gif";
$modversion['dirname'] = "user";

// Admin things
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";

// Templates
$modversion['templates'][1]['file'] = 'user_userinfo.html';
$modversion['templates'][1]['description'] = 'Display a user information in userinfo.php';

$modversion['templates'][2]['file'] = 'user_userform.html';
$modversion['templates'][2]['description'] = 'Display login and register page to anonymouse user';

$modversion['templates'][3]['file'] = 'user_edituser.html';
$modversion['templates'][3]['description'] = 'When user edit own information, display this';

$modversion['templates'][4]['file'] = 'user_register_form.html';
$modversion['templates'][4]['description'] = '';

$modversion['templates'][5]['file'] = 'user_register_confirm.html';
$modversion['templates'][5]['description'] = '';

$modversion['templates'][6]['file'] = 'user_lostpass.html';
$modversion['templates'][6]['description'] = '';

$modversion['templates'][7]['file'] = 'user_default.html';
$modversion['templates'][7]['description'] = '';

$modversion['templates'][8]['file'] = 'user_avatar_edit.html';
$modversion['templates'][8]['description'] = '';

$modversion['templates'][9]['file'] = 'user_register_finish.html';
$modversion['templates'][9]['description'] = '';

//Preference
$modversion['config'][]=array (
		"name"=>"allow_register",
		"title"=>"_MI_USER_CONF_ALLOW_REGISTER",
		"description"=>"_MI_USER_CONF_ALLOW_REGISTER_DESC",
		"formtype"=>"yesno",
		"valuetype"=>"int",
		"default"=>1
	);

$modversion['config'][]=array (
		"name"=>"minpass",
		"title"=>"_MI_USER_CONF_MINPASS",
		"formtype"=>"text",
		"valuetype"=>"int",
		"default"=>5
	);

$modversion['config'][]=array (
		"name"=>"minuname",
		"title"=>"_MI_USER_CONF_MINUNAME",
		"formtype"=>"text",
		"valuetype"=>"int",
		"default"=>3
	);

$modversion['config'][]=array (
		"name"=>"maxuname",
		"title"=>"_MI_USER_CONF_MAXUNAME",
		"formtype"=>"text",
		"valuetype"=>"int",
		"default"=>10
	);

$modversion['config'][]=array (
		"name"=>"allow_chgmail",
		"title"=>"_MI_USER_CONF_CHGMAIL",
		"formtype"=>"yesno",
		"valuetype"=>"int",
		"default"=>0
	);

$modversion['config'][]=array (
		"name"=>"new_user_notify",
		"title"=>"_MI_USER_CONF_NEW_USER_NOTIFY",
		"formtype"=>"yesno",
		"valuetype"=>"int",
		"default"=>1
	);

$modversion['config'][]=array (
		"name"=>"new_user_notify_group",
		"title"=>"_MI_USER_CONF_NEW_NTF_GROUP",
		"formtype"=>"group",
		"valuetype"=>"int",
		"default"=>1
	);

$modversion['config'][]=array (
		"name"=>"activation_type",
		"title"=>"_MI_USER_CONF_ACTV_TYPE",
		"formtype"=>"select",
		"options"=>array("_MI_USER_CONF_ACTV_USER"=>0,"_MI_USER_CONF_ACTV_AUTO"=>1,"_MI_USER_CONF_ACTV_ADMIN"=>2),
		"valuetype"=>"int",
		"default"=>0
	);

$modversion['config'][]=array (
		"name"=>"activation_group",
		"title"=>"_MI_USER_CONF_ACTV_GROUP",
		"description"=>"_MI_USER_CONF_ACTV_GROUP_DESC",
		"formtype"=>"group",
		"valuetype"=>"int",
		"default"=>1
	);

$modversion['config'][]=array (
		"name"=>"uname_test_level",
		"title"=>"_MI_USER_CONF_UNAME_TEST_LEVEL",
		"formtype"=>"select",
		"options"=>array("_MI_USER_CONF_UNAME_TEST_LEVEL_STRONG"=>0,"_MI_USER_CONF_UNAME_TEST_LEVEL_NORMAL"=>1,"_MI_USER_CONF_UNAME_TEST_LEVEL_WEAK"=>2),
		"valuetype"=>"int",
		"default"=>1
	);

$modversion['config'][]=array (
		"name"=>"avatar_allow_upload",
		"title"=>"_MI_USER_CONF_AVTR_ALLOW_UP",
		"formtype"=>"yesno",
		"valuetype"=>"int",
		"default"=>0
	);

$modversion['config'][]=array (
		"name"=>"avatar_minposts",
		"title"=>"_MI_USER_CONF_AVATAR_MINPOSTS",
		"description"=>"_MI_USER_CONF_AVATAR_MINPOSTS_DESC",
		"formtype"=>"text",
		"valuetype"=>"int",
		"default"=>0
	);

$modversion['config'][]=array (
		"name"=>"avatar_width",
		"title"=>"_MI_USER_CONF_AVATAR_WIDTH",
		"formtype"=>"text",
		"valuetype"=>"int",
		"default"=>80
	);

$modversion['config'][]=array (
		"name"=>"avatar_height",
		"title"=>"_MI_USER_CONF_AVATAR_HEIGHT",
		"formtype"=>"text",
		"valuetype"=>"int",
		"default"=>80
	);

$modversion['config'][]=array (
		"name"=>"avatar_maxsize",
		"title"=>"_MI_USER_CONF_AVATAR_MAXSIZE",
		"formtype"=>"text",
		"valuetype"=>"int",
		"default"=>35000
	);

$modversion['config'][]=array (
		"name"=>"self_delete",
		"title"=>"_MI_USER_CONF_SELF_DELETE",
		"formtype"=>"yesno",
		"valuetype"=>"int",
		"default"=>0
	);

$modversion['config'][]=array (
		"name"=>"bad_unames",
		"title"=>"_MI_USER_CONF_BAD_UNAMES",
		"description"=>"_MI_USER_CONF_BAD_UNAMES_DESC",
		"formtype"=>"textarea",
		"valuetype"=>"string",
		"default"=>"webmaster|^xoops|^admin"
	);

$modversion['config'][]=array (
		"name"=>"bad_emails",
		"title"=>"_MI_USER_CONF_BAD_EMAILS",
		"description"=>"_MI_USER_CONF_BAD_EMAILS_DESC",
		"formtype"=>"textarea",
		"valuetype"=>"string",
		"default"=>"xoopscube.org$|xoopscube.jp$"
	);

$modversion['config'][]=array (
		"name"=>"reg_dispdsclmr",
		"title"=>"_MI_USER_CONF_DISPDSCLMR",
		"description"=>"_MI_USER_CONF_DISPDSCLMR_DESC",
		"formtype"=>"yesno",
		"valuetype"=>"int",
		"default"=>0
	);

$modversion['config'][]=array (
		"name"=>"reg_disclaimer",
		"title"=>"_MI_USER_CONF_DISCLAIMER",
		"description"=>"_MI_USER_CONF_DISCLAIMER_DESC",
		"formtype"=>"textarea",
		"valuetype"=>"string",
		"default"=>""
	);

// Menu
$modversion['hasMain'] = 1;
$modversion['read_any'] = true;

// Block
$modversion['blocks'][1]['file'] = "user_login.php";
$modversion['blocks'][1]['name'] = _MI_USER_BLOCK_LOGIN_NAME;
$modversion['blocks'][1]['description'] = _MI_USER_BLOCK_LOGIN_DESC;
$modversion['blocks'][1]['show_func'] = "b_user_login_show";
$modversion['blocks'][1]['template'] = 'user_block_login.html';
$modversion['blocks'][1]['visible_any'] = true;
$modversion['blocks'][1]['show_all_module'] = true;

$modversion['blocks'][2]['file'] = "user_online.php";
$modversion['blocks'][2]['name'] = _MI_USER_BLOCK_ONLINE_NAME;
$modversion['blocks'][2]['description'] = _MI_USER_BLOCK_ONLINE_DESC;
$modversion['blocks'][2]['show_func'] = "b_user_online_show";
$modversion['blocks'][2]['template'] = 'user_block_online.html';
$modversion['blocks'][3]['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;
$modversion['blocks'][4]['show_func'] = "b_user_topusers_show";
$modversion['blocks'][4]['template'] = 'user_block_topusers.html';
$modversion['blocks'][4]['edit_func'] = "b_user_topusers_edit";
$modversion['blocks'][4]['options'] = "10|1";
$modversion['blocks'][4]['show_all_module'] = true;
?>
