X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=blobdiff_plain;f=planetlab%2Fpersons%2Fregister.php;h=db2b44f3fe7b9365284407c8c8455c7e2a98888a;hp=2b5ee8c249f9f05b9e1605f10a2abc2a465f6917;hb=0c1ecf9af4db5be0942850b8a08cc53595dcb86e;hpb=5d80c1756a9ffcd8f3578c6f9e818a3cb2799f34
diff --git a/planetlab/persons/register.php b/planetlab/persons/register.php
index 2b5ee8c..db2b44f 100644
--- a/planetlab/persons/register.php
+++ b/planetlab/persons/register.php
@@ -67,9 +67,20 @@ Your E-mail address must be able to receive e-mail and will be
used as your $PLC_NAME username
EOF;
-$person_form['site_ids']['comment'] = <<< EOF
-Select the site where you belong
-EOF;
+
+// dirty hack feb 2018; if this file can be found,
+// its contents is used instead of the hard-wired message
+// it is searched along php's include path, so it should be
+// allright to save it as /etc/planetlab/php/person-registration.txt
+// of course html tags like and
are OK
+global $message_filename;
+$message_filename = "person-registration.txt";
+
+try {
+ $person_form['site_ids']['comment'] = file_get_contents($message_filename, TRUE);
+} catch (Exception $e) {
+ $person_form['site_ids']['comment'] = "Select the site where you belong";
+}
if (0)
$person_form['roles']['comment'] = <<< EOF