Location: PHPKode > projects > Adminiature > adminiature-0.0.3rc1/index.php
<?php

/**
 * @author Can Ince <hide@address.com>
 * @copyright copyright @ 2007 by Can Ince.
 * @license http://www.gnu.org/licenses/gpl.html
 * @version 0.0.3
 * @package Adminiature
 */

session_start();
error_reporting(0); //for production environments...
if(@$_POST['lang']) {
$_SESSION['lang']=$_POST['lang'];
}
set_time_limit(0);
require_once "config.php";
define('_VALID_MODULE','1');
$mysqli = new mysqli(__HOST__, __USER__, __DB_PASSWORD__);
/*if (mysqli_connect_errno()) {

   // printf("Connect failed: %s<br />", mysqli_connect_error());
	echo "<script>top.location='login.php';</script>";
    exit();
}*/
$mysqli->set_charset("utf8");
require_once "impex.class.php";
require_once "moduleHandler.class.php";
require_once "functions.php";
require_once "xajax.inc.php";
$xajax = new xajax();
$xajax->errorHandlerOff(); //for production environments...
$paginationVal=__PAGINATION_VAL_;

require_once "server.php";
loadModules();
$xajax->registerPreFunction("checkSession");
$xajax->registerFunction("showDatabases");
$xajax->registerFunction("changeDbShowTables");
$xajax->registerFunction("showTableFields");
$xajax->registerFunction("editField");
$xajax->registerFunction("saveField");
$xajax->registerFunction("dropField");
$xajax->registerFunction("insertField");
$xajax->registerFunction("insertIndex");
$xajax->registerFunction("dropIndex");
$xajax->registerFunction("browse");
$xajax->registerFunction("editItem");
$xajax->registerFunction("deleteItem");
$xajax->registerFunction("updateEntry");
$xajax->registerFunction("queryBox");
$xajax->registerFunction("doQuery");
$xajax->registerFunction("insertBox");
$xajax->registerFunction("doInsert");
$xajax->registerFunction("truncateTable");
$xajax->registerFunction("dropTable");
$xajax->registerFunction("addTableBox");
$xajax->registerFunction("doCreateTable");
$xajax->registerFunction("exportTableBox");
$xajax->registerFunction("exportDbBox");
$xajax->registerFunction("importBox");
$xajax->registerFunction("deleteFile");
$xajax->registerFunction("emptyDb");
$xajax->registerFunction("restore");
$xajax->registerFunction("dropDb");
$xajax->registerFunction("displayDumpDb");
$xajax->registerFunction("createDb");
$xajax->registerFunction("downloadFile");
$xajax->registerFunction("logout");
$xajax->registerFunction("operationsBoxDb");
$xajax->registerFunction("operationsBox");
$xajax->registerFunction("renameCopyDb");
$xajax->registerFunction("renameCopyTable");
$xajax->registerFunction("maintenance");
registerModuleFunctions();
$xajax->processRequests();

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Adminiature <?php echo __VERSION_; ?></title><script type="text/javascript">
function hideDiv(divId) {
document.getElementById(divId).style.display='none';
}

function showDiv(divId) {
document.getElementById(divId).style.display='block';
}</script>
<link rel="stylesheet" type="text/css" href="style.css" /><?php
$xajax->printJavascript(); 
?></head>
<body onload="xajax_showDatabases()">
<div id="logoDiv"><a href="index.php" title="<?php echo lang('_MAIN_PAGE'); ?>"><img src="images/logo.jpg" alt="" border="0" /></a> <span class="dbLink"><?php echo lang("_WELCOME")." <b>".$_SESSION['userName']."</b>."; ?></span> <a href="index.php?logout=1" class="menuLink"><?php echo lang("_LOGOUT"); ?></a></div>
<div id="mainDiv">
	<div class="leftDiv" id="leftDiv">
		<div id="dblist" class="dblist"></div>
	</div> <!-- left div -->
	<div class="rightDiv" id="rightDiv">
<span class="fieldsTable"><?php echo lang("_CREATE_DB"); ?>:</span><br /><input type="text" name="newDb" class="text" id="newDb" />&nbsp;<a href="javascript:;" class="button1" onclick="xajax_createDb(document.getElementById('newDb').value);" />&nbsp;<?php echo lang('_GO'); ?>&nbsp;</a><br /><span class="fieldsTable"><?php echo lang("_SELECT_LANG").":&nbsp;".selectLang(__DEFAULT_LANG_); ?></span><br /><br />
<?php echo serverMenuMods (); ?>
	</div> <!-- right div -->
</div> <!-- main div -->

</body></html><?php 
$mysqli->close(); ?>
Return current item: Adminiature