Changeset:
473376989314
https://sourceforge.net/p/mrbs/hg-code/ci/473376989314dcc32593197b55901e5a71437475
Author:
Campbell Morrison <[email protected]>
Date:
Sun Aug 14 10:26:27 2016 +0100
Log message:
Restructured code
diffstat:
web/session/session_wordpress.inc | 64 ++++++++++++++++++++------------------
1 files changed, 33 insertions(+), 31 deletions(-)
diffs (74 lines):
diff -r 2ccc15be1b56 -r 473376989314 web/session/session_wordpress.inc
--- a/web/session/session_wordpress.inc Sun Aug 14 10:05:18 2016 +0100
+++ b/web/session/session_wordpress.inc Sun Aug 14 10:26:27 2016 +0100
@@ -84,37 +84,39 @@
{
global $HTTP_REFERER;
global $returl;
- ?>
- <form class="form_general" id="logon" method="post" action="<?php echo
htmlspecialchars(this_page()) ?>">
- <fieldset>
- <legend><?php echo get_vocab("please_login") ?></legend>
- <div>
- <label for="NewUserName"><?php _e('Username or Email') ?>:</label>
- <input type="text" id="NewUserName" name="NewUserName">
- </div>
- <div>
- <label for="NewUserPassword"><?php _e('Password') ?>:</label>
- <input type="password" id="NewUserPassword" name="NewUserPassword">
- </div>
- <?php
- // We need to preserve the original calling page, so that it's there
when we eventually get
- // to the TargetURL (especially if that's edit_entry.php). If this is
the first time through then $HTTP_REFERER holds
- // the original caller. If this is the second time through we will
have stored it in $returl.
- if (!isset($returl))
- {
- $returl = isset($HTTP_REFERER) ? $HTTP_REFERER : "";
- }
- echo "<input type=\"hidden\" name=\"returl\" value=\"" .
htmlspecialchars($returl) . "\">\n";
- ?>
- <input type="hidden" name="TargetURL" value="<?php echo
htmlspecialchars($TargetURL) ?>">
- <input type="hidden" name="Action" value="SetName">
- <div id="logon_submit">
- <input class="submit" type="submit" value=" <?php echo
get_vocab('login') ?> ">
- </div>
- </fieldset>
- </form>
- <?php
- echo "</div>"; // Close of the contents div
+
+ // __() is a WordPress function
+
+ echo '<form class="form_general" id="logon" method="post" action="' .
htmlspecialchars(this_page()) . "\">\n";
+ echo "<fieldset>\n";
+ echo '<legend>' . get_vocab("please_login") . "</legend>\n";
+ echo "<div>\n";
+ echo '<label for="NewUserName">' . __('Username or Email') . ":</label>\n";
+ echo "<input type=\"text\" id=\"NewUserName\" name=\"NewUserName\">\n";
+ echo "</div>\n";
+ echo "<div>\n";
+ echo '<label for="NewUserPassword">' . __('Password') . ":</label>\n";
+ echo "<input type=\"password\" id=\"NewUserPassword\"
name=\"NewUserPassword\">\n";
+ echo "</div>\n";
+
+ // We need to preserve the original calling page, so that it's there when we
eventually get
+ // to the TargetURL (especially if that's edit_entry.php). If this is the
first time through then $HTTP_REFERER holds
+ // the original caller. If this is the second time through we will have
stored it in $returl.
+ if (!isset($returl))
+ {
+ $returl = isset($HTTP_REFERER) ? $HTTP_REFERER : "";
+ }
+ echo "<input type=\"hidden\" name=\"returl\" value=\"" .
htmlspecialchars($returl) . "\">\n";
+
+ echo '<input type="hidden" name="TargetURL" value="' .
htmlspecialchars($TargetURL) ."\">\n";
+ echo "<input type=\"hidden\" name=\"Action\" value=\"SetName\">\n";
+ echo "<div id=\"logon_submit\">\n";
+ echo '<input class="submit" type="submit" value="' . get_vocab('login') .
"\">\n";
+ echo "</div>\n";
+ echo "</fieldset>\n";
+ echo "</form>\n";
+ echo "</div>\n"; // Close of the contents div
+
// Print footer and exit
print_footer(TRUE);
}
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits