query("SELECT * FROM services ORDER BY order_num ASC"); $services = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { // If the table does not yet exist, a default table is used. $services = [ ['icon' => 'fa-solid fa-envelope', 'name' => 'Mail Server', 'url' => '#'], ['icon' => 'fa-solid fa-cloud', 'name' => 'Cloud Storage', 'url' => '#'], ['icon' => 'fa-solid fa-calendar', 'name' => 'Calendar', 'url' => '#'], ['icon' => 'fa-solid fa-comments', 'name' => 'Chat', 'url' => '#'] ]; } // Check if you are in edit mode $edit_mode = isset($_GET['edit']); // If you are in edit mode, redirect to edit-services if ($edit_mode) { header('Location: admin/edit/services'); exit; } $title = $config['site']['name']; $description = "Grouping of services offered by ". $config['site']['name'] . "."; $url = "https://". $config['site']['main_domain'] ."/services"; $meta_image = "https://". $config['site']['imgs_domain'] ."/-/WaWA7/FoRUmETa47.png/raw"; $robots = "index, follow"; ?> <?php echo $title; ?>

Public services managed by

Admin