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++; ?> @@ -57,4 +57,4 @@ ?>

Total amount in accounts: BTC

- \ No newline at end of file + 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 @@
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 @@
- \ No newline at end of file + 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("
",$e); } -?> \ No newline at end of file +?>