Viewing File: /usr/local/cpanel/3rdparty/share/phpPgAdmin/index.php
<?php
/**
* Main access point to the app.
*
* $Id: index.php,v 1.13 2007/04/18 14:08:48 mr-russ Exp $
*/
// Include application functions
$_no_db_connection = true;
include_once('./libraries/lib.inc.php');
$misc->printHeader('', null, true);
$rtl = (strcasecmp($lang['applangdir'], 'rtl') == 0);
$cols = $rtl ? '*,'.$conf['left_width'] : $conf['left_width'].',*';
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['_originalPath'])) {
$newPath = basename($_POST['_originalPath']);
$mainframe = '<frame src="' . $newPath . '" name="detail" id="detail" frameborder="0" />';
} else {
$mainframe = '<frame src="intro.php" name="detail" id="detail" frameborder="0" />';
}
?>
<script>
function getFile(url, passData) {
var AJAX = false;
try {
if (window.XMLHttpRequest) {
AJAX=new XMLHttpRequest();
}
else {
AJAX=new ActiveXObject("Microsoft.XMLHTTP");
}
}
catch (e) {}
if (AJAX) {
AJAX.open("POST", url + '?' + new Date().getTime(), false);
AJAX.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
AJAX.send(passData);
return AJAX.responseText;
}
else {
return false;
}
}
/*
window.onbeforeunload = function () {
var response = getFile('logout.php', '' );
}
*/
</script>
<frameset cols="<?php echo $cols ?>">
<?php if ($rtl) echo $mainframe; ?>
<frame src="browser.php" name="browser" id="browser" frameborder="0" />
<?php if (!$rtl) echo $mainframe; ?>
<noframes>
<body>
<?php echo $lang['strnoframes'] ?><br />
<a href="intro.php"><?php echo $lang['strnoframeslink'] ?></a>
</body>
</noframes>
</frameset>
<?php
$misc->printFooter(false);
?>
Back to Directory
File Manager