Skip to content

Commit

Permalink
cleanup HTML markup
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarv committed Nov 19, 2015
1 parent c471d86 commit 4240644
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions assets/config/afuncs.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ function redirect_wait5($url) {
function get_gravatar( $email, $s = 80, $d = 'mm', $r = 'g', $img = false, $atts = array() ) {
$url = 'http://www.gravatar.com/avatar/';
$url .= md5( strtolower( trim( $email ) ) );
$url .= "?s=$s&d=identicon&r=$r";
$url .= "?s=$s&d=identicon&r=$r";
if ( $img ) {
$url = '<img src="' . $url . '"';
foreach ( $atts as $key => $val )
Expand All @@ -523,7 +523,7 @@ function get_gravatar( $email, $s = 80, $d = 'mm', $r = 'g', $img = false, $atts
function get_small_gravatar( $email, $s = 40, $d = 'mm', $r = 'g', $img = false, $atts = array() ) {
$url = 'http://www.gravatar.com/avatar/';
$url .= md5( strtolower( trim( $email ) ) );
$url .= "?s=$s&d=identicon&r=$r";
$url .= "?s=$s&amp;d=identicon&amp;r=$r";
if ( $img ) {
$url = '<img src="' . $url . '"';
foreach ( $atts as $key => $val )
Expand Down
2 changes: 1 addition & 1 deletion sources/public/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
echo "<h2 class=\"text-left\">Registration</h2><hr/>";
if (@$_POST["register"] != "1") {
?>
<form action="?base=main&page=register" method="POST" role="form">
<form action="?base=main&amp;page=register" method="POST" role="form">
<div class="form-group">
<label for="inputUser">Username</label>
<input type="text" name="musername" maxlength="12" class="form-control" id="inputUser" autocomplete="off" placeholder="Username" required>
Expand Down
4 changes: 2 additions & 2 deletions sources/public/vote.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
}

else { ?>
<form method="post">
<?php
if(isset($funct_msg)) {echo '<div class="alert alert-danger">'.$funct_msg.'</div>';}
if(isset($funct_error)) {echo '<div class="alert alert-danger">'.$funct_error.'</div>';}
Expand All @@ -70,6 +69,7 @@
}
else {
echo "
<form method=\"post\">
<div class=\"form-group\">
<label for=\"voteSite\">Select Site:</label>
<select name=\"votingsite\" class=\"form-control\" id=\"voteSite\" required>
Expand All @@ -82,7 +82,7 @@
if(!isset($_SESSION['id'])) {
echo "<input type=\"text\" name=\"name\" maxlength=\"15\" class=\"form-control\" placeholder=\"Username\" required autocomplete=\"off\"/><br/>";
} else {
echo "<input type=\"text\" name=\"name\" maxlength=\"15\" class=\"form-control\" placeholder=\"".$_SESSION['name']."\" value=\"".$_SESSION['name']."\"required autocomplete=\"off\"/><br/>";
echo "<input type=\"text\" name=\"name\" maxlength=\"15\" class=\"form-control\" placeholder=\"".$_SESSION['name']."\" value=\"".$_SESSION['name']."\" required autocomplete=\"off\"/><br/>";
}
echo "
<input type=\"submit\" name=\"submit\" value=\"Submit &raquo;\" class=\"btn btn-primary\"/>
Expand Down
2 changes: 1 addition & 1 deletion sources/structure/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<input type="password" name="password" maxlength="12" class="form-control" placeholder="Password" id="password" required/>
</div>
<input id="login" type="submit" class="btn btn-primary btn-block" value="Login"/>
<a href="?base=main&page=register" class="btn btn-info btn-block">Register</a>
<a href="?base=main&amp;page=register" class="btn btn-info btn-block">Register</a>
</form>
<div id="message"></div>
<?php
Expand Down

0 comments on commit 4240644

Please sign in to comment.