<?php

if (!defined('XOOPS_ROOT_PATH')) exit();

if (!defined('XDBMIGRATE_TRUST_PATH'))
  define('XDBMIGRATE_TRUST_PATH',XOOPS_TRUST_PATH.'/modules/xdbmigrate');


$root =& XCube_Root::getSingleton();
$mLanguageName = $root->mLanguageManager->getLocale();
$filename = XDBMIGRATE_TRUST_PATH.'/language/'.$mLanguageName.'/modinfo.php';
if (!file_exists($filename)) {
	$filename = XDBMIGRATE_TRUST_PATH.'/language/english/modinfo.php';
}
require_once $filename;

$modversion['name'] = _MI_XDBMIGRATE_NAME;
$modversion['version'] = 1.01;
$modversion['description'] = _MI_XDBMIGRATE_DESC;
$modversion['credits'] =
  "RIKEN, Japan (http://www.riken.jp/)";
$modversion['author'] =
  "The XooNIps Project (http://sourceforge.jp/projects/xoonips/)";
$modversion['help'] = "help.html";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "images/logo.png";
$modversion['dirname'] = "xdbmigrate";
$modversion['trust_dirname'] = 'xdbmigrate';

$modversion['legacy_installer'] = array(
	'installer'   => array(
		'class' 	=> 'Installer',
		'namespace' => 'Xdbmigrate',
		'filepath'	=> XOOPS_TRUST_PATH . '/modules/xdbmigrate/admin/class/installer/XdbmigrateInstaller.class.php'
	),
	'uninstaller' => array(
		'class' 	=> 'Uninstaller',
		'namespace' => 'Xdbmigrate',
		'filepath'	=> XOOPS_TRUST_PATH . '/modules/xdbmigrate/admin/class/installer/XdbmigrateUninstaller.class.php'
	)
);

//Table
$modversion['cube_style'] = true;
$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
$modversion['tables'][0] = "xdbmigrate_status";
// Menu
$modversion['hasMain'] = 0;

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