mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Revised logic re text on set password/login button
This commit is contained in:
@@ -47,7 +47,14 @@ echo $ICEcoder["password"] == "" && !$ICEcoder["multiUser"] ? "Setup" : "Login";
|
||||
if ($ICEcoder["multiUser"]) {echo ' <input type="text" name="username" class="password"><br><br>'.PHP_EOL;};
|
||||
?>
|
||||
<input type="password" name="password" class="password"><br><br>
|
||||
<input type="submit" name="submit" value="<?php if ($ICEcoder["multiUser"] && $ICEcoderSettings["enableRegistration"]) {echo $t['set password']." / ".$t['login'];} else {echo $ICEcoder["password"] == "" ? $t['set password'] : $t['login'];}; ?>" class="button">
|
||||
<input type="submit" name="submit" value="<?php
|
||||
// Multi-user
|
||||
if ($ICEcoder["multiUser"]) {
|
||||
echo $ICEcoderSettings["enableRegistration"] ? $t['set password']." / ".$t['login'] : $t['login'];
|
||||
// Single-user
|
||||
} else {
|
||||
echo $ICEcoderSettings["enableRegistration"] && $ICEcoder["password"] == "" ? $t['set password'] : $t['login'];
|
||||
}; ?>" class="button">
|
||||
<?php
|
||||
if(empty($_SERVER['HTTPS'])) {
|
||||
echo '<div class="text">Using over non-https connection.<br>SSL is recommended!</div>';
|
||||
|
||||
Reference in New Issue
Block a user