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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
<?php /** * environment.php * * Displays the environment page * * @package TeamCalPro * @version 3.3.001 * @author George Lewe * @copyright Copyright (c) 2004-2010 by George Lewe * @link http://www.lewe.com * @license http://www.lewe.com/tcpro/doc/license.txt Extended GNU Public License */ //echo "<script type=\"text/javascript\">alert(\"Debug: \");</script>"; /** * Set parent flag to control access to child scripts */ define( '_VALID_TCPRO', 1 );
/** * Includes */ require ("config.tcpro.php"); require_once ("includes/functions.tcpro.php"); getOptions(); if (strlen($CONF['options']['lang'])) require ("includes/lang/" . $CONF['options']['lang'] . ".tcpro.php"); else require ("includes/lang/english.tcpro.php");
require_once( "includes/tcconfig.class.php" ); require_once( "includes/tcuser.class.php" ); $C = new tcConfig; $U = new tcUser; /** * Check authorization */ if ( !checkAuth("admin") ) { // Not authorized. Get outta here jsReload("index.php"); } /** * Show HTML header * Use this file to adjust your meta tags and such */ require( "includes/header.html.inc.php" );
echo "<body>\r\n";
/** * Show application header * This is the file to change in order to put different images at the top * of the main page. */ require( "includes/header.application.inc.php" );
/** * Show menu header * This is the file containing the TeamCal menu */ require( "includes/menu.inc.php" );
?> <table class="dlg"> <tr> <td class="dlg-header" colspan="3"> <?php printDialogTop($LANG['env_title'],"","ico_env.png"); ?> </td> </tr> </table> <table class="dlg"> <tr> <td class="dlg-body"> <div align="CENTER"> <table class="list"> <tr> <td class="listhead" colspan="2"><?=$LANG['env_config']?></td> </tr> <?php $class = "1"; //echo ("<script type=\"text/javascript\">alert(\"".$CONF['debug_hide_db_info']."\");</script>"); foreach ($CONF as $key => $tcc) { if (($key == "db_server" || $key == "db_name" || $key == "db_user" || $key == "db_pass") && $C->readConfig("debugHide")) { $tcc = "(hidden)"; } if ($key == "db_pass") $tcc = "********"; echo "<tr><td class=\"list" . $class . "\">" . $key . "</td><td class=\"list" . $class . "\">" . $tcc . "</td></tr>\n"; if ($class == "1") $class = "2"; else $class = "1"; } echo "<tr><td class=\"list" . $class . "\">Language file</td><td class=\"list" . $class . "\">" . $CONF['app_root'] . "includes/lang/" . $CONF['options']['lang'] . ".tcpro.php</td></tr>\n"; ?> </table> <br> <table class="list"> <tr> <td class="listhead" colspan="2"><?=$LANG['env_language'].": ".$CONF['options']['lang']?></td> </tr> <?php foreach ($LANG as $key => $tcl) { echo "<tr><td class=\"list" . $class . "\">" . $key . "</td><td class=\"list" . $class . "\">" . $tcl . "</td></tr>\n"; if ($class == "1") $class = "2"; else $class = "1"; } ?> </table> <br> </div> </td> </tr> </table>
<?php require("includes/footer.html.inc.php"); ?>
|