Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 353626 Details for
Bug 477352
www-apps/phpcoin - A PHP frontend for Bitcoind
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for PHP
PHPCoin-20130719.patch (text/plain), 3.63 KB, created by
daktak
on 2013-07-19 06:35:31 UTC
(
hide
)
Description:
patch for PHP
Filename:
MIME Type:
Creator:
daktak
Created:
2013-07-19 06:35:31 UTC
Size:
3.63 KB
patch
obsolete
>diff -uNar ./html/accounts.php /var/tmp/portage/www-apps/PHPCoin-99999-base/work/PHPCoin-99999-new/html/accounts.php >--- ./html/accounts.php 2013-07-19 14:26:10.117714720 +1000 >+++ /var/tmp/portage/www-apps/PHPCoin-99999-base/work/PHPCoin-99999-new/html/accounts.php 2013-07-19 14:59:53.791960303 +1000 >@@ -36,7 +36,7 @@ > $accounts = 0; > while($r = mysql_fetch_assoc($q)){ > $total_accounts += $r['balance']; >- $acounts++; >+ $accounts++; > ?> > <tr class="listingRow<?php echo $k;?>"> > <td align="right"><?php echo $r['account_id'];?></td> >@@ -57,4 +57,4 @@ > ?> > </table> > <h4>Total amount in accounts: <?php echo number_format($total_accounts,8,".",",");?> BTC</h4> >-</div> >\ No newline at end of file >+</div> >diff -uNar ./html/main.php /var/tmp/portage/www-apps/PHPCoin-99999-base/work/PHPCoin-99999-new/html/main.php >--- ./html/main.php 2013-07-19 14:26:10.117714720 +1000 >+++ /var/tmp/portage/www-apps/PHPCoin-99999-base/work/PHPCoin-99999-new/html/main.php 2013-07-19 14:27:50.440846961 +1000 >@@ -24,7 +24,8 @@ > <label>Name</label> <?php echo $_SESSION['name'];?> > </div> > <?php >- $actAcount = end(explode("_",$_SESSION['btaccount'])); >+ $tmp = explode("_",$_SESSION['btaccount']); >+ $actAcount = end($tmp); > $accountBalance = 0; > ?> > <div class="infoLine"> >diff -uNar ./inc/general_functions.php /var/tmp/portage/www-apps/PHPCoin-99999-base/work/PHPCoin-99999-new/inc/general_functions.php >--- ./inc/general_functions.php 2013-07-19 14:26:10.117714720 +1000 >+++ /var/tmp/portage/www-apps/PHPCoin-99999-base/work/PHPCoin-99999-new/inc/general_functions.php 2013-07-19 14:53:46.108225914 +1000 >@@ -2,7 +2,7 @@ > defined("_V") || die("Direct access not allowed!"); > > function isValidEmail($email){ >- return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email); >+ return preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i", $email); > } > > function makeSQLSafe($str){ >@@ -10,4 +10,4 @@ > return mysql_real_escape_string($str); > } > >-?> >\ No newline at end of file >+?> >diff -uNar ./login/login.php /var/tmp/portage/www-apps/PHPCoin-99999-base/work/PHPCoin-99999-new/login/login.php >--- ./login/login.php 2013-07-19 14:26:10.119715720 +1000 >+++ /var/tmp/portage/www-apps/PHPCoin-99999-base/work/PHPCoin-99999-new/login/login.php 2013-07-19 14:27:17.772522348 +1000 >@@ -11,7 +11,7 @@ > </head> > <body> > <?php >- if($error){ >+ if(isset($error) && ($error)) { > ?> > <div class="error"><?php echo $error;?></div> > <?php >@@ -119,4 +119,4 @@ > ?> > </div> > </body> >-</html> >\ No newline at end of file >+</html> >diff -uNar ./proc/doCreateAccount.php /var/tmp/portage/www-apps/PHPCoin-99999-base/work/PHPCoin-99999-new/proc/doCreateAccount.php >--- ./proc/doCreateAccount.php 2013-07-19 14:26:10.119715720 +1000 >+++ /var/tmp/portage/www-apps/PHPCoin-99999-base/work/PHPCoin-99999-new/proc/doCreateAccount.php 2013-07-19 14:28:04.196720876 +1000 >@@ -19,7 +19,7 @@ > if($fwd == 1 && !$fwdto) $e[] = "You must enter a bitcoin address to forward to!"; > > if(empty($e)){ >- $sql = "SELECT * FROM accounts WHERE account_name LIKE '$name' AND uid = {$_SESSION['id']} AND id != $aid"; >+ $sql = "SELECT * FROM accounts WHERE account_name LIKE '$name' AND uid = {$_SESSION['id']}"; ## AND id != $aid"; > $q = mysql_query($sql); > if(mysql_num_rows($q)) $e[] = "You already have another account with that same name!"; > } >@@ -47,4 +47,4 @@ > }else{ > $error = implode("<br/>",$e); > } >-?> >\ No newline at end of file >+?>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 477352
: 353626 |
353628