if (function_exists(ms_newMapobj)) { echo "<div class='alert alert-success'>MapScript is installed</div>"; $mod_apache = true; } else { echo "<div class='alert alert-error'>MapScript is not installed</div>"; $mod_apache = false; } $headers = get_headers(App::$param['host'] . "/cgi/tilecache.py?cfg=_gc2test", 1); if ($headers[0] == "HTTP/1.1 200 OK") { echo "<div class='alert alert-success'>TileCache is working</div>"; } else { echo "<div class='alert alert-error\t'>It seems that TileCache is not working</div>"; } $dbList = new Database(); try { $arr = $dbList->listAllDbs(); $i = 1; echo "<table class='table table-striped'>"; echo "<thead><tr><th>Databases</th><th>PostGIS</th><th>GC2 settings schema</th><th></th></tr></thead>"; foreach ($arr['data'] as $db) { if ($db != "template1" and $db != "template0" and $db != "postgres" and $db != "postgis_template") { echo "<tr><td>{$db}</td>"; Database::setDb($db); $dbc = new Dbcheck(); // Check if postgis is installed $checkPostGIS = $dbc->isPostGISInstalled(); if ($checkPostGIS['success']) { echo "<td style='color:green'>V</td>"; } else { echo "<td style='color:red'>X</td>"; }