|
PCCS MySQLDatabase Admin Tool version 1.3.4
|
/ -> mysqldb_showsrc.php
1 <?php
2 //////////////////////////////////////////////////////////////////////////////////////////////////////////// 3 // coder: Chauncey Thorn 4 // email: cthorn 5 /************************************************************************
6 PCCS MySQLDatabase Admin Tool
7 Copyright (C) 1999 Chauncey Thorn
8
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2
12 of the License, or (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA , USA.
22 **************************************************************************/
23 // There really isn't a need to modify this code... unless you just like hacking 24 // 25 // 26
27
28
29 require('mysqldb_app_includes.php');
30
31
32 common_header($str_mainTitle);
33 ?>
34 <P>
35
36 <CENTER>
37 <TABLE BGCOLOR=#000000 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER
38 BORDER=0 VALIGN=MIDDLE ><TR><TD BGCOLOR=#000000>
39
40 <TABLE BORDER=0 CELLSPACING=2 CELLPADDING=2 ALIGN=CENTER
41 VALIGN=CENTER BGCOLOR=#dddddd WIDTH=100%><TR><TD>
42
43 <TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=0 ALIGN=CENTER
44 VALIGN=TOP BORDER=0><TR BGCOLOR=#0022cf>
45 <TD BGCOLOR=#ffffff>
46 <CENTER><FONT FACE="Arial, Helvetica, Verdana"
47 SIZE=+1 ><B> </B></FONT></CENTER>
48 </TD>
49 <TD BGCOLOR=#ffffff ALIGN=RIGHT WIDTH=32>
50 <?php heading(); ?>
51
52 </TD></TR></TABLE>
53
54 <P>
55 <?php
56 if($action == "showsrc"):
57 if (file_exists($page_name)) {
58 $datemod = date( "h:i A m/d/Y", filectime($page_name));
59 $strlastmod=( "<B>Last Modified: </B>".$datemod);
60 $strprintdate= " <B>Print Date: </B>".date( "h:i A m/d/Y");
61 $sfilesize= " <B>Size: </B>".filesize($page_name);
62 $strlastmod=$strlastmod.$strprintdate.$sfilesize;
63 echo $strlastmod;
64 echo( "<BR><HR NOSHADE>");
65 if (isset($formatcode)) echo( "<CODE>");
66 show_source($page_name);
67 if (isset($formatcode)) echo( "</CODE>");
68 }
69 endif;
70 ?>
71 <!---End-->
72 </TD>
73 </TR>
74 </TABLE>
75
76
77
78 </TD></TR></TABLE>
79 </TD></TR></TABLE>
80 </CENTER>
| |