Esempio n. 1
0
\t<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
\t<head>
\t<meta http-equiv="content-type" content="text/html; charset=utf-8" />
\t<title>Textpattern &#8250; setup</title>
\t<link rel="stylesheet" href="{$rel_siteurl}/textpattern/textpattern.css" type="text/css" />
\t</head>
\t<body style="border-top:15px solid #FC3">
\t<div align="center">
eod;
$step = ps('step');
switch ($step) {
    case "":
        chooseLang();
        break;
    case "getDbInfo":
        getDbInfo();
        break;
    case "getTxpLogin":
        getTxpLogin();
        break;
    case "printConfig":
        printConfig();
        break;
    case "createTxp":
        createTxp();
}
?>
</div>
</body>
</html>
<?php 
Esempio n. 2
0
     print " but disabled in WAF-FLE";
 }
 print "</td>";
 print "</tr>";
 if ($APC_ON) {
     print "<tr>";
     print "<td><span id=\"header_cap\">APC Cache Timeout:</span></td><td> {$CACHE_TIMEOUT} seconds</td>";
     print "</tr>";
 }
 print "<tr>";
 print "<td><span id=\"header_cap\">PHP version:</span></td><td> " . phpversion() . "</td>";
 print "</tr>";
 print "<tr>";
 print "<td><span id=\"header_cap\">PHP Zend Version:</span></td><td> " . zend_version() . "</td>";
 print "</tr>";
 $dbInfo = getDbInfo();
 print "<tr>";
 print "<td><span id=\"header_cap\">MySQL Version:</span></td><td>" . $dbInfo['version'] . "</td>";
 print "</tr>";
 print "<tr>";
 print "<td><span id=\"header_cap\">Database Name:</span></td><td>" . $dbInfo['dbName'] . "</td>";
 print "</tr>";
 print "<tr>";
 print "<td><span id=\"header_cap\">Database Size:</span></td><td>" . bytesConvert($dbInfo['size']) . "</td>";
 print "</tr>";
 $sensorCount = getSensors();
 print "<tr>";
 print "<td><span id=\"header_cap\">Number of sensors:</span></td><td>" . count($sensorCount[0]) . "</td>";
 print "</tr>";
 print "<tr>";
 print "<td><span id=\"header_cap\">Number of events on DB:</span></td><td>" . number_format($dbInfo['total']) . "</td>";