Browse Source

Merged in ctubio/ckpool/ctubio/show-error-message-in-red-only-once-and--1452382663479 (pull request #1)

Show error message in red, only once, and inside the correct form.
master
TheKano 9 years ago
parent
commit
c8143b8c1b
  1. 8
      pool/page_reg.php

8
pool/page_reg.php

@ -34,8 +34,8 @@ Your miner password should be '<b>x</b>' and <b>must not</b> use your login pass
$pg .= '<table cellpadding=5 cellspacing=0 border=1><tr><td class=dc>';
$pg .= '<h1>Login</h1>';
if (isset($data['data']['error']))
$pg .= "<br><b>".$data['data']['error']." - please try again</b><br><br>";
if (isset($data['data']['error']) && !isset($_POST['pass2']))
$pg .= "<br><span class=err>".$data['data']['error']." - please try again</span><br><br>";
$pg .= makeForm('');
$pg .= "
<table>
@ -55,8 +55,8 @@ Your miner password should be '<b>x</b>' and <b>must not</b> use your login pass
$pg.= '</td></tr><tr><td class=dc>';
$pg .= '<h1>Register</h1>';
if (isset($data['data']['error']))
$pg .= "<br><b>".$data['data']['error']." - please try again</b><br><br>";
if (isset($data['data']['error']) && isset($_POST['pass2']))
$pg .= "<br><span class=err>".$data['data']['error']." - please try again</span><br><br>";
$pg .= makeForm('');
$pg .= "
<table>

Loading…
Cancel
Save