Completed
Pull Request — master (#2472)
by Kevin
23:34 queued 05:01
created
html/inc/token.inc 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -27,6 +27,10 @@  discard block
 block discarded – undo
27 27
 define("TOKEN_DURATION_ONE_DAY", 86400);
28 28
 define("TOKEN_DURATION_ONE_WEEK", 604800);
29 29
 
30
+/**
31
+ * @param string $type
32
+ * @param integer $duration
33
+ */
30 34
 function create_token($userid, $type, $duration) {
31 35
     $token = random_string();
32 36
     $now = time();
@@ -46,6 +50,9 @@  discard block
 block discarded – undo
46 50
     return $result;
47 51
 }
48 52
 
53
+/**
54
+ * @param string $type
55
+ */
49 56
 function is_valid_token($userid, $token, $type) {
50 57
     $boincToken = BoincToken::lookup_valid_token($userid, $token, $type);
51 58
     if ( $boincToken == null ) {
Please login to merge, or discard this patch.
html/inc/user.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -113,6 +113,9 @@
 block discarded – undo
113 113
     return ($a->expavg_credit < $b->expavg_credit) ? 1 : -1;
114 114
 }
115 115
 
116
+/**
117
+ * @param boolean $personal
118
+ */
116 119
 function show_other_projects($user, $personal) {
117 120
     if (!isset($user->projects)) return;
118 121
     if (count($user->projects) < 2) return;
Please login to merge, or discard this patch.
html/user/delete_account_confirm.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
     page_head(tra("Delete Account"));
45 45
     
46 46
     echo "<p>".tra("Thank you for verifying ownership of your account.")."</p>"
47
-         ."<p>".tra("You can now delete your account by entering in your password below and clicking the \"Delete Account\" button.")."</p>"
48
-         ."<p>".tra("As a reminder, your account <b>cannot be recovered</b> once you delete it.")."</p>"
49
-         ."<br/>";
47
+            ."<p>".tra("You can now delete your account by entering in your password below and clicking the \"Delete Account\" button.")."</p>"
48
+            ."<p>".tra("As a reminder, your account <b>cannot be recovered</b> once you delete it.")."</p>"
49
+            ."<br/>";
50 50
     
51 51
     form_start(secure_url_base()."delete_account_confirm.php", "post");
52 52
     form_input_hidden("token", $token);
Please login to merge, or discard this patch.