summaryrefslogtreecommitdiff
path: root/include/login_form.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-14 09:15:51 +0300
committerAndrew Dolgov <[email protected]>2021-02-14 09:15:51 +0300
commit15fd23c374eb32c50733de1906065f552afbfbc4 (patch)
tree7c693cf1a27d7c3049fe75af85bcf98ee4d2f836 /include/login_form.php
parentd4c925819b9d85a00520e413a90cfbcd61a1c667 (diff)
use shortcut echo syntax for php templates
Diffstat (limited to 'include/login_form.php')
-rwxr-xr-xinclude/login_form.php34
1 files changed, 17 insertions, 17 deletions
diff --git a/include/login_form.php b/include/login_form.php
index aec305b13..aa6a72260 100755
--- a/include/login_form.php
+++ b/include/login_form.php
@@ -92,29 +92,29 @@
<div class="container">
- <h1><?php echo "Authentication" ?></h1>
+ <h1><?= "Authentication" ?></h1>
<div class="content">
- <form action="public.php?return=<?php echo $return ?>"
+ <form action="public.php?return=<?= $return ?>"
dojoType="dijit.form.Form" method="POST">
<?php print_hidden("op", "login"); ?>
<?php if (!empty($_SESSION["login_error_msg"])) { ?>
- <?php echo format_error($_SESSION["login_error_msg"]) ?>
+ <?= format_error($_SESSION["login_error_msg"]) ?>
<?php $_SESSION["login_error_msg"] = ""; ?>
<?php } ?>
<fieldset>
- <label><?php echo __("Login:") ?></label>
+ <label><?= __("Login:") ?></label>
<input name="login" id="login" dojoType="dijit.form.TextBox" type="text"
onchange="UtilityApp.fetchProfiles()"
onfocus="UtilityApp.fetchProfiles()"
onblur="UtilityApp.fetchProfiles()"
- required="1" value="<?php echo $_SESSION["fake_login"] ?? "" ?>" />
+ required="1" value="<?= $_SESSION["fake_login"] ?? "" ?>" />
</fieldset>
<fieldset>
- <label><?php echo __("Password:") ?></label>
+ <label><?= __("Password:") ?></label>
<input type="password" name="password" required="1"
dojoType="dijit.form.TextBox"
@@ -122,19 +122,19 @@
onchange="UtilityApp.fetchProfiles()"
onfocus="UtilityApp.fetchProfiles()"
onblur="UtilityApp.fetchProfiles()"
- value="<?php echo $_SESSION["fake_password"] ?? "" ?>"/>
+ value="<?= $_SESSION["fake_password"] ?? "" ?>"/>
</fieldset>
<?php if (strpos(PLUGINS, "auth_internal") !== false) { ?>
<fieldset class="align-right">
- <a href="public.php?op=forgotpass"><?php echo __("I forgot my password") ?></a>
+ <a href="public.php?op=forgotpass"><?= __("I forgot my password") ?></a>
</fieldset>
<?php } ?>
<fieldset>
- <label><?php echo __("Profile:") ?></label>
+ <label><?= __("Profile:") ?></label>
<select disabled='disabled' name="profile" id="profile" dojoType='dijit.form.Select'>
- <option><?php echo __("Default profile") ?></option>
+ <option><?= __("Default profile") ?></option>
</select>
</fieldset>
@@ -143,11 +143,11 @@
<label id="bw_limit_label"><input dojoType="dijit.form.CheckBox" name="bw_limit" id="bw_limit"
type="checkbox" onchange="UtilityApp.bwLimitChange(this)">
- <?php echo __("Use less traffic") ?></label>
+ <?= __("Use less traffic") ?></label>
</fieldset>
<div dojoType="dijit.Tooltip" connectId="bw_limit_label" position="below" style="display:none">
- <?php echo __("Does not display images in articles, reduces automatic refreshes."); ?>
+ <?= __("Does not display images in articles, reduces automatic refreshes."); ?>
</div>
<fieldset class="narrow">
@@ -155,11 +155,11 @@
<label id="safe_mode_label"><input dojoType="dijit.form.CheckBox" name="safe_mode" id="safe_mode"
type="checkbox">
- <?php echo __("Safe mode") ?></label>
+ <?= __("Safe mode") ?></label>
</fieldset>
<div dojoType="dijit.Tooltip" connectId="safe_mode_label" position="below" style="display:none">
- <?php echo __("Uses default theme and prevents all plugins from loading."); ?>
+ <?= __("Uses default theme and prevents all plugins from loading."); ?>
</div>
<?php if (SESSION_COOKIE_LIFETIME > 0) { ?>
@@ -167,7 +167,7 @@
<label> </label>
<label>
<input dojoType="dijit.form.CheckBox" name="remember_me" id="remember_me" type="checkbox">
- <?php echo __("Remember me") ?>
+ <?= __("Remember me") ?>
</label>
</fieldset>
@@ -177,7 +177,7 @@
<fieldset class="align-right">
<label> </label>
- <button dojoType="dijit.form.Button" type="submit" class="alt-primary"><?php echo __('Log in') ?></button>
+ <button dojoType="dijit.form.Button" type="submit" class="alt-primary"><?= __('Log in') ?></button>
</fieldset>
</form>
@@ -185,7 +185,7 @@
<div class="footer">
<a href="https://tt-rss.org/">Tiny Tiny RSS</a>
- &copy; 2005&ndash;<?php echo date('Y') ?> <a href="https://fakecake.org/">Andrew Dolgov</a>
+ &copy; 2005&ndash;<?= date('Y') ?> <a href="https://fakecake.org/">Andrew Dolgov</a>
</div>
</div>