Files
cacti/scripts/sql.php
T
Ian Berry 4d5fe8f3d7 fixed include path problems with php cli; removed http headers
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1323 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-11-06 01:48:33 +00:00

15 lines
356 B
PHP

<?
$no_http_headers = true;
include(dirname(__FILE__) . "/../include/config.php");
if ($database_password == "") {
$sql = `mysqladmin -h $database_hostname -u $database_username status | awk '{print $6 }'`;
}else{
$sql = `mysqladmin -h $database_hostname -u $database_username -p$database_password status | awk '{print $6 }'`;
}
print trim($sql);
?>