File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
=========================================================================*/
18
18
19
- include ('login.php ' );
19
+ require_once ('login.php ' );
20
20
21
21
22
22
function echo_svn_output ($ cmd )
@@ -34,6 +34,24 @@ function echo_svn_output($cmd)
34
34
}
35
35
36
36
37
+ function echo_file_contents ($ filename )
38
+ {
39
+ // Emit the contents of the named file, but only if it exists.
40
+ // If it doesn't exist, emit nothing.
41
+ //
42
+ if (file_exists ($ filename ))
43
+ {
44
+ $ contents = file_get_contents ($ filename );
45
+
46
+ echo '<h3>contents of " ' .$ filename .'"</h3> ' ;
47
+ echo '<pre> ' ;
48
+ echo htmlentities ($ contents );
49
+ echo '</pre> ' ;
50
+ echo '<br/> ' ;
51
+ }
52
+ }
53
+
54
+
37
55
if ($ session_OK )
38
56
{
39
57
$ userid = $ _SESSION ['cdash ' ]['loginid ' ];
@@ -50,6 +68,10 @@ function echo_svn_output($cmd)
50
68
echo_svn_output ('status ' );
51
69
echo_svn_output ('diff ' );
52
70
71
+ global $ CDASH_ROOT_DIR ;
72
+ echo_file_contents ($ CDASH_ROOT_DIR .'/cdash/config.local.php ' );
73
+ echo_file_contents ($ CDASH_ROOT_DIR .'/tests/config.test.local.php ' );
74
+
53
75
echo '<h3>phpinfo</h3> ' ;
54
76
phpinfo ();
55
77
echo '<br/> ' ;
You can’t perform that action at this time.
0 commit comments