forked from myfarms/phppgadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
intro.php
executable file
·71 lines (62 loc) · 2.06 KB
/
intro.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* Intro screen
*
* $Id: intro.php,v 1.19 2007/07/12 19:26:22 xzilla Exp $
*/
// Include application functions (no db conn)
$_no_db_connection = true;
include_once('./libraries/lib.inc.php');
include_once('./themes/themes.php');
$misc->printHeader();
$misc->printBody();
$misc->printTrail('root');
$misc->printTabs('root','intro');
?>
<h1><?php echo "$appName $appVersion (PHP ". phpversion() .')' ?></h1>
<form method="get" action="intro.php">
<table>
<tr class="data1">
<th class="data"><?php echo $lang['strlanguage'] ?></th>
<td>
<select name="language" onchange="this.form.submit()">
<?php
$language = isset($_SESSION['webdbLanguage']) ? $_SESSION['webdbLanguage'] : 'english';
foreach ($appLangFiles as $k => $v) {
echo "\t<option value=\"{$k}\"",
($k == $language) ? ' selected="selected"' : '',
">{$v}</option>\n";
}
?>
</select>
</td>
</tr>
<tr class="data2">
<th class="data"><?php echo $lang['strtheme'] ?></th>
<td>
<select name="theme" onchange="this.form.submit()">
<?php
foreach ($appThemes as $k => $v) {
echo "\t<option value=\"{$k}\"",
($k == $conf['theme']) ? ' selected="selected"' : '',
">{$v}</option>\n";
}
?>
</select>
</td>
</tr>
</table>
<noscript><p><input type="submit" value="<?php echo $lang['stralter'] ?>" /></p></noscript>
</form>
<p><?php echo $lang['strintro'] ?></p>
<ul class="intro">
<li><a href="http://phppgadmin.sourceforge.net/"><?php echo $lang['strppahome'] ?></a></li>
<li><a href="<?php echo $lang['strpgsqlhome_url'] ?>"><?php echo $lang['strpgsqlhome'] ?></a></li>
<li><a href="http://sourceforge.net/tracker/?group_id=37132&atid=418980"><?php echo $lang['strreportbug'] ?></a></li>
<li><a href="<?php echo $lang['strviewfaq_url'] ?>"><?php echo $lang['strviewfaq'] ?></a></li>
<li><a target="_top" href="tests/selenium/selenium-lib/core/TestRunner.html?test=..%2F..%2FTestSuite.php&resultsUrl=..%2FpostResults">Selenium tests</a></li>
</ul>
<?php
if (isset($_GET['language'])) $_reload_browser = true;
$misc->printFooter();
?>