Location: PHPKode > projects > Limph > limph-1.9.7/css.php
<?php
 /*
   Limph Is Monitoring Pingable Hosts
   Copyright (C) 2005 Jonathan Ciesla
   
   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 2
   of the License, or (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
  */
require_once("config.php");
require_once("functionlib.php");
session_start();

$link = dbms_connect($dbhost, $dbuser, $dbpass, $dbname);

authentication(0,0);

$query = "SELECT textsize,tabletextsize FROM universal;";
$result = dbms_query($query);
$line = dbms_fetch_array($result, "NUM");
dbms_free_result($result);

echo "body {";
echo "  text-align: center;";
echo "	font-size: {$line['0']};";
echo "	background-color: #CCCCCC;";
echo "}";
echo "table {";
echo "	background-color: #ADFF2F;";
echo "	border: 2px solid #333366;";
echo "	font-size: {$line['1']};";
echo "}";

dbms_close($link);

?>
Return current item: Limph