<?php
//  ------------------------------------------------------------------------ //
//                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 //
//  ------------------------------------------------------------------------ //
//            This module; ThemeChanger Copyright (c) 2005 suin              //
//                          <http://www.suin.jp>                             //
//  ------------------------------------------------------------------------ //

if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;
$mydirname = basename( dirname( __FILE__ ) ) ;

$modversion['name'] 	   = _MI_THEMEC_NAME;
$modversion['version']	   = 2.5;
$modversion['description'] = _MI_THEMEC_DESC;
$modversion['help']	   = "ReadMe-Japanese.htm";
$modversion['author']	   = "suin<br /><a href=\"http://www.suin.jp/\">www.suin.jp</a>";
$modversion['credits']	   = "suin";
$modversion['license']	   = "GPL see LICENSE";
$modversion['official']	   = 0;
$modversion['image']	   = "images/theme_changer_logo.png";
$modversion['dirname']	   = $mydirname;

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

// SQL
$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
$modversion['tables'][0] = "ctem_link";
$modversion['tables'][1] = "ctem_pagelink";

// Menu
$modversion['hasMain'] = 0;

// Blocks
$modversion['blocks'][1]['file']        = "theme.php";
$modversion['blocks'][1]['name']        = _MI_THEME_SELECT;
$modversion['blocks'][1]['description'] = _MI_THEME_SELECT_DESC;
$modversion['blocks'][1]['show_func']   = "b_theme_select_show";
$modversion['blocks'][1]['edit_func']   = "b_theme_select_edit";
$modversion['blocks'][1]['options']     = "3|1|0|80";

// Notification
$modversion['hasNotification'] = 0;

// onUpdate
if( ! empty( $_POST['fct'] ) && ! empty( $_POST['op'] ) && $_POST['fct'] == 'modulesadmin' && $_POST['op'] == 'update_ok' && $_POST['dirname'] == $modversion['dirname'] ) {
	include( XOOPS_ROOT_PATH. "/modules/" .$mydirname . "/include/onupdate.inc.php" );
}

?>