Merge pull request #169 from kim3-sudo/master

Updated sorting, version number in README ( Fixes #168 )
This commit is contained in:
Vojtěch Sajdl 2022-12-20 16:57:07 +01:00 committed by GitHub
commit b2baa5051b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ It means the beta that is heavily unstable that is meant for contributors to mak
#### Public Beta #### Public Beta
##### This beta has some bugs that are not really noticeable and mostly exist as bugs. Best for trying the new features before updating! ##### This beta has some bugs that are not really noticeable and mostly exist as bugs. Best for trying the new features before updating!
--> -->
Very simple server status page written in PHP that can run on **PHP 5.4+** - even on **shared webhosting** even without shell access. Because why waste your money on another server (or host on a server that you might want to do maintenance on), when you can use cheap webhosting? And as a cherry on top - it works even without javascript! Very simple server status page written in PHP that can run on **PHP 5.5+** - even on **shared webhosting** even without shell access. Because why waste your money on another server (or host on a server that you might want to do maintenance on), when you can use cheap webhosting? And as a cherry on top - it works even without javascript!
## How do I install this thing? ## How do I install this thing?
Simply put the files on your server and access it from your browser. There will be a simple install dialog waiting for you. Simply put the files on your server and access it from your browser. There will be a simple install dialog waiting for you.

View File

@ -73,7 +73,7 @@ class Constellation
global $mysqli; global $mysqli;
//$query = $mysqli->query("SELECT id, name, description FROM services"); //$query = $mysqli->query("SELECT id, name, description FROM services");
$query = $mysqli->query("SELECT services.id, services.name, services.description, services_groups.name as group_name FROM services LEFT JOIN services_groups ON services.group_id=services_groups.id ORDER BY services_groups.name "); $query = $mysqli->query("SELECT services.id, services.name, services.description, services_groups.name as group_name FROM services LEFT JOIN services_groups ON services.group_id=services_groups.id ORDER BY services_groups.name ASC, services.name;");
$array = array(); $array = array();
if ($query->num_rows){ if ($query->num_rows){
$timestamp = time(); $timestamp = time();