Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 477352
Collapse All | Expand All

(-)./html/accounts.php (-2 / +2 lines)
Lines 36-42 Link Here
36
    $accounts = 0;
36
    $accounts = 0;
37
    while($r = mysql_fetch_assoc($q)){
37
    while($r = mysql_fetch_assoc($q)){
38
        $total_accounts += $r['balance'];
38
        $total_accounts += $r['balance'];
39
        $acounts++;
39
        $accounts++;
40
?>
40
?>
41
    <tr class="listingRow<?php echo $k;?>">
41
    <tr class="listingRow<?php echo $k;?>">
42
        <td align="right"><?php echo $r['account_id'];?></td>
42
        <td align="right"><?php echo $r['account_id'];?></td>
Lines 57-60 Link Here
57
?>    
57
?>    
58
</table>
58
</table>
59
<h4>Total amount in accounts: <?php echo number_format($total_accounts,8,".",",");?> BTC</h4>
59
<h4>Total amount in accounts: <?php echo number_format($total_accounts,8,".",",");?> BTC</h4>
60
</div>
60
</div>
(-)./html/main.php (-1 / +2 lines)
Lines 24-30 Link Here
24
    <label>Name</label> <?php echo $_SESSION['name'];?>
24
    <label>Name</label> <?php echo $_SESSION['name'];?>
25
</div>
25
</div>
26
<?php
26
<?php
27
    $actAcount = end(explode("_",$_SESSION['btaccount']));
27
    $tmp = explode("_",$_SESSION['btaccount']);
28
    $actAcount = end($tmp);
28
    $accountBalance = 0;
29
    $accountBalance = 0;
29
?>
30
?>
30
<div class="infoLine">
31
<div class="infoLine">
(-)./inc/general_functions.php (-2 / +2 lines)
Lines 2-8 Link Here
2
    defined("_V") || die("Direct access not allowed!");
2
    defined("_V") || die("Direct access not allowed!");
3
    
3
    
4
  function isValidEmail($email){
4
  function isValidEmail($email){
5
    return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email);
5
    return preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i", $email);
6
  }
6
  }
7
  
7
  
8
  function makeSQLSafe($str){
8
  function makeSQLSafe($str){
Lines 10-13 Link Here
10
      return mysql_real_escape_string($str);
10
      return mysql_real_escape_string($str);
11
  }
11
  }
12
    
12
    
13
?>
13
?>
(-)./login/login.php (-2 / +2 lines)
Lines 11-17 Link Here
11
</head>
11
</head>
12
<body>
12
<body>
13
<?php
13
<?php
14
    if($error){
14
    if(isset($error) && ($error)) {
15
?>
15
?>
16
  <div class="error"><?php echo $error;?></div>
16
  <div class="error"><?php echo $error;?></div>
17
<?php        
17
<?php        
Lines 119-122 Link Here
119
?>    
119
?>    
120
   </div>
120
   </div>
121
</body>
121
</body>
122
</html>
122
</html>
(-)./proc/doCreateAccount.php (-2 / +2 lines)
Lines 19-25 Link Here
19
    if($fwd == 1 && !$fwdto) $e[] = "You must enter a bitcoin address to forward to!";
19
    if($fwd == 1 && !$fwdto) $e[] = "You must enter a bitcoin address to forward to!";
20
    
20
    
21
    if(empty($e)){
21
    if(empty($e)){
22
        $sql = "SELECT * FROM accounts WHERE account_name LIKE '$name' AND uid = {$_SESSION['id']} AND id != $aid";
22
        $sql = "SELECT * FROM accounts WHERE account_name LIKE '$name' AND uid = {$_SESSION['id']}"; ## AND id != $aid";
23
        $q = mysql_query($sql);
23
        $q = mysql_query($sql);
24
        if(mysql_num_rows($q)) $e[] = "You already have another account with that same name!";                
24
        if(mysql_num_rows($q)) $e[] = "You already have another account with that same name!";                
25
    }    
25
    }    
Lines 47-50 Link Here
47
    }else{
47
    }else{
48
        $error = implode("<br/>",$e);
48
        $error = implode("<br/>",$e);
49
    }    
49
    }    
50
?>
50
?>

Return to bug 477352