A perticular db could be displayed as the first page (feature #432402)
This commit is contained in:
@@ -9,6 +9,11 @@ $Source$
|
|||||||
* The 'bkg.gif' was somewhat corrupted (it caused some annoying problems
|
* The 'bkg.gif' was somewhat corrupted (it caused some annoying problems
|
||||||
with NS4+). Fixed thanks to Laurent Hass.
|
with NS4+). Fixed thanks to Laurent Hass.
|
||||||
* Added Japanese and Korean translation from Sakamoto <info@boreal-net.com>
|
* Added Japanese and Korean translation from Sakamoto <info@boreal-net.com>
|
||||||
|
* index.php3, line 3: get the vars sent to this script whatever is the
|
||||||
|
status of the register globals directive.
|
||||||
|
* index.php3, left.php3 & left.js: a perticular database could be displayed
|
||||||
|
as the first page, instead of the main.php3 thanks to Kristof Hamann
|
||||||
|
(feature #432402).
|
||||||
|
|
||||||
2001-06-17 Robin Johnson <robbat2@orbis-terrarum.net>
|
2001-06-17 Robin Johnson <robbat2@orbis-terrarum.net>
|
||||||
* Fixed the '<?' tags in user_details.php3 to proper '<?php' to work on a
|
* Fixed the '<?' tags in user_details.php3 to proper '<?php' to work on a
|
||||||
|
@@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
// Process config file to determine default server (if any)
|
// Process config file to determine default server (if any)
|
||||||
|
require('./grab_globals.inc.php3');
|
||||||
require('./lib.inc.php3');
|
require('./lib.inc.php3');
|
||||||
|
|
||||||
|
|
||||||
// Get the host name
|
// Get the host name
|
||||||
if (empty($HTTP_HOST)) {
|
if (empty($HTTP_HOST)) {
|
||||||
if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['HTTP_HOST'])) {
|
if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['HTTP_HOST'])) {
|
||||||
@@ -19,8 +21,8 @@ if (empty($HTTP_HOST)) {
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<frameset cols="150,*" rows="*" border="0" frameborder="0">
|
<frameset cols="150,*" rows="*" border="0" frameborder="0">
|
||||||
<frame src="left.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>" name="nav">
|
<frame src="left.php3?server=<?php echo $server;?>&lang=<?php echo $lang; echo (empty($db)) ? '' : '&db=' . urlencode($db); ?>" name="nav">
|
||||||
<frame src="main.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>" name="phpmain">
|
<frame src="<?php echo (empty($db)) ? 'main.php3' : 'db_details.php3'; ?>?server=<?php echo $server;?>&lang=<?php echo $lang; echo (empty($db)) ? '' : '&db=' . urlencode($db); ?>" name="phpmain">
|
||||||
</frameset>
|
</frameset>
|
||||||
<noframes>
|
<noframes>
|
||||||
<body bgcolor="#FFFFFF">
|
<body bgcolor="#FFFFFF">
|
||||||
|
12
left.js
12
left.js
@@ -141,7 +141,9 @@ function initIt()
|
|||||||
var tempColl = document.getElementsByTagName('DIV');
|
var tempColl = document.getElementsByTagName('DIV');
|
||||||
var tempCollCnt = tempColl.length;
|
var tempCollCnt = tempColl.length;
|
||||||
for (var i = 0; i < tempCollCnt; i++) {
|
for (var i = 0; i < tempCollCnt; i++) {
|
||||||
if (tempColl[i].className == 'child')
|
if (tempColl[i].id == expandedDb)
|
||||||
|
tempColl[i].style.display = 'block';
|
||||||
|
else if (tempColl[i].className == 'child')
|
||||||
tempColl[i].style.display = 'none';
|
tempColl[i].style.display = 'none';
|
||||||
}
|
}
|
||||||
} // end of the DOM case
|
} // end of the DOM case
|
||||||
@@ -149,7 +151,9 @@ function initIt()
|
|||||||
tempColl = document.all.tags('DIV');
|
tempColl = document.all.tags('DIV');
|
||||||
var tempCollCnt = tempColl.length;
|
var tempCollCnt = tempColl.length;
|
||||||
for (var i = 0; i < tempCollCnt; i++) {
|
for (var i = 0; i < tempCollCnt; i++) {
|
||||||
if (tempColl(i).className == 'child')
|
if (tempColl(i).id == expandedDb)
|
||||||
|
tempColl(i).style.display = 'block';
|
||||||
|
else if (tempColl(i).className == 'child')
|
||||||
tempColl(i).style.display = 'none';
|
tempColl(i).style.display = 'none';
|
||||||
}
|
}
|
||||||
} // end of the IE4 case
|
} // end of the IE4 case
|
||||||
@@ -157,7 +161,9 @@ function initIt()
|
|||||||
var theLayers = document.layers;
|
var theLayers = document.layers;
|
||||||
var layersCnt = theLayers.length;
|
var layersCnt = theLayers.length;
|
||||||
for (var i = 0; i < layersCnt; i++) {
|
for (var i = 0; i < layersCnt; i++) {
|
||||||
if (theLayers[i].id.indexOf('Child') != -1)
|
if (theLayers[i].id == expandedDb)
|
||||||
|
theLayers[i].visibility = 'show';
|
||||||
|
else if (theLayers[i].id.indexOf('Child') != -1)
|
||||||
theLayers[i].visibility = 'hide';
|
theLayers[i].visibility = 'hide';
|
||||||
else
|
else
|
||||||
theLayers[i].visibility = 'show';
|
theLayers[i].visibility = 'show';
|
||||||
|
@@ -1,6 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
// Get the db name that may have been required for startup
|
||||||
|
require('./grab_globals.inc.php3');
|
||||||
|
if (!empty($db)) $db_start = $db;
|
||||||
|
|
||||||
require("./lib.inc.php3");
|
require("./lib.inc.php3");
|
||||||
header('Content-Type: text/html; charset=' . $charset);
|
header('Content-Type: text/html; charset=' . $charset);
|
||||||
?>
|
?>
|
||||||
@@ -33,6 +37,7 @@ body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
|
|||||||
<?php echo $strHome;?> </FONT></A>
|
<?php echo $strHome;?> </FONT></A>
|
||||||
</DIV>
|
</DIV>
|
||||||
<?php
|
<?php
|
||||||
|
$selected_db = 0;
|
||||||
// Don't display database info if $server==0 (no server selected)
|
// Don't display database info if $server==0 (no server selected)
|
||||||
// This is the case when there are multiple servers and
|
// This is the case when there are multiple servers and
|
||||||
// '$cfgServerDefault = 0' is set. In that case, we want the welcome
|
// '$cfgServerDefault = 0' is set. In that case, we want the welcome
|
||||||
@@ -55,7 +60,8 @@ if($server > 0)
|
|||||||
$db = mysql_dbname($dbs, $i);
|
$db = mysql_dbname($dbs, $i);
|
||||||
else
|
else
|
||||||
$db = $dblist[$i];
|
$db = $dblist[$i];
|
||||||
$j = $i + 2;
|
$j = $i + 2;
|
||||||
|
if (!empty($db_start) && $db == $db_start) $selected_db = $j;
|
||||||
// few changes, staybyte
|
// few changes, staybyte
|
||||||
$tables = mysql_list_tables($db);
|
$tables = mysql_list_tables($db);
|
||||||
$num_tables = @mysql_numrows($tables);
|
$num_tables = @mysql_numrows($tables);
|
||||||
@@ -95,6 +101,7 @@ if($server > 0)
|
|||||||
nsShowAll();
|
nsShowAll();
|
||||||
nsArrangeList();
|
nsArrangeList();
|
||||||
}
|
}
|
||||||
|
expandedDb = '<?php echo (empty($selected_db)) ? '' : 'el' . $selected_db . 'Child'; ?>';
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
Reference in New Issue
Block a user