File: sql.php

package info (click to toggle)
serverstats 0.8.2-8
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 604 kB
  • ctags: 796
  • sloc: php: 4,238; perl: 90; sh: 15; makefile: 12
file content (14 lines) | stat: -rwxr-xr-x 356 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?

$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);

?>