PCCS MySQLDatabase Admin Tool version 1.3.4


/ -> template.php

1  <?
2  /////////////////////////////////////////////////////////////////////////////////////
3  // coder: cthorn
4  // template.php
5  //
6  /************************************************************************
7  PCCS MySQLDatabase Admin Tool
8  Copyright (C) 1999 Chauncey Thorn
9 
10  This program is free software; you can redistribute it and/or
11  modify it under the terms of the GNU General Public License
12  as published by the Free Software Foundation; either version 2
13  of the License, or (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program; if not, write to the Free Software
22  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA , USA.
23  **************************************************************************/
24 
25  // require('login.php');
26  require('incs/dbconnect.php');
27  require('incs/global.vars.php');
28     require('incs/lang_eng.php');
29 
30   // common_header($str_mainTitle);
31   print "<P>
32          <P><P>
33          <FONT SIZE=-1>";
34 
35          print "<P>";
36          print "<CENTER>";
37          print "<FONT SIZE=-1 COLOR=blue>$str_sysinfobanner</FONT>";
38          print "<P>";
39 
40          $f = mysql_connect("localhost","root","");
41        $result = mysql_db_query("mysql","SHOW STATUS");
42        while($row = mysql_fetch_array($result)) {
43        $num = mysql_numrows($result);
44        $var1 = $row["Variable_name"];
45        $var2 = $row["Value"];
46          if ($var1 == "Questions"):
47          print ("$str_questions : $var2 &nbsp;");
48          endif;
49 
50          if ($var1 == "Uptime"):
51          print ("$str_systemuptime : $var2 &nbsp;");
52          print "<BR>";
53          endif;
54 
55          if ($var1 == "tables"):
56          print ("$str_ables : $var2 &nbsp;");
57          endif;
58 
59          if ($var1 == "files"):
60          print ("$str_iles : $var2 &nbsp;");
61          print "<BR>";
62          endif;
63 
64          if ($var1 == "d_tables"):
65          print ("$str_dtables : $var2 <BR>&nbsp;");
66          endif;
67                          
68          if ($var1 == "Running_threads"):
69          print ("$str_runningthreads : $var2 &nbsp;");
70          endif;
71 
72        }
73        $var2 = "<FONT COLOR=red>$var2</FONT>";
74        
75 
76       
77          print "</CENTER>";
78 
79 
80  print "
81  </FONT>
82  </b> <br>
83   ";
84 
85 
86 
87  ?>


Generated: Sat Jan 27 15:40:36 2001 Generated by PHPXref 0.1.2
PCCS-Linux.COM ::ource Advocate Articles catalogue
2000 2002