Browse Source

Get the public forms consistent

pjc 5 years ago
parent
commit
4f9de1bbc4

+ 1
- 1
sections/login/recover_step1.php View File

@@ -24,7 +24,7 @@ if (empty($Sent) || (!empty($Sent) && $Sent != 1)) {
24 24
       </td>
25 25
       </tr>
26 26
       <tr>
27
-        <td colspan="2" align="right"><input type="submit" name="reset" value="Reset!" class="submit" /></td>
27
+        <td colspan="2" align="right"><input type="submit" name="reset" value="Reset" class="submit" /></td>
28 28
       </tr>
29 29
     </table>
30 30
 <?php

+ 27
- 19
sections/login/recover_step2.php View File

@@ -1,38 +1,46 @@
1
-<?
1
+<?php
2 2
 View::show_header('Recover Password');
3 3
 ?>
4
-<script src="<?=(STATIC_SERVER)?>functions/validate.js" type="text/javascript"></script>
5
-<script src="<?=(STATIC_SERVER)?>functions/password_validate.js" type="text/javascript"></script>
4
+<script src="<?=(STATIC_SERVER)?>functions/validate.js" type="text/javascript">
5
+</script>
6
+<script src="<?=(STATIC_SERVER)?>functions/password_validate.js"
7
+  type="text/javascript"></script>
6 8
 <form class="auth_form" name="recovery" id="recoverform" method="post" action="" onsubmit="return formVal();">
7
-  <input type="hidden" name="key" value="<?=display_str($_REQUEST['key'])?>" />
8
-  <div style="width: 500px;">
9
-    <span class="titletext">Reset your password - Final Step</span><br /><br />
10
-<?
9
+  <input type="hidden" name="key"
10
+    value="<?=display_str($_REQUEST['key'])?>" />
11
+  <div style="width: 250px;">
12
+    <p class="titletext">Reset Your Password</p>
13
+    <?php
11 14
 if (empty($PassWasReset)) {
12
-  if (!empty($Err)) {
13
-?>
15
+    if (!empty($Err)) {
16
+        ?>
14 17
     <strong class="important_text"><?=display_str($Err)?></strong><br /><br />
15
-<?  } ?> Any password 6 characters or longer is accepted, but a strong password is 8 characters or longer, contains at least 1 lowercase and uppercase letter, and contains at least a number or symbol.<br /><br />
18
+    <?php
19
+    } ?>
20
+    <p>Any password 6 characters or longer is accepted, but a strong password is 8 characters or longer, contains at
21
+      least 1 lowercase and uppercase letter, and contains at least a number or symbol.</p>
16 22
     <table class="layout">
17 23
       <tr>
18 24
         <td><strong id="pass_strength"></strong></td>
19
-        <td><input type="password" name="password" id="new_pass_1" class="inputtext" size="40" placeholder="New password" pattern=".{6,307200}" required></td>
25
+        <td><input type="password" name="password" id="new_pass_1" class="inputtext" size="40"
26
+            placeholder="New Password" pattern=".{6,307200}" required></td>
20 27
       </tr>
21 28
       <tr>
22 29
         <td><strong id="pass_match"></strong></td>
23
-        <td><input type="password" name="verifypassword" id="new_pass_2" class="inputtext" size="40" placeholder="Confirm password" pattern=".{6,307200}" required></td>
30
+        <td><input type="password" name="verifypassword" id="new_pass_2" class="inputtext" size="40"
31
+            placeholder="Confirm Password" pattern=".{6,307200}" required></td>
24 32
       </tr>
25 33
       <tr>
26 34
         <td></td>
27
-        <td><input type="submit" name="reset" value="Reset!" class="submit"></td>
35
+        <td><input type="submit" name="reset" value="Reset" class="submit"></td>
28 36
       </tr>
29 37
     </table>
30
-<? } else { ?>
31
-    Your password has been successfully reset.<br />
32
-    Please <a href="login.php">click here</a> to log in using your new password.
33
-<? } ?>
38
+    <?php
39
+} else { ?>
40
+    <p>Your password has been successfully reset.</p>
41
+    <p>Please <a href="login.php">click here</a> to log in using your new password.</p>
42
+    <?php } ?>
34 43
   </div>
35 44
 </form>
36
-<?
45
+<?php
37 46
 View::show_footer(['recover' => true]);
38
-?>

+ 88
- 74
sections/register/step1.php View File

@@ -1,85 +1,99 @@
1
-<?
1
+<?php
2 2
 View::show_header('Register');
3 3
 echo $Val->GenerateJS('registerform');
4 4
 ?>
5
-<script src="<?=STATIC_SERVER?>functions/validate.js" type="text/javascript"></script>
6
-<script src="<?=STATIC_SERVER?>functions/password_validate.js" type="text/javascript"></script>
5
+<script src="<?=STATIC_SERVER?>functions/validate.js" type="text/javascript">
6
+</script>
7
+<script src="<?=STATIC_SERVER?>functions/password_validate.js"
8
+  type="text/javascript"></script>
7 9
 <form class="create_form" name="user" id="registerform" method="post" action="" onsubmit="return formVal();">
8
-<div style="width: 500px;">
9
-  <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
10
-<?
10
+  <div style="width: 250px;">
11
+    <input type="hidden" name="auth"
12
+      value="<?=$LoggedUser['AuthKey']?>" />
13
+    <?php
11 14
 
12 15
 if (empty($Sent)) {
13
-  if (!empty($_REQUEST['invite'])) {
14
-    echo '<input type="hidden" name="invite" value="'.display_str($_REQUEST['invite']).'" />'."\n";
15
-  }
16
-  if (!empty($Err)) {
17
-?>
18
-  <strong class="important_text"><?=$Err?></strong><br /><br />
19
-<?  } ?>
20
-  <table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
21
-    <tr valign="top">
22
-      <td align="right" style="width: 100px;">Username&nbsp;</td>
23
-      <td align="left">
24
-        <input type="text" name="username" id="username" class="inputtext" placeholder="Username" value="<?=(!empty($_REQUEST['username']) ? display_str($_REQUEST['username']) : '')?>" />
25
-        <p>Use common sense when choosing your username. <strong>Do not choose a username that can be associated with your real name.</strong> If you do so, we will not be changing it for you.</p>
26
-      </td>
27
-    </tr>
28
-    <tr valign="top">
29
-      <td align="right">Email Address&nbsp;</td>
30
-      <td align="left">
31
-        <input type="email" name="email" id="email" class="inputtext" placeholder="Email" value="<?=(!empty($_REQUEST['email']) ? display_str($_REQUEST['email']) : (!empty($InviteEmail) ? display_str($InviteEmail) : ''))?>" />
32
-      </td>
33
-    </tr>
34
-    <tr valign="top">
35
-      <td align="right">Password&nbsp;</td>
36
-      <td align="left">
37
-        <input type="password" name="password" id="new_pass_1" class="inputtext" placeholder="Password" /> <strong id="pass_strength"></strong>
38
-      </td>
39
-    </tr>
40
-    <tr valign="top">
41
-      <td align="right">Verify Password&nbsp;</td>
42
-      <td align="left">
43
-        <input type="password" name="confirm_password" id="new_pass_2" class="inputtext" placeholder="Verify Password" /> <strong id="pass_match"></strong>
44
-        <p>An acceptable password is 6 characters or longer (please make it longer)</p>
45
-      </td>
46
-    </tr>
47
-    <tr valign="top">
48
-      <td></td>
49
-      <td align="left">
50
-        <input type="checkbox" name="readrules" id="readrules" value="1"<? if (!empty($_REQUEST['readrules'])) { ?> checked="checked"<? } ?> />
51
-        <label for="readrules">I will read the rules</label>
52
-      </td>
53
-    </tr>
54
-    <tr valign="top">
55
-      <td></td>
56
-      <td align="left">
57
-        <input type="checkbox" name="readwiki" id="readwiki" value="1"<? if (!empty($_REQUEST['readwiki'])) { ?> checked="checked"<? } ?> />
58
-        <label for="readwiki">I will read the wiki</label>
59
-      </td>
60
-    </tr>
61
-    <tr valign="top">
62
-      <td></td>
63
-      <td align="left">
64
-        <input type="checkbox" name="agereq" id="agereq" value="1"<? if (!empty($_REQUEST['agereq'])) { ?> checked="checked"<? } ?> />
65
-        <label for="agereq">I am 18 years of age or older</label>
66
-      </td>
67
-    </tr>
68
-    <tr>
69
-      <td colspan="2" height="10"></td>
70
-    </tr>
71
-    <tr>
72
-      <td colspan="2" align="right"><input type="submit" name="submit" value="Submit" class="submit" /></td>
73
-    </tr>
74
-  </table>
75
-<? } else { ?>
76
-  An email has been sent to the address that you provided. After you confirm your email address, you will be able to log into your account.
16
+    if (!empty($_REQUEST['invite'])) {
17
+        echo '<input type="hidden" name="invite" value="'.display_str($_REQUEST['invite']).'" />'."\n";
18
+    }
19
+    if (!empty($Err)) {
20
+        ?>
21
+    <strong class="important_text"><?=$Err?></strong><br /><br />
22
+    <?php
23
+    } ?>
24
+    <table class="layout" cellpadding="2" cellspacing="1" border="0" align="center">
25
+      <tr valign="top">
26
+        <!-- <td align="right" style="width: 100px;">Username&nbsp;</td> -->
27
+        <td align="left">
28
+          <input type="text" name="username" id="username" class="inputtext" placeholder="Username"
29
+            value="<?=(!empty($_REQUEST['username']) ? display_str($_REQUEST['username']) : '')?>" />
30
+          <p>Use common sense when choosing your username. <strong>Do not choose a username that can be associated with
31
+              your real name.</strong> If you do so, we will not be changing it for you.</p>
32
+        </td>
33
+      </tr>
34
+      <tr valign="top">
35
+        <!-- <td align="right">Email Address&nbsp;</td> -->
36
+        <td align="left">
37
+          <input type="email" name="email" id="email" class="inputtext" placeholder="Email"
38
+            value="<?=(!empty($_REQUEST['email']) ? display_str($_REQUEST['email']) : (!empty($InviteEmail) ? display_str($InviteEmail) : ''))?>" />
39
+        </td>
40
+      </tr>
41
+      <tr valign="top">
42
+        <!-- <td align="right">Password&nbsp;</td> -->
43
+        <td align="left">
44
+          <input type="password" name="password" id="new_pass_1" class="inputtext" placeholder="Password" /> <strong
45
+            id="pass_strength"></strong>
46
+        </td>
47
+      </tr>
48
+      <tr valign="top">
49
+        <!-- <td align="right">Verify Password&nbsp;</td> -->
50
+        <td align="left">
51
+          <input type="password" name="confirm_password" id="new_pass_2" class="inputtext"
52
+            placeholder="Confirm Password" /> <strong id="pass_match"></strong>
53
+          <p>An acceptable password is 6 characters or longer (please make it longer).</p>
54
+        </td>
55
+      </tr>
56
+      <tr valign="top">
57
+        <!-- <td></td> -->
58
+        <td align="left">
59
+          <input type="checkbox" name="readrules" id="readrules" value="1" <?php if (!empty($_REQUEST['readrules'])) { ?>
60
+          checked="checked"<?php } ?> />
61
+          <label for="readrules">I will read the rules</label>
62
+        </td>
63
+      </tr>
64
+      <tr valign="top">
65
+        <!-- <td></td> -->
66
+        <td align="left">
67
+          <input type="checkbox" name="readwiki" id="readwiki" value="1" <?php if (!empty($_REQUEST['readwiki'])) { ?>
68
+          checked="checked"<?php } ?> />
69
+          <label for="readwiki">I will read the wiki</label>
70
+        </td>
71
+      </tr>
72
+      <tr valign="top">
73
+        <!-- <td></td> -->
74
+        <td align="left">
75
+          <input type="checkbox" name="agereq" id="agereq" value="1" <?php if (!empty($_REQUEST['agereq'])) { ?>
76
+          checked="checked"<?php } ?> />
77
+          <label for="agereq">I am 18 years of age or older</label>
78
+        </td>
79
+      </tr>
80
+      <tr>
81
+        <td colspan="2" height="10"></td>
82
+      </tr>
83
+      <tr>
84
+        <td colspan="2" align="right"><input type="submit" name="submit" value="Submit" class="submit" /></td>
85
+      </tr>
86
+    </table>
87
+    <?php
88
+} else { ?>
89
+    <p>An email has been sent to the address that you provided. After you confirm your email address, you will be able
90
+      to log into your account.</p>
77 91
 
78
-<?  if ($NewInstall) {
79
-      echo "Since this is a new installation, you can log in directly without having to confirm your account.";
92
+    <?php  if ($NewInstall) {
93
+        echo "Since this is a new installation, you can log in directly without having to confirm your account.";
80 94
     }
81 95
 } ?>
82
-</div>
96
+  </div>
83 97
 </form>
84
-<?
98
+<?php
85 99
 View::show_footer();

+ 7
- 6
sections/register/step2.php View File

@@ -1,10 +1,11 @@
1
-<?
1
+<?php
2 2
 View::show_header('Registration Complete');
3 3
 ?>
4
-<div style="width: 500px;">
5
-  <strong>Congratulations! Your account has been created.</strong><br />
6
-  You can now log into your account using the <a href="login.php">login page</a>.
4
+
5
+<div style="width: 250px;">
6
+  <p><strong>Congratulations! Your account has been created.</strong></p>
7
+  <p>You can now log into your account using the <a href="login.php">login page</a>.</p>
7 8
 </div>
8
-<?
9
+
10
+<?php
9 11
 View::show_footer();
10
-?>

+ 2
- 2
static/styles/public/style.css View File

@@ -67,7 +67,7 @@ input[type="text"]:invalid, input[type="password"]:invalid {
67 67
   border-radius: 5px 5px 0 0;
68 68
 }
69 69
 
70
-#loginform input[type="submit"], #recoverform input[type="submit"] {
70
+#loginform input[type="submit"], #recoverform input[type="submit"], input[type="submit"] {
71 71
   width: 100%;
72 72
   background-color: #fbe180;
73 73
   font: 500 14px/29px Helvetica, Arial, sans-serif;
@@ -75,7 +75,7 @@ input[type="text"]:invalid, input[type="password"]:invalid {
75 75
   border-radius: 0 0 5px 5px;
76 76
   cursor: pointer;
77 77
 }
78
-#loginform input[type="submit"]:hover, #recoverform input[type="submit"]:hover {
78
+#loginform input[type="submit"]:hover, #recoverform input[type="submit"]:hover, input[type="submit"]:hover {
79 79
   background-color: #fff9c7;
80 80
 }
81 81
 

Loading…
Cancel
Save