Index: trunk/tools/ToolserverI18N/public_html/demo/demo5.php |
— | — | @@ -13,5 +13,4 @@ |
14 | 14 | echo $I18N->getFooterLine( TSINT_HELP_ALL ); |
15 | 15 | |
16 | 16 | /* View source */ |
17 | | -view_source( __FILE__ ); |
18 | | -close_demo(); |
| 17 | +close_demo( __FILE__ ); |
Index: trunk/tools/ToolserverI18N/public_html/demo/demo6.php |
— | — | @@ -68,5 +68,4 @@ |
69 | 69 | |
70 | 70 | |
71 | 71 | /* View source */ |
72 | | -view_source( __FILE__ ); |
73 | | -close_demo(); |
\ No newline at end of file |
| 72 | +close_demo( __FILE__ ); |
Index: trunk/tools/ToolserverI18N/public_html/demo/demo7.php |
— | — | @@ -18,5 +18,4 @@ |
19 | 19 | |
20 | 20 | |
21 | 21 | /* View source */ |
22 | | -view_source( __FILE__ ); |
23 | | -close_demo(); |
\ No newline at end of file |
| 22 | +close_demo( __FILE__ ); |
Index: trunk/tools/ToolserverI18N/public_html/demo/demo8.php |
— | — | @@ -37,5 +37,4 @@ |
38 | 38 | |
39 | 39 | |
40 | 40 | /* View source */ |
41 | | -view_source( __FILE__ ); |
42 | | -close_demo(); |
\ No newline at end of file |
| 41 | +close_demo( __FILE__ ); |
Index: trunk/tools/ToolserverI18N/public_html/demo/demoBase.php |
— | — | @@ -1,5 +1,5 @@ |
2 | 2 | <?php |
3 | | -error_reporting(E_ALL); ini_set('display_errors', 1); |
| 3 | +error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); date_default_timezone_set( 'UTC' ); |
4 | 4 | |
5 | 5 | /* Load Toolserver Intuition from the main directory */ |
6 | 6 | require_once( dirname(dirname( __DIR__ )) . '/ToolStart.php' ); |
— | — | @@ -71,7 +71,9 @@ |
72 | 72 | $descr = htmlspecialchars( $descr ); |
73 | 73 | echo "<li><a href=\"$demoFilename.php\" title=\"$descr\">$demoFilename</a><br /><small>$descr</small></li>"; |
74 | 74 | } |
75 | | -echo "</ul>$outputHead"; |
| 75 | +echo '</ul>'; |
| 76 | +echo $outputHead; |
| 77 | +echo '<div style="white-space: pre;">'; |
76 | 78 | |
77 | 79 | |
78 | 80 | // Output source-heading and source code |
— | — | @@ -83,11 +85,13 @@ |
84 | 86 | } |
85 | 87 | |
86 | 88 | // End of track |
87 | | -function close_demo(){ |
| 89 | +function close_demo( $file ) { |
| 90 | + echo '</div>'; |
| 91 | + view_source( $file ); |
88 | 92 | echo '</body></html>'; |
89 | 93 | } |
90 | 94 | |
91 | 95 | // Make this file viewable as well |
92 | 96 | if( $thisFile == 'demoBase' ){ |
93 | | - view_source( __FILE__ ); |
| 97 | + close_demo( __FILE__ ); |
94 | 98 | } |
\ No newline at end of file |
Index: trunk/tools/ToolserverI18N/public_html/demo/demo1.php |
— | — | @@ -11,5 +11,4 @@ |
12 | 12 | |
13 | 13 | |
14 | 14 | /* View source */ |
15 | | -view_source( __FILE__ ); |
16 | | -close_demo(); |
\ No newline at end of file |
| 15 | +close_demo( __FILE__ ); |
Index: trunk/tools/ToolserverI18N/public_html/demo/demo2.php |
— | — | @@ -18,5 +18,4 @@ |
19 | 19 | |
20 | 20 | |
21 | 21 | /* View source */ |
22 | | -view_source( __FILE__ ); |
23 | | -close_demo(); |
\ No newline at end of file |
| 22 | +close_demo( __FILE__ ); |
Index: trunk/tools/ToolserverI18N/public_html/demo/demo3.php |
— | — | @@ -21,5 +21,4 @@ |
22 | 22 | |
23 | 23 | |
24 | 24 | /* View source */ |
25 | | -view_source( __FILE__ ); |
26 | | -close_demo(); |
\ No newline at end of file |
| 25 | +close_demo( __FILE__ ); |
Index: trunk/tools/ToolserverI18N/public_html/demo/demo4.php |
— | — | @@ -21,5 +21,4 @@ |
22 | 22 | |
23 | 23 | |
24 | 24 | /* View source */ |
25 | | -view_source( __FILE__ ); |
26 | | -close_demo(); |
| 25 | +close_demo( __FILE__ ); |