<?php
/**
 * 'Tools' is a small admin-tool-module to provide some autotasks for icms and some more..
 *
 * File: /admin/index.php
 *
 * admin file
 *
 * @copyright	Copyright QM-B (Steffen Flohrer) 2013
 * @license		CC Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
 * ----------------------------------------------------------------------------------------------------------
 * 				Tools
 * @since		1.00
 * @author		QM-B <qm-b@hotmail.de>
 * @version		$Id: index.php 276 2013-07-18 09:10:36Z qm-b $
 * @version		$Revision: 276 $
 * @package		tools
 *
 */

include_once 'admin_header.php';
//header("Location: tools.php");
//exit;




icms_cp_header();
echo "12345"

//icms::$module->displayAdminMenu( 0, _MI_TOOLS_MENU_INDEX);
include( './mymenu.php' ) ;
icms::$module->setVar("ipf", TRUE);
icms::$module->registerClassPath(TRUE);
$logPath = TOOLS_TRUST_PATH.'logs/';
$toolsConfig = icms_getModuleConfig(TOOLS_DIRNAME);
$icmsAdminTpl->display("db:tools_admin.html");
$extensions = get_loaded_extensions();
echo "<div class=\"tools_information\">";
echo "<h2>"._AM_TOOLS_INDEX_SYS_INFO."</h2>";
echo "<ul>";
echo "<li>ICMS ROOT: ".ICMS_ROOT_PATH."</li>";
if(is_writable(TOOLS_TRUST_PATH)) {
	echo "<li>"._AM_TOOLS_INDEX_TRUST_WRITABLE."</li>";
} elseif(!is_writable(TOOLS_TRUST_PATH)) {
	echo "<li class=\"tools_error\">"._AM_TOOLS_INDEX_TRUST_NOT_WRITABLE . "(". TOOLS_TRUST_PATH . ")</li>";
}
if(in_array("ftp", $extensions)) {
	echo "<li>"._AM_TOOLS_INDEX_FTP_LOADED."</li>";
} else {
	echo "<li class=\"tools_error\">"._AM_TOOLS_INDEX_FTP_NOT_LOADED."</li>";
}
if(in_array("zip", $extensions)) {
	echo "<li>"._AM_TOOLS_INDEX_ZIP_LOADED."</li>";
} else {
	echo "<li class=\"tools_error\">"._AM_TOOLS_INDEX_ZIP_NOT_LOADED."</li>";
}
if(XOOPS_DB_TYPE == "mysql") {
	echo "<li>"."DB-Type: ".mysql_get_server_info()."</li>";
} else {
	echo "<li>"."DB-Type: ".XOOPS_DB_TYPE."</li>";
}


echo "</ul>";
echo "</div>";
include_once 'admin_footer.php';
