forked from phppgadmin/phppgadmin
-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.php
44 lines (33 loc) · 1.07 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?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" />';
}
?>
<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);
?>