]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Some initial instructions if servers is empty.
authorBram Matthys <redacted>
Mon, 24 Apr 2023 09:58:06 +0000 (11:58 +0200)
committerBram Matthys <redacted>
Mon, 24 Apr 2023 09:58:06 +0000 (11:58 +0200)
settings/rpc-servers.php

index 8ca94d3a6e7c7518f6b3da27ae5def6ce03bda3a..789254b49a205c8e12b66351f2af11fbc5221510 100644 (file)
@@ -69,7 +69,7 @@ if (isset($_POST['do_add_server']))
        /* And write the new config */
        write_config();
        // TODO: change this message if it's the first server added? tell them to browse around?
-       Message::Success("RPC Server successfully added.");
+       Message::Success("RPC Server successfully ". (empty($opts->edit_existing) ? "added" : "modified").".");
 }
 
 ?>
@@ -80,6 +80,15 @@ You normally only need one server, but it can be useful to have multiple servers
 you can switch to a secondary server in case the primary server goes down.<br>
 <br>
 
+<?php
+if (empty($config["unrealircd"]))
+{
+       Message::Info("Let's get your panel linked to UnrealIRCd. ".
+                     "Read <u><a href=\"https://www.unrealircd.org/docs/UnrealIRCd_webpanel#Configuring_UnrealIRCd\" target=\"_blank\">the UnrealIRCd instructions</a></u> ".
+                     "and then click <i>Add Server</i> below.");
+}
+?>
+
 <!-- Server action buttons (only Add server) -->
 <div id="ServerActions">
        <div class="row">