]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - html/cgi-bin/captive.cgi
captive: Allow selecting highlight colour in web interface
[ipfire-2.x.git] / html / cgi-bin / captive.cgi
index bdded8b2a3d05dcca48d4668d18ab34445dfc9dc..ed9637f08ac4d4fe789b8f6295b9067360e50c8b 100755 (executable)
@@ -73,6 +73,7 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'save'}"){
        $settings{'AUTH'}                               = $cgiparams{'AUTH'};
        $settings{'TITLE'}                              = $cgiparams{'TITLE'};
        $settings{'UNLIMITED'}                  = $cgiparams{'UNLIMITED'};
+       $settings{'COLOR'}                      = $cgiparams{'COLOR'};
 
        if (!$errormessage){
                #Check if we need to upload a new logo
@@ -311,6 +312,13 @@ END
                print"<td><br>$Lang::tr{'no'}</td></tr>";
        }
 print<<END
+               <tr>
+                       <td>$Lang::tr{'Captive brand color'}</td>
+                       <td>
+                               <input type="color" name="COLOR" value="$settings{'COLOR'}">
+                       </td>
+               </tr>
+
                <tr>
                        <td>
                        </td>