├── LICENSE.md ├── README.md ├── account.php ├── ajax.php ├── ajax ├── balances.php ├── buyorders-BTC.php ├── buyorders-BTCRY.php ├── buyorders-BTCRYX.php ├── buyorders.php ├── footer.php ├── menu.php ├── orderscancel.php ├── orderspast-BTC.php ├── orderspast-BTCRY.php ├── orderspast-BTCRYX.php ├── orderspast.php ├── pending-deposits.php ├── sellorders-BTC.php ├── sellorders-BTCRY.php ├── sellorders-BTCRYX.php ├── sellorders.php └── stats.php ├── api.php ├── auth.php ├── coins.php ├── coins_class.php ├── config.php ├── database.php ├── db.sql ├── functions_main.php ├── fundsbtc.php ├── fundsbtcry.php ├── fundsbtcryx.php ├── gettransactions.php ├── home.php ├── image ├── favicon.ico ├── logo.png └── logob.png ├── index.php ├── js └── jquery-1.9.1.js ├── jsonRPCClient.php ├── logout.php ├── market.php ├── my_all_coins.php ├── my_coins ├── BitQuark.php ├── Bitcoin.php ├── Bitcrystal.php ├── Bitcrystalx.php ├── Dogecoin.php ├── Karmacoin.php ├── Litecoin.php ├── Pandacoin.php └── my_coin.php ├── online.php ├── orders.php ├── savebtc.php ├── savebtcry.php ├── savebtcryx.php ├── stylesheet.css ├── transactions.php └── w_coins_settings.php /LICENSE.md: -------------------------------------------------------------------------------- 1 | This website script is opensource and free to use. 2 | 3 | If used the script must remain opensource and any changes you make must be published openly. 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | BitcoinExchangeScript 2 | ===================== 3 | 4 | A opensource exchange script for digital currencies like Bitcoin and other alt-coins. 5 | 6 | The trading section is not fully completed at this time. 7 | 8 | Feel free to contribute 9 | 10 | 11 | 12 | zelles exchange fork + many updates + fully functionable market trading section added + recover email option + save money to wallet + design bugg fixes + many more 13 | 14 | http://bitcrystal.de 15 | 16 | -------------------------------------------------------------------------------- /account.php: -------------------------------------------------------------------------------- 1 | = 3 && $pLength <= 30) { 18 | if($pnewpass==$preppass) { 19 | $pcurpass = md5($pcurpass); 20 | $Query = mysql_query("SELECT * FROM users WHERE username='$user_session' AND trade_id = '".$my_coins->getTradeIdAccount()."'"); 21 | while($Row = mysql_fetch_assoc($Query)) { 22 | $db_Change_Pass_Check = $Row['password']; 23 | } 24 | if($pcurpass==$db_Change_Pass_Check) { 25 | $pnewpass = md5($pnewpass); 26 | $sql = "UPDATE users SET password='$pnewpass' WHERE username='$user_session' AND trade_id = '".$my_coins->getTradeIdAccount()."'"; 27 | $result = mysql_query($sql); 28 | if($result) { 29 | $withdraw_message = 'Your password has been changed!'; 30 | } else { 31 | $withdraw_message = 'Internal error while trying to change!'; 32 | } 33 | } else { 34 | $withdraw_message = 'The current password was entered incorrectly!'; 35 | } 36 | } else { 37 | $withdraw_message = 'Your new password was not repeated correctly!'; 38 | } 39 | } else { 40 | $withdraw_message = "Password must be between 3 and 30 characters!"; 41 | } 42 | } else { 43 | $withdraw_message = 'You must enter a new password!'; 44 | } 45 | } else { 46 | $withdraw_message = 'You must enter your current password!'; 47 | } 48 | } 49 | ?> 50 | 51 | 52 | <?php echo $script_title; ?> 53 | 54 | 55 | 56 | 68 | 69 | 70 |
71 |
72 |
73 | 74 | 75 | 78 | 81 | 91 | 92 |
76 | Logo 77 | 79 | [zelles] 80 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 |
HomeTransactionsAccountLogout
90 |
93 |
94 |

95 | '.$withdraw_message.'

'; } ?> 96 | 97 | 98 | 133 | 135 | 147 | 148 |
99 |
100 | 101 | 102 | 129 | 130 |
103 | 104 | 105 | 108 | 126 | 127 |
106 | 107 | 109 |
110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 |
Change passwords:
124 |
125 |
128 |
131 |
132 |
134 | 136 | 137 |
138 | 139 |
140 |

141 |
142 | 143 |
144 |

145 |
Online:

146 |
149 |

150 | 151 |

152 |
153 | 154 | 155 | -------------------------------------------------------------------------------- /ajax.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ajax/balances.php: -------------------------------------------------------------------------------- 1 | outputBalances($user_session); 4 | ?> -------------------------------------------------------------------------------- /ajax/buyorders-BTC.php: -------------------------------------------------------------------------------- 1 | '; 4 | $sql = "SELECT * FROM buy_orderbook WHERE want='".$my_coins->coins_names_prefix[0]."' and trade_id='".$my_coins->getTradeId()."' and processed='1'"; 5 | $result = mysql_query($sql); 6 | $count = mysql_num_rows($result); 7 | if($count!=0) { 8 | $Query = mysql_query("SELECT amount, rate FROM buy_orderbook WHERE want='".$my_coins->coins_names_prefix[0]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate DESC"); 9 | while($Row = mysql_fetch_assoc($Query)) { 10 | $Orders_Sells_Amount = $Row['amount']; 11 | $Orders_Sells_Rate = $Row['rate']; 12 | $Orders_Sells_Total = $Orders_Sells_Amount * $Orders_Sells_Rate; 13 | $Orders_Sells_Total = satoshitrim(satoshitize($Orders_Sells_Total)); 14 | $Buys_td .= ' 15 | '.$Orders_Sells_Amount.' 16 | '.$Orders_Sells_Rate.' 17 | '.$Orders_Sells_Total.' 18 | '; 19 | } 20 | $buy_subtotal = "0"; 21 | $Query = mysql_query("SELECT amount,rate FROM buy_orderbook WHERE want='".$my_coins->coins_names_prefix[0]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate ASC"); 22 | while($Row = mysql_fetch_assoc($Query)) { 23 | $buy_amount = $Row['amount']; 24 | $buy_rate = $Row['rate']; 25 | $buy_subtotal += ($buy_amount * $buy_rate); 26 | } 27 | $cncvalue = satoshitrim(satoshitize($buy_subtotal)); 28 | echo ' 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | '.$Buys_td.'
Buy Orders
Total '.$my_coins->coins_names_prefix[0].': '.$btevalue.'
Amount ('.$my_coins->coins_names_prefix[1].')Rate ('.$my_coins->coins_names_prefix[0].')Total ('.$my_coins->coins_names_prefix[0].')
'; 38 | } else { 39 | echo ' 40 | 41 | 42 | 43 | 44 | 45 |
Buy Orders
Currently no buy offers
'; 46 | } 47 | echo ''; 48 | ?> -------------------------------------------------------------------------------- /ajax/buyorders-BTCRY.php: -------------------------------------------------------------------------------- 1 | '; 4 | $sql = "SELECT * FROM buy_orderbook WHERE want='".$my_coins->coins_names_prefix[1]."' and trade_id='".$my_coins->getTradeId()."' and processed='1'"; 5 | $result = mysql_query($sql); 6 | $count = mysql_num_rows($result); 7 | if($count!=0) { 8 | $Query = mysql_query("SELECT action, amount, rate FROM buy_orderbook WHERE want='".$my_coins->coins_names_prefix[1]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate DESC"); 9 | while($Row = mysql_fetch_assoc($Query)) { 10 | $Orders_Sells_Action = $Row['action']; 11 | $Orders_Sells_Amount = $Row['amount']; 12 | $Orders_Sells_Rate = $Row['rate']; 13 | $Orders_Sells_Total = $Orders_Sells_Amount * $Orders_Sells_Rate; 14 | $Orders_Sells_Total = satoshitrim(satoshitize($Orders_Sells_Total)); 15 | $Buys_td .= ' 16 | '.$Orders_Sells_Amount.' 17 | '.$Orders_Sells_Rate.' 18 | '.$Orders_Sells_Total.' 19 | '; 20 | } 21 | $buy_subtotal = "0"; 22 | $Query = mysql_query("SELECT amount,rate FROM buy_orderbook WHERE want='".$my_coins->coins_names_prefix[1]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate ASC"); 23 | while($Row = mysql_fetch_assoc($Query)) { 24 | $buy_amount = $Row['amount']; 25 | $buy_rate = $Row['rate']; 26 | $buy_subtotal += ($buy_amount * $buy_rate); 27 | } 28 | $cncvalue = satoshitrim(satoshitize($buy_subtotal)); 29 | echo ' 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | '.$Buys_td.'
Buy Orders
Total '.$my_coins->coins_names_prefix[2].': '.$cncvalue.'
Amount ('.$my_coins->coins_names_prefix[1].')Rate ('.$my_coins->coins_names_prefix[2].')Total ('.$my_coins->coins_names_prefix[2].')
'; 39 | } else { 40 | echo ' 41 | 42 | 43 | 44 | 45 | 46 |
Buy Orders
Currently no buy offers
'; 47 | } 48 | echo ''; 49 | ?> -------------------------------------------------------------------------------- /ajax/buyorders-BTCRYX.php: -------------------------------------------------------------------------------- 1 | '; 4 | $sql = "SELECT * FROM buy_orderbook WHERE want='".$my_coins->coins_names_prefix[2]."' and trade_id='".$my_coins->getTradeId()."' and processed='1'"; 5 | $result = mysql_query($sql); 6 | $count = mysql_num_rows($result); 7 | if($count!=0) { 8 | $Query = mysql_query("SELECT action, amount, rate FROM buy_orderbook WHERE want='".$my_coins->coins_names_prefix[2]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate DESC"); 9 | while($Row = mysql_fetch_assoc($Query)) { 10 | $Orders_Sells_Action = $Row['action']; 11 | $Orders_Sells_Amount = $Row['amount']; 12 | $Orders_Sells_Rate = $Row['rate']; 13 | $Orders_Sells_Total = $Orders_Sells_Amount * $Orders_Sells_Rate; 14 | $Orders_Sells_Total = satoshitrim(satoshitize($Orders_Sells_Total)); 15 | $Buys_td .= ' 16 | '.$Orders_Sells_Amount.' 17 | '.$Orders_Sells_Rate.' 18 | '.$Orders_Sells_Total.' 19 | '; 20 | } 21 | $buy_subtotal = "0"; 22 | $Query = mysql_query("SELECT amount,rate FROM buy_orderbook WHERE want='".$my_coins->coins_names_prefix[2]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate ASC"); 23 | while($Row = mysql_fetch_assoc($Query)) { 24 | $buy_amount = $Row['amount']; 25 | $buy_rate = $Row['rate']; 26 | $buy_subtotal += ($buy_amount * $buy_rate); 27 | } 28 | $cncvalue = satoshitrim(satoshitize($buy_subtotal)); 29 | echo ' 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | '.$Buys_td.'
Buy Orders
Total '.$my_coins->coins_names_prefix[2].': '.$cncvalue.'
Amount ('.$my_coins->coins_names_prefix[1].')Rate ('.$my_coins->coins_names_prefix[2].')Total ('.$my_coins->coins_names_prefix[2].')
'; 39 | } else { 40 | echo ' 41 | 42 | 43 | 44 | 45 | 46 |
Buy Orders
Currently no buy offers
'; 47 | } 48 | echo ''; 49 | ?> -------------------------------------------------------------------------------- /ajax/buyorders.php: -------------------------------------------------------------------------------- 1 | '; 4 | $sql = "SELECT * FROM buy_orderbook WHERE want='".$BTC."' and trade_id='".$my_coins->getTradeId()."' and trade_with = '".$BTCRYX."' and processed='1'"; 5 | $result = mysql_query($sql); 6 | $count = mysql_num_rows($result); 7 | if($count!=0) { 8 | $Query = mysql_query("SELECT amount, rate FROM buy_orderbook WHERE want='".$BTC."' and trade_id='".$my_coins->getTradeId()."' and processed='1' and trade_with = '".$BTCRYX."' ORDER BY rate DESC"); 9 | while($Row = mysql_fetch_assoc($Query)) { 10 | $Orders_Sells_Amount = $Row['amount']; 11 | $Orders_Sells_Rate = $Row['rate']; 12 | $Orders_Sells_Total = $Orders_Sells_Amount * $Orders_Sells_Rate; 13 | $Orders_Sells_Total = satoshitrim(satoshitize($Orders_Sells_Total)); 14 | $Buys_td .= ' 15 | '.$Orders_Sells_Amount.' 16 | '.$Orders_Sells_Rate.' 17 | '.$Orders_Sells_Total.' 18 | '; 19 | } 20 | $buy_subtotal = "0"; 21 | $Query = mysql_query("SELECT amount,rate FROM buy_orderbook WHERE want='".$BTC."' and trade_id='".$my_coins->getTradeId()."' and trade_with = '".$BTCRYX."' and processed='1' ORDER BY rate ASC"); 22 | while($Row = mysql_fetch_assoc($Query)) { 23 | $buy_amount = $Row['amount']; 24 | $buy_rate = $Row['rate']; 25 | $buy_subtotal += ($buy_amount * $buy_rate); 26 | } 27 | $btevalue = satoshitrim(satoshitize($buy_subtotal)); 28 | echo ' 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | '.$Buys_td.'
Buy Orders
Total '.$BTC.': '.$btevalue.'
Amount ('.$BTCRYX.')Rate ('.$BTC.')Total ('.$BTC.')
'; 38 | } else { 39 | echo ' 40 | 41 | 42 | 43 | 44 | 45 |
Buy Orders
Currently no buy offers
'; 46 | } 47 | echo ''; 48 | ?> -------------------------------------------------------------------------------- /ajax/footer.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 8 | 9 | 12 | 13 |
6 | outputFooter(); ?> 7 |
10 | Other: API 11 |
14 |
-------------------------------------------------------------------------------- /ajax/menu.php: -------------------------------------------------------------------------------- 1 | Menu: 2 | -------------------------------------------------------------------------------- /ajax/orderscancel.php: -------------------------------------------------------------------------------- 1 | getTradeId()."' and trade_with = '".$BTCRYX."' and (processed = '1' or processed = '3' or processed > 1000) ORDER BY rate ASC"; 8 | $result = mysql_query($sql); 9 | $count = mysql_num_rows($result); 10 | if($count!=0) { 11 | echo ' 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | '; 22 | $Query = mysql_query($sql); 23 | while($Row = mysql_fetch_assoc($Query)) { 24 | $Orders_Processed = $Row['processed']; 25 | $Orders_DATE = $Row['date']; 26 | $Orders_Action = $Row['action']; 27 | $Orders_Amount = $Row['amount']; 28 | $Orders_Rate = $Row['rate']; 29 | $Orders_Total = $Row['total']; 30 | $Orders_ID = $Row['id']; 31 | $cancel_order="Cancel"; 32 | $cancel_order_="cancel"; 33 | if($Orders_Action=="buy") { $Orders_Action = '
Buy
'; } 34 | if($Orders_Action=="sell") { $Orders_Action = '
Sell
'; } 35 | if($Orders_Processed>1000) 36 | { 37 | $cancel = true; 38 | $diff = time()-$Orders_Processed; 39 | if($diff >= 300) 40 | { 41 | $cancel=false; 42 | $diff = ""; 43 | } else { 44 | $diff = (300 - $diff); 45 | $diff = " (".$diff.")"; 46 | } 47 | 48 | if($cancel) 49 | { 50 | $cancel_order = "Delete".$diff; 51 | $cancel_order_ = "delete"; 52 | } else { 53 | $sql = "UPDATE ".$actions[$i]."_orderbook SET processed='1' WHERE want='".$BTC."' and id='$Orders_ID' and username='$user_session' and trade_id = '".$my_coins->getTradeId()."' and trade_with = '$BTCRYX' and processed = '".$Orders_Processed."'"; 54 | $result = mysql_query($sql); 55 | } 56 | } else if ($Orders_Processed == 3) { 57 | $sql = "UPDATE ".$actions[$i]."_orderbook SET processed='".time()."' WHERE want='".$BTC."' and id='$Orders_ID' and username='$user_session' and trade_id = '".$my_coins->getTradeId()."' and trade_with = '$BTCRYX' and processed = '3'"; 58 | $result = mysql_query($sql); 59 | $cancel_order = "Delete"; 60 | $cancel_order_ = "delete"; 61 | } 62 | 63 | echo ' 64 | 65 | 66 | 67 | 68 | 69 | 70 | '; 71 | } 72 | echo '
Your '.$actions_[$i].' Orders
DateActionAmount ('.$BTCRYX.')Rate ('.$BTC.')Total ('.$BTC.')Cancel Order
'.$Orders_DATE.''.$Orders_Action.''.$Orders_Amount.''.$Orders_Rate.''.$Orders_Total.'
'.$cancel_order.'
'; 73 | } else { 74 | echo ' 75 | 76 | 77 | 78 | 79 | 80 |
Your '.$actions_[$i].' Orders
There has been no '.$actions[$i].' orders created!
'; 81 | } 82 | } 83 | ?> -------------------------------------------------------------------------------- /ajax/orderspast-BTC.php: -------------------------------------------------------------------------------- 1 | coins_names_prefix[0]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate DESC"; 4 | $result = mysql_query($sql); 5 | $count = mysql_num_rows($result); 6 | if($count!=0) { 7 | echo ' 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | '; 17 | $Query = mysql_query("SELECT date, action, amount, rate, total FROM ordersfilled WHERE want='".$my_coins->coins_names_prefix[0]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY id DESC"); 18 | while($Row = mysql_fetch_assoc($Query)) { 19 | $Orders_Sells_DATE = $Row['date']; 20 | $Orders_Sells_Action = $Row['action']; 21 | $Orders_Sells_Amount = $Row['amount']; 22 | $Orders_Sells_Rate = $Row['rate']; 23 | $Orders_Sells_Total = $Row['total']; 24 | if($Orders_Sells_Action=="buy") { $Orders_Sells_Action = '
Buy
'; } 25 | if($Orders_Sells_Action=="sell") { $Orders_Sells_Action = '
Sell
'; } 26 | echo ' 27 | 28 | 29 | 30 | 31 | 32 | '; 33 | } 34 | echo '
Past Orders
DateActionAmount ('.$my_coins->coins_names_prefix[1].')Rate ('.$my_coins->coins_names_prefix[0].')Total ('.$my_coins->coins_names_prefix[0].')
'.$Orders_Sells_DATE.''.$Orders_Sells_Action.''.$Orders_Sells_Amount.''.$Orders_Sells_Rate.''.$Orders_Sells_Total.'
'; 35 | } else { 36 | echo ' 37 | 38 | 39 | 40 | 41 | 42 |
Past Orders
There has been no trades completed.
'; 43 | } 44 | ?> -------------------------------------------------------------------------------- /ajax/orderspast-BTCRY.php: -------------------------------------------------------------------------------- 1 | coins_names_prefix[1]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate DESC"; 4 | $result = mysql_query($sql); 5 | $count = mysql_num_rows($result); 6 | if($count!=0) { 7 | echo ' 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | '; 17 | $Query = mysql_query("SELECT date, action, amount, rate, total FROM ordersfilled WHERE want='".$my_coins->coins_names_prefix[1]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY id DESC"); 18 | while($Row = mysql_fetch_assoc($Query)) { 19 | $Orders_Sells_DATE = $Row['date']; 20 | $Orders_Sells_Action = $Row['action']; 21 | $Orders_Sells_Amount = $Row['amount']; 22 | $Orders_Sells_Rate = $Row['rate']; 23 | $Orders_Sells_Total = $Row['total']; 24 | if($Orders_Sells_Action=="buy") { $Orders_Sells_Action = '
Buy
'; } 25 | if($Orders_Sells_Action=="sell") { $Orders_Sells_Action = '
Sell
'; } 26 | echo ' 27 | 28 | 29 | 30 | 31 | 32 | '; 33 | } 34 | echo '
Past Orders
DateActionAmount ('.$my_coins->coins_names_prefix[2].')Rate ('.$my_coins->coins_names_prefix[1].')Total ('.$my_coins->coins_names_prefix[1].')
'.$Orders_Sells_DATE.''.$Orders_Sells_Action.''.$Orders_Sells_Amount.''.$Orders_Sells_Rate.''.$Orders_Sells_Total.'
'; 35 | } else { 36 | echo ' 37 | 38 | 39 | 40 | 41 | 42 |
Past Orders
There has been no trades completed.
'; 43 | } 44 | ?> -------------------------------------------------------------------------------- /ajax/orderspast-BTCRYX.php: -------------------------------------------------------------------------------- 1 | coins_names_prefix[2]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate DESC"; 4 | $result = mysql_query($sql); 5 | $count = mysql_num_rows($result); 6 | if($count!=0) { 7 | echo ' 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | '; 17 | $Query = mysql_query("SELECT date, action, amount, rate, total FROM ordersfilled WHERE want='".$my_coins->coins_names_prefix[2]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY id DESC"); 18 | while($Row = mysql_fetch_assoc($Query)) { 19 | $Orders_Sells_DATE = $Row['date']; 20 | $Orders_Sells_Action = $Row['action']; 21 | $Orders_Sells_Amount = $Row['amount']; 22 | $Orders_Sells_Rate = $Row['rate']; 23 | $Orders_Sells_Total = $Row['total']; 24 | if($Orders_Sells_Action=="buy") { $Orders_Sells_Action = '
Buy
'; } 25 | if($Orders_Sells_Action=="sell") { $Orders_Sells_Action = '
Sell
'; } 26 | echo ' 27 | 28 | 29 | 30 | 31 | 32 | '; 33 | } 34 | echo '
Past Orders
DateActionAmount ('.$my_coins->coins_names_prefix[1].')Rate ('.$my_coins->coins_names_prefix[2].')Total ('.$my_coins->coins_names_prefix[2].')
'.$Orders_Sells_DATE.''.$Orders_Sells_Action.''.$Orders_Sells_Amount.''.$Orders_Sells_Rate.''.$Orders_Sells_Total.'
'; 35 | } else { 36 | echo ' 37 | 38 | 39 | 40 | 41 | 42 |
Past Orders
There has been no trades completed.
'; 43 | } 44 | ?> -------------------------------------------------------------------------------- /ajax/orderspast.php: -------------------------------------------------------------------------------- 1 | getTradeId()."' and trade_with = '".$BTCRYX."' and processed='1' ORDER BY rate DESC"; 4 | $result = mysql_query($sql); 5 | $count = mysql_num_rows($result); 6 | if($count!=0) { 7 | echo ' 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | '; 17 | $Query = mysql_query("SELECT date, action, amount, rate, total FROM ordersfilled WHERE want='".$BTC."' and trade_id='".$my_coins->getTradeId()."' and trade_with = '".$BTCRYX."' and processed='1' ORDER BY id DESC"); 18 | while($Row = mysql_fetch_assoc($Query)) { 19 | $Orders_Sells_DATE = $Row['date']; 20 | $Orders_Sells_Action = $Row['action']; 21 | $Orders_Sells_Amount = $Row['amount']; 22 | $Orders_Sells_Rate = $Row['rate']; 23 | $Orders_Sells_Total = $Row['total']; 24 | if($Orders_Sells_Action=="buy") { $Orders_Sells_Action = '
Buy
'; } 25 | if($Orders_Sells_Action=="sell") { $Orders_Sells_Action = '
Sell
'; } 26 | echo ' 27 | 28 | 29 | 30 | 31 | 32 | '; 33 | } 34 | echo '
Past Orders
DateActionAmount ('.$BTCRYX.')Rate ('.$BTC.')Total ('.$BTC.')
'.$Orders_Sells_DATE.''.$Orders_Sells_Action.''.$Orders_Sells_Amount.''.$Orders_Sells_Rate.''.$Orders_Sells_Total.'
'; 35 | } else { 36 | echo ' 37 | 38 | 39 | 40 | 41 | 42 |
Past Orders
There has been no trades completed.
'; 43 | } 44 | ?> -------------------------------------------------------------------------------- /ajax/pending-deposits.php: -------------------------------------------------------------------------------- 1 | getWalletId($user_session,$Bitcoind[$i]["cid"]); 14 | $Bitcoind_List_Transactions = $Bitcoind[$i]["daemon"]->listtransactions($wallet_id,50); 15 | $name = $Bitcoind[$i]["name"]; 16 | $prefix = $Bitcoind[$i]["prefix"]; 17 | foreach($Bitcoind_List_Transactions as $Bitcoind_List_Transaction) { 18 | if($bold_txxs=="") { $bold_txxs = "color: #666666; "; } else { $bold_txxs = ""; } 19 | if($Bitcoind_List_Transaction['category']=="receive") { 20 | if(5>=$Bitcoind_List_Transaction['confirmations']) { 21 | $TXSSS_DISP = "1"; 22 | $TXSSS .= ' 23 | '.abs($Bitcoind_List_Transaction['amount']).' '.$prefix.' / '.$Bitcoind_List_Transaction['confirmations'].' confs 24 | '; 25 | } 26 | } 27 | } 28 | $wallet_id=$my_coins->getWalletId($user_session,$Bitcrystald[$i]["cid"]); 29 | $Bitcrystald_List_Transactions = $Bitcrystald[$i]["daemon"]->listtransactions($wallet_id,10); 30 | $name = $Bitcrystald[$i]["name"]; 31 | $prefix = $Bitcrystald[$i]["prefix"]; 32 | foreach($Bitcrystald_List_Transactions as $Bitcrystald_List_Transaction) { 33 | if($bold_txxs=="") { $bold_txxs = "color: #666666; "; } else { $bold_txxs = ""; } 34 | if($Bitcrystald_List_Transaction['category']=="receive") { 35 | if(5>=$Bitcrystald_List_Transaction['confirmations']) { 36 | $TXSSS_DISP = "1"; 37 | $TXSSS .= ' 38 | '.abs($Bitcrystald_List_Transaction['amount']).' '.$prefix.' / '.$Bitcrystald_List_Transaction['confirmations'].' confs 39 | '; 40 | } 41 | } 42 | } 43 | $wallet_id=$my_coins->getWalletId($user_session,$Bitcrystalxd[$i]["cid"]); 44 | $Bitcrystalxd_List_Transactions = $Bitcrystalxd[$i]["daemon"]->listtransactions($wallet_id,10); 45 | $name = $Bitcrystalxd[$i]["name"]; 46 | $prefix = $Bitcrystalxd[$i]["prefix"]; 47 | foreach($Bitcrystalxd_List_Transactions as $Bitcrystalxd_List_Transaction) { 48 | if($bold_txxs=="") { $bold_txxs = "color: #666666; "; } else { $bold_txxs = ""; } 49 | if($Bitcrystalxd_List_Transaction['category']=="receive") { 50 | if(5>=$Bitcrystalxd_List_Transaction['confirmations']) { 51 | $TXSSS_DISP = "1"; 52 | $TXSSS .= ' 53 | '.abs($Bitcrystalxd_List_Transaction['amount']).' '.$prefix.' / '.$Bitcrystalxd_List_Transaction['confirmations'].' confs 54 | '; 55 | } 56 | } 57 | } 58 | } 59 | if($TXSSS_DISP=="1") { 60 | echo '
61 | Incoming: 62 | '.$TXSSS.'
63 | 64 |
65 |

'; 66 | } 67 | 68 | } 69 | ?> -------------------------------------------------------------------------------- /ajax/sellorders-BTC.php: -------------------------------------------------------------------------------- 1 | '; 4 | $sql = "SELECT * FROM sell_orderbook WHERE want='BTC' and processed='1' and trade_id = '".$my_coins->getTradeId()."'"; 5 | $result = mysql_query($sql); 6 | $count = mysql_num_rows($result); 7 | if($count!=0) { 8 | $Query = mysql_query("SELECT amount, rate FROM sell_orderbook WHERE want='".$my_coins->coins_names_prefix[0]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate ASC"); 9 | while($Row = mysql_fetch_assoc($Query)) { 10 | $Orders_Sells_Amount = $Row['amount']; 11 | $Orders_Sells_Rate = $Row['rate']; 12 | $Orders_Sells_Total = $Orders_Sells_Amount * $Orders_Sells_Rate; 13 | $Orders_Sells_Total = satoshitrim(satoshitize($Orders_Sells_Total)); 14 | $Sells_td .= ' 15 | '.$Orders_Sells_Amount.' 16 | '.$Orders_Sells_Rate.' 17 | '.$Orders_Sells_Total.' 18 | '; 19 | } 20 | $buy_subtotal = "0"; 21 | $Query = mysql_query("SELECT amount FROM sell_orderbook WHERE want='".$my_coins->coins_names_prefix[0]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate ASC"); 22 | while($Row = mysql_fetch_assoc($Query)) { 23 | $buy_amount = $Row['amount']; 24 | $buy_subtotal += $buy_amount; 25 | } 26 | $cncvalue = satoshitrim(satoshitize($buy_subtotal)); 27 | echo ' 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | '.$Sells_td.'
Sell Orders
Total '.$my_coins->coins_names_prefix[1].': '.$cncvalue.'
Amount ('.$my_coins->coins_names_prefix[1].')Rate ('.$my_coins->coins_names_prefix[0].')Total ('.$my_coins->coins_names_prefix[0].')
'; 37 | } else { 38 | echo ' 39 | 40 | 41 | 42 | 43 | 44 |
Sell Orders
Currently no sell offers
'; 45 | } 46 | echo ''; 47 | ?> -------------------------------------------------------------------------------- /ajax/sellorders-BTCRY.php: -------------------------------------------------------------------------------- 1 | '; 4 | $sql = "SELECT * FROM sell_orderbook WHERE want='".$my_coins->coins_names_prefix[1]."' and trade_id='".$my_coins->getTradeId()."' and processed='1'"; 5 | $result = mysql_query($sql); 6 | $count = mysql_num_rows($result); 7 | if($count!=0) { 8 | $Query = mysql_query("SELECT amount, rate FROM sell_orderbook WHERE want='".$my_coins->coins_names_prefix[1]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate ASC"); 9 | while($Row = mysql_fetch_assoc($Query)) { 10 | $Orders_Sells_Amount = $Row['amount']; 11 | $Orders_Sells_Rate = $Row['rate']; 12 | $Orders_Sells_Total = $Orders_Sells_Amount * $Orders_Sells_Rate; 13 | $Orders_Sells_Total = satoshitrim(satoshitize($Orders_Sells_Total)); 14 | $Sells_td .= ' 15 | '.$Orders_Sells_Amount.' 16 | '.$Orders_Sells_Rate.' 17 | '.$Orders_Sells_Total.' 18 | '; 19 | } 20 | $buy_subtotal = "0"; 21 | $Query = mysql_query("SELECT amount FROM sell_orderbook WHERE want='".$my_coins->coins_names_prefix[1]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate ASC"); 22 | while($Row = mysql_fetch_assoc($Query)) { 23 | $buy_amount = $Row['amount']; 24 | $buy_subtotal += $buy_amount; 25 | } 26 | $cncvalue = satoshitrim(satoshitize($buy_subtotal)); 27 | echo ' 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | '.$Sells_td.'
Sell Orders
Total '.$my_coins->coins_names_prefix[1].': '.$cncvalue.'
Amount ('.$my_coins->coins_names_prefix[1].')Rate ('.$my_coins->coins_names_prefix[2].')Total ('.$my_coins->coins_names_prefix[2].')
'; 37 | } else { 38 | echo ' 39 | 40 | 41 | 42 | 43 | 44 |
Sell Orders
Currently no sell offers
'; 45 | } 46 | echo ''; 47 | ?> -------------------------------------------------------------------------------- /ajax/sellorders-BTCRYX.php: -------------------------------------------------------------------------------- 1 | '; 4 | $sql = "SELECT * FROM sell_orderbook WHERE want='".$my_coins->coins_names_prefix[2]."' and trade_id='".$my_coins->getTradeId()."' and processed='1'"; 5 | $result = mysql_query($sql); 6 | $count = mysql_num_rows($result); 7 | if($count!=0) { 8 | $Query = mysql_query("SELECT amount, rate FROM sell_orderbook WHERE want='".$my_coins->coins_names_prefix[2]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate ASC"); 9 | while($Row = mysql_fetch_assoc($Query)) { 10 | $Orders_Sells_Amount = $Row['amount']; 11 | $Orders_Sells_Rate = $Row['rate']; 12 | $Orders_Sells_Total = $Orders_Sells_Amount * $Orders_Sells_Rate; 13 | $Orders_Sells_Total = satoshitrim(satoshitize($Orders_Sells_Total)); 14 | $Sells_td .= ' 15 | '.$Orders_Sells_Amount.' 16 | '.$Orders_Sells_Rate.' 17 | '.$Orders_Sells_Total.' 18 | '; 19 | } 20 | $buy_subtotal = "0"; 21 | $Query = mysql_query("SELECT amount FROM sell_orderbook WHERE want='".$my_coins->coins_names_prefix[2]."' and trade_id='".$my_coins->getTradeId()."' and processed='1' ORDER BY rate ASC"); 22 | while($Row = mysql_fetch_assoc($Query)) { 23 | $buy_amount = $Row['amount']; 24 | $buy_subtotal += $buy_amount; 25 | } 26 | $cncvalue = satoshitrim(satoshitize($buy_subtotal)); 27 | echo ' 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | '.$Sells_td.'
Sell Orders
Total '.$my_coins->coins_names_prefix[1].': '.$cncvalue.'
Amount ('.$my_coins->coins_names_prefix[1].')Rate ('.$my_coins->coins_names_prefix[2].')Total ('.$my_coins->coins_names_prefix[2].')
'; 37 | } else { 38 | echo ' 39 | 40 | 41 | 42 | 43 | 44 |
Sell Orders
Currently no sell offers
'; 45 | } 46 | echo ''; 47 | ?> -------------------------------------------------------------------------------- /ajax/sellorders.php: -------------------------------------------------------------------------------- 1 | '; 4 | $sql = "SELECT * FROM sell_orderbook WHERE want='".$BTC."' and trade_id = '".$my_coins->getTradeId()."' and trade_with = '".$BTCRYX."' and processed='1'"; 5 | $result = mysql_query($sql); 6 | $count = mysql_num_rows($result); 7 | if($count!=0) { 8 | $Query = mysql_query("SELECT amount, rate FROM sell_orderbook WHERE want='".$BTC."' and trade_id='".$my_coins->getTradeId()."' and trade_with = '".$BTCRYX."' and processed='1' ORDER BY rate ASC"); 9 | while($Row = mysql_fetch_assoc($Query)) { 10 | $Orders_Sells_Amount = $Row['amount']; 11 | $Orders_Sells_Rate = $Row['rate']; 12 | $Orders_Sells_Total = $Orders_Sells_Amount * $Orders_Sells_Rate; 13 | $Orders_Sells_Total = satoshitrim(satoshitize($Orders_Sells_Total)); 14 | $Sells_td .= ' 15 | '.$Orders_Sells_Amount.' 16 | '.$Orders_Sells_Rate.' 17 | '.$Orders_Sells_Total.' 18 | '; 19 | } 20 | $buy_subtotal = "0"; 21 | $Query = mysql_query("SELECT amount FROM sell_orderbook WHERE want='".$BTC."' and trade_id='".$my_coins->getTradeId()."' and trade_with = '".$BTCRYX."' and processed='1' ORDER BY rate ASC"); 22 | while($Row = mysql_fetch_assoc($Query)) { 23 | $buy_amount = $Row['amount']; 24 | $buy_subtotal += $buy_amount; 25 | } 26 | $btevolume = satoshitrim(satoshitize($buy_subtotal)); 27 | echo ' 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | '.$Sells_td.'
Sell Orders
Total '.$BTCRYX.': '.$btevolume.'
Amount ('.$BTCRYX.')Rate ('.$BTC.')Total ('.$BTC.')
'; 37 | } else { 38 | echo ' 39 | 40 | 41 | 42 | 43 | 44 |
Sell Orders
Currently no sell offers
'; 45 | } 46 | echo ''; 47 | ?> -------------------------------------------------------------------------------- /ajax/stats.php: -------------------------------------------------------------------------------- 1 | getTradeId()."' and trade_with = '".$BTCRYX."' and processed='1' ORDER BY rate ASC"); 6 | while($Row = mysql_fetch_assoc($Query)) { 7 | $buy_amount = $Row['amount']; 8 | $buy_rate = $Row['rate']; 9 | $buy_subtotal += ($buy_amount * $buy_rate); 10 | } 11 | $btevalue = satoshitrim(satoshitize($buy_subtotal)); 12 | 13 | $buy_amounttotal = "0"; 14 | $Query = mysql_query("SELECT amount FROM sell_orderbook WHERE want='".$BTC."' and trade_id='".$my_coins->getTradeId()."' and trade_with = '".$BTCRYX."' and processed='1' ORDER BY rate ASC"); 15 | while($Row = mysql_fetch_assoc($Query)) { 16 | $buy_amount = $Row['amount']; 17 | $buy_amounttotal += $buy_amount; 18 | } 19 | $btevolume = satoshitrim(satoshitize($buy_amounttotal)); 20 | 21 | echo ' 22 | 23 | 24 | 25 | 26 |
'.$BTCRYX.'/'.$BTC.'Volume '.$btevolume.' / '.$btevalue.' '.$BTC.'
'; 27 | ?> -------------------------------------------------------------------------------- /api.php: -------------------------------------------------------------------------------- 1 | getTradeIdAccount()."'"; 8 | $result = mysql_query($sql); 9 | $count = mysql_num_rows($result); 10 | if($count!=1) { 11 | $inns_apikey = apikeygen(); // generate a random api key, public key? 12 | $inns_privkey = apikeygen(); // generate a second random api key, private key? 13 | if(!mysql_query("INSERT INTO apis (id,username,apikey,privkey,trade_id) VALUES ('','$user_session','$inns_apikey','$inns_privkey','".$my_coins->getTradeIdAccount()."')")){ 14 | $return_error = "System error."; 15 | } else { 16 | $return_error = "Logged in."; 17 | } 18 | } 19 | $Query = mysql_query("SELECT apikey, privkey FROM apis WHERE username='$user_session' AND trade_id = '".$my_coins->getTradeIdAccount()."'"); 20 | while($Row = mysql_fetch_assoc($Query)) { 21 | $API_KEY = $Row['apikey']; // the first api key generated, public key? 22 | $PRIV_KEY = $Row['privkey']; // the second api key generated, private key? 23 | } 24 | } 25 | ?> 26 | 27 | 28 | <?php echo $script_title; ?> - Developer API 29 | 30 | 31 | 32 | 48 | 49 | 50 |
51 |
52 |
53 | 54 | 55 | 58 | 61 | 64 | 65 | 66 |
56 | Logo 57 | 59 | [zelles] 60 |
67 | 68 | 69 | 70 | 71 | 72 |
73 | 74 | '; 75 | } else { 76 | echo ' 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 |
HomeTransactionsAccountLogout
85 | '; 86 | } 87 | ?> 88 | 89 | 90 |
91 |

92 | '.$withdraw_message.'

'; } ?> 93 | 94 | 95 | 134 | 136 | 160 | 161 |
96 |
97 | 98 | 99 | 130 | 131 |
100 | 101 | 102 | 127 | 128 |
103 | API Credentials: 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 |
Public Key:
'.$API_KEY.'
Private Key:
'.$PRIV_KEY.'
117 |

'; 118 | } 119 | ?> 120 | API Calls: 121 | 122 | 123 | 124 | 125 |
Api is under development.
126 |
129 |
132 |
133 |
135 | 137 |
138 | Under development. 139 |
140 |

141 | '; 144 | require'ajax/pending-deposits.php'; 145 | echo ' 146 |
147 | '; 148 | require'ajax/balances.php'; 149 | echo ' 150 |
151 |

152 |
'; 153 | require'ajax/menu.php'; 154 | echo '
'; 155 | } 156 | ?> 157 |

158 |
Online:

159 |
162 |

163 | 164 |

165 |
166 | 167 | 168 | -------------------------------------------------------------------------------- /auth.php: -------------------------------------------------------------------------------- 1 | '; // a global style sheet 10 | $ip = $_SERVER['REMOTE_ADDR']; 11 | $date = date("n/j/Y g:i a");; 12 | 13 | $db_handle = mysql_connect($dbdb_host,$dbdb_user,$dbdb_pass)or die("Server error."); 14 | $db_found = mysql_select_db($dbdb_database)or die("Server error."); 15 | 16 | //echo $my_coins->coins_names_prefix[2]; 17 | $coin_selected = $my_coins->coinSelecter($_SESSION['trade_coin']); 18 | if(!$coin_selected) { 19 | $_SESSION['trade_coin'] = $my_coins->coinSelecter($my_coins->coins_names_prefix[0]); // default trade section to load when user first arrives 20 | header("Location: home.php"); 21 | } 22 | $trade_coin = $my_coins->coinSelecterSelect($_SESSION['trade_coin']); 23 | $BTC = $my_coins->trade_coins["BTCRY"]["BTC"]; // rate coin 24 | $BTCRYX = $my_coins->trade_coins["BTCRY"]["BTCRYX"]; // amount coin 25 | $BTCS = $my_coins->trade_coins["BTCRY"]["BTCS"]; // rate coin name 26 | $BTCRYXS = $my_coins->trade_coins["BTCRY"]["BTCRYXS"]; // amount coin name 27 | 28 | /*$coin0rpc = $coins[$my_coins->coins_names[0]]["rpcsettings"]; 29 | $coin1rpc = $coins[$my_coins->coins_names[1]]["rpcsettings"]; 30 | $coin2rpc = $coins[$my_coins->coins_names[2]]["rpcsettings"]; 31 | set_coins_daemon($my_coins->coins_names[0], $coin0rpc["user"], $coin0rpc["pass"], $coin0rpc["host"], $coin0rpc["port"]); 32 | set_coins_daemon($my_coins->coins_names[1], $coin1rpc["user"], $coin1rpc["pass"], $coin1rpc["host"], $coin1rpc["port"]); 33 | set_coins_daemon($my_coins->coins_names[2], $coin2rpc["user"], $coin2rpc["pass"], $coin2rpc["host"], $coin2rpc["port"]); 34 | */ 35 | $rv=$my_coins->getBitcoindDaemons(); 36 | $Bitcoind = $rv[0]; 37 | //print_r($rv[1]); 38 | $rv=$my_coins->getBitcrystaldDaemons(); 39 | $Bitcrystald = $rv[0]; 40 | //print_r($rv[1]); 41 | $rv=$my_coins->getBitcrystalxdDaemons(); 42 | $Bitcrystalxd = $rv[0]; 43 | //print_r($rv[1]); 44 | //print_r($Bitcoind); 45 | //print_r($Bitcrystald); 46 | //print_r($Bitcrystalxd); 47 | $count_daemons = $rv[1]; 48 | $Bitcoind_Account_Address=array(); 49 | $Bitcrystald_Account_Address=array(); 50 | $Bitcrystalxd_Account_Address=array(); 51 | $Bitcoind_Balance=array(); 52 | $Bitcrystald_Balance=array(); 53 | $Bitcrystalxd_Balance=array(); 54 | 55 | $user_session = $_SESSION['user_session']; 56 | if(!$user_session) { 57 | $Logged_In = 2; 58 | } else { 59 | $Logged_In = 7; 60 | $Logged_In = 7; 61 | //$wallet_id = "zellesExchange(".$user_session.")"; 62 | $string=""; 63 | $i=0; 64 | for(;$i<$count_daemons;$i++) 65 | { 66 | $wallet_id = $my_coins->getWalletId($user_session,$Bitcoind[$i]["cid"]); 67 | $Bitcoind_Account_Address[$i] = $Bitcoind[$i]["daemon"]->getaccountaddress($wallet_id); 68 | $wallet_id = $my_coins->getWalletId($user_session,$Bitcrystald[$i]["cid"]); 69 | $Bitcrystald_Account_Address[$i] = $Bitcrystald[$i]["daemon"]->getaccountaddress($wallet_id); 70 | $wallet_id = $my_coins->getWalletId($user_session,$Bitcrystalxd[$i]["cid"]); 71 | $Bitcrystalxd_Account_Address[$i] = $Bitcrystalxd[$i]["daemon"]->getaccountaddress($wallet_id); 72 | $string=$string . "'".$Bitcoind_Account_Address[$i]."','".$Bitcrystald_Account_Address[$i]."','".$Bitcrystalxd_Account_Address[$i]."'"; 73 | if($i+1<$count_daemons) 74 | { 75 | $string = $string .","; 76 | } 77 | } 78 | $i=$i*3; 79 | if($i<10) 80 | $string = $string . ","; 81 | for(;$i<10;$i++) 82 | { 83 | $string = $string . "'0'"; 84 | if($i+1<10) 85 | $string = $string .","; 86 | } 87 | $SQL = "SELECT * FROM balances WHERE username='$user_session' and trade_id = '".$my_coins->getTradeIdAccount()."'"; 88 | $result = mysql_query($SQL); 89 | $num_rows = mysql_num_rows($result); 90 | if($num_rows!=1) { 91 | if(!mysql_query("INSERT INTO balances (id,username,coin1,coin2,coin3,coin4,coin5,coin6,coin7,coin8,coin9,coin10,trade_id) VALUES ('','$user_session','0','0','0','0','0','0','0','0','0','0','".$my_coins->getTradeIdAccount()."')")) { 92 | die("Server error"); 93 | } else { 94 | $r_system_action = "success"; 95 | } 96 | } 97 | $SQL = "SELECT * FROM addresses WHERE username='$user_session' and trade_id = '".$my_coins->getTradeIdAccount()."'"; 98 | $result = mysql_query($SQL); 99 | $num_rows = mysql_num_rows($result); 100 | if($num_rows!=1) { 101 | if(!mysql_query("INSERT INTO addresses (id,username,coin1,coin2,coin3,coin4,coin5,coin6,coin7,coin8,coin9,coin10,trade_id) VALUES ('','$user_session',".$string.",'".$my_coins->getTradeIdAccount()."')")) { 102 | die("Server error"); 103 | } else { 104 | $r_system_action = "success"; 105 | } 106 | } 107 | 108 | for($i=0;$i<$count_daemons;$i++) 109 | { 110 | $wallet_id = $my_coins->getWalletId($user_session,$Bitcoind[$i]["cid"]); 111 | $Bitcoind_List_Transactions = $Bitcoind[$i]["daemon"]->listtransactions($wallet_id,50); 112 | 113 | foreach($Bitcoind_List_Transactions as $Bitcoind_List_Transaction) { 114 | if($Bitcoind_List_Transaction['category']=="receive") { 115 | if(6<=$Bitcoind_List_Transaction['confirmations']) { 116 | $DEPOSIT_tx_type = 'deposit'; 117 | $DEPOSIT_coin_type = $Bitcoind[$i]["prefix"]; 118 | $DEPOSIT_date = date('n/j/y h:i a',$Bitcoind_List_Transaction['time']); 119 | $DEPOSIT_address = $Bitcoind_List_Transaction['address']; 120 | $DEPOSIT_amount = abs($Bitcoind_List_Transaction['amount']); 121 | $DEPOSIT_txid = $Bitcoind_List_Transaction['txid']; 122 | $SQL = "SELECT * FROM transactions WHERE coin='$DEPOSIT_coin_type' and txid='$DEPOSIT_txid' and trade_id = '".$my_coins->getTradeIdAccount()."'"; 123 | $result = mysql_query($SQL); 124 | $num_rows = mysql_num_rows($result); 125 | if($num_rows!=1) { 126 | if(!mysql_query("INSERT INTO transactions (id,date,username,action,coin,address,txid,amount,trade_id) VALUES ('','$DEPOSIT_date','$user_session','$DEPOSIT_tx_type','$DEPOSIT_coin_type','$DEPOSIT_address','$DEPOSIT_txid','$DEPOSIT_amount','".$my_coins->getTradeIdAccount()."')")) { 127 | die("Server error"); 128 | } else { 129 | $result = plusfunds($user_session,$Bitcoind[$i]["prefix"],$DEPOSIT_amount); 130 | if($result) { 131 | $r_system_action = "success"; 132 | } else { 133 | die("Server error"); 134 | } 135 | } 136 | } 137 | } 138 | } 139 | } 140 | 141 | $wallet_id = $my_coins->getWalletId($user_session,$Bitcrystald[$i]["cid"]); 142 | $Bitcrystald_List_Transactions = $Bitcrystald[$i]["daemon"]->listtransactions($wallet_id,50); 143 | 144 | foreach($Bitcrystald_List_Transactions as $Bitcrystald_List_Transaction) { 145 | if($Bitcrystald_List_Transaction['category']=="receive") { 146 | if(6<=$Bitcrystald_List_Transaction['confirmations']) { 147 | $DEPOSIT_tx_type = 'deposit'; 148 | $DEPOSIT_coin_type = $Bitcrystald[$i]["prefix"]; 149 | $DEPOSIT_date = date('n/j/y h:i a',$Bitcrystald_List_Transaction['time']); 150 | $DEPOSIT_address = $Bitcrystald_List_Transaction['address']; 151 | $DEPOSIT_amount = abs($Bitcrystald_List_Transaction['amount']); 152 | $DEPOSIT_txid = $Bitcrystald_List_Transaction['txid']; 153 | $SQL = "SELECT * FROM transactions WHERE coin='$DEPOSIT_coin_type' and txid='$DEPOSIT_txid' and trade_id = '".$my_coins->getTradeIdAccount()."'"; 154 | $result = mysql_query($SQL); 155 | $num_rows = mysql_num_rows($result); 156 | if($num_rows!=1) { 157 | if(!mysql_query("INSERT INTO transactions (id,date,username,action,coin,address,txid,amount,trade_id) VALUES ('','$DEPOSIT_date','$user_session','$DEPOSIT_tx_type','$DEPOSIT_coin_type','$DEPOSIT_address','$DEPOSIT_txid','$DEPOSIT_amount','".$my_coins->getTradeIdAccount()."')")) { 158 | die("Server error"); 159 | } else { 160 | $result = plusfunds($user_session,$Bitcrystald[$i]["prefix"],$DEPOSIT_amount); 161 | if($result) { 162 | $r_system_action = "success"; 163 | } else { 164 | die("Server error"); 165 | } 166 | } 167 | } 168 | } 169 | } 170 | } 171 | 172 | $wallet_id = $my_coins->getWalletId($user_session,$Bitcrystalxd[$i]["cid"]); 173 | $Bitcrystalxd_List_Transactions = $Bitcrystalxd[$i]["daemon"]->listtransactions($wallet_id,50); 174 | 175 | foreach($Bitcrystalxd_List_Transactions as $Bitcrystalxd_List_Transaction) { 176 | if($Bitcrystalxd_List_Transaction['category']=="receive") { 177 | if(6<=$Bitcrystalxd_List_Transaction['confirmations']) { 178 | $DEPOSIT_tx_type = 'deposit'; 179 | $DEPOSIT_coin_type = $Bitcrystalxd[$i]["prefix"]; 180 | $DEPOSIT_date = date('n/j/y h:i a',$Bitcrystalxd_List_Transaction['time']); 181 | $DEPOSIT_address = $Bitcrystalxd_List_Transaction['address']; 182 | $DEPOSIT_amount = abs($Bitcrystalxd_List_Transaction['amount']); 183 | $DEPOSIT_txid = $Bitcrystalxd_List_Transaction['txid']; 184 | $SQL = "SELECT * FROM transactions WHERE coin='$DEPOSIT_coin_type' and txid='$DEPOSIT_txid' and trade_id = '".$my_coins->getTradeIdAccount()."'"; 185 | $result = mysql_query($SQL); 186 | $num_rows = mysql_num_rows($result); 187 | if($num_rows!=1) { 188 | if(!mysql_query("INSERT INTO transactions (id,date,username,action,coin,address,txid,amount,trade_id) VALUES ('','$DEPOSIT_date','$user_session','$DEPOSIT_tx_type','$DEPOSIT_coin_type','$DEPOSIT_address','$DEPOSIT_txid','$DEPOSIT_amount','".$my_coins->getTradeIdAccount()."')")) { 189 | die("Server error"); 190 | } else { 191 | $result = plusfunds($user_session,$Bitcrystalxd[$i]["prefix"],$DEPOSIT_amount); 192 | if($result) { 193 | $r_system_action = "success"; 194 | } else { 195 | die("Server error"); 196 | } 197 | } 198 | } 199 | } 200 | } 201 | } 202 | 203 | $Bitcoind_Balance[$i] = userbalance($user_session,$Bitcoind[$i]["prefix"]); // Simple function to call the users balance 204 | $Bitcrystald_Balance[$i] = userbalance($user_session,$Bitcrystald[$i]["prefix"]); 205 | $Bitcrystalxd_Balance[$i] = userbalance($user_session,$Bitcrystalxd[$i]["prefix"]); 206 | } 207 | } 208 | ?> 209 | -------------------------------------------------------------------------------- /coins.php: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /config.php: -------------------------------------------------------------------------------- 1 | (.*)<\/'.$tag.'>$/imU',$xml,$match); 10 | return $match[1]; 11 | } 12 | function is_bot() { 13 | $botlist = array("Teoma", "alexa", "froogle", "Gigabot", "inktomi", 14 | "looksmart", "URL_Spider_SQL", "Firefly", "NationalDirectory", 15 | "Ask Jeeves", "TECNOSEEK", "InfoSeek", "WebFindBot", "girafabot", 16 | "crawler", "www.galaxy.com", "Googlebot", "Scooter", "Slurp", 17 | "msnbot", "appie", "FAST", "WebBug", "Spade", "ZyBorg", "rabaz", 18 | "Baiduspider", "Feedfetcher-Google", "TechnoratiSnoop", "Rankivabot", 19 | "Mediapartners-Google", "Sogou web spider", "WebAlta Crawler","TweetmemeBot", 20 | "Butterfly","Twitturls","Me.dium","Twiceler"); 21 | foreach($botlist as $bot) { 22 | if(strpos($_SERVER['HTTP_USER_AGENT'],$bot)!==false) 23 | return strpos($_SERVER['HTTP_USER_AGENT'],$bot); 24 | } 25 | return false; 26 | } 27 | 28 | $link = @mysql_connect($dbdb_host,$dbdb_user,$dbdb_pass) or die('Server error'); 29 | 30 | mysql_set_charset('utf8'); 31 | mysql_select_db($dbdb_database,$link); 32 | 33 | $isuser = "2"; 34 | $isguest = "2"; 35 | $isbot = "2"; 36 | 37 | $user_session = $_SESSION['user_session']; 38 | if(is_bot()) { 39 | $botname = is_bot(); 40 | $isbot = "1"; 41 | } else { 42 | if(!$user_session) { 43 | $isguest = "1"; 44 | $toolbar_username = ""; 45 | } else { 46 | $isuser = "1"; 47 | $toolbar_username = $user_session; 48 | } 49 | } 50 | ?> -------------------------------------------------------------------------------- /database.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /db.sql: -------------------------------------------------------------------------------- 1 | SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; 2 | SET time_zone = "+00:00"; 3 | CREATE TABLE IF NOT EXISTS `addresses` ( 4 | `id` int(11) NOT NULL AUTO_INCREMENT, 5 | `username` varchar(100) NOT NULL, 6 | `coin1` varchar(200) NOT NULL, 7 | `coin2` varchar(200) NOT NULL, 8 | `coin3` varchar(200) NOT NULL, 9 | `coin4` varchar(200) NOT NULL, 10 | `coin5` varchar(200) NOT NULL, 11 | `coin6` varchar(200) NOT NULL, 12 | `coin7` varchar(200) NOT NULL, 13 | `coin8` varchar(200) NOT NULL, 14 | `coin9` varchar(200) NOT NULL, 15 | `coin10` varchar(200) NOT NULL, 16 | PRIMARY KEY (`id`) 17 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; 18 | ALTER TABLE `addresses` ADD `trade_id` varchar(200) NOT NULL; 19 | 20 | CREATE TABLE IF NOT EXISTS `apis` ( 21 | `id` int(11) NOT NULL AUTO_INCREMENT, 22 | `username` varchar(100) NOT NULL, 23 | `apikey` text NOT NULL, 24 | `privkey` text NOT NULL, 25 | PRIMARY KEY (`id`) 26 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; 27 | ALTER TABLE `apis` ADD `trade_id` varchar(200) NOT NULL; 28 | 29 | CREATE TABLE IF NOT EXISTS `balances` ( 30 | `id` int(11) NOT NULL AUTO_INCREMENT, 31 | `username` varchar(100) NOT NULL, 32 | `coin1` varchar(200) NOT NULL, 33 | `coin2` varchar(200) NOT NULL, 34 | `coin3` varchar(200) NOT NULL, 35 | `coin4` varchar(200) NOT NULL, 36 | `coin5` varchar(200) NOT NULL, 37 | `coin6` varchar(200) NOT NULL, 38 | `coin7` varchar(200) NOT NULL, 39 | `coin8` varchar(200) NOT NULL, 40 | `coin9` varchar(200) NOT NULL, 41 | `coin10` varchar(200) NOT NULL, 42 | PRIMARY KEY (`id`) 43 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; 44 | ALTER TABLE `balances` ADD `trade_id` varchar(200) NOT NULL; 45 | 46 | CREATE TABLE IF NOT EXISTS `buy_orderbook` ( 47 | `id` int(11) NOT NULL AUTO_INCREMENT, 48 | `date` varchar(300) NOT NULL, 49 | `ip` varchar(30) NOT NULL, 50 | `username` varchar(100) NOT NULL, 51 | `action` varchar(100) NOT NULL, 52 | `want` varchar(100) NOT NULL, 53 | `initial_amount` varchar(200) NOT NULL, 54 | `amount` varchar(200) NOT NULL, 55 | `rate` varchar(200) NOT NULL, 56 | `processed` varchar(100) NOT NULL, 57 | PRIMARY KEY (`id`) 58 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; 59 | ALTER TABLE `buy_orderbook` ADD `trade_id` varchar(200) NOT NULL; 60 | ALTER TABLE `buy_orderbook` ADD `trade_with` varchar(200) NOT NULL; 61 | 62 | CREATE TABLE IF NOT EXISTS `ordersfilled` ( 63 | `id` int(11) NOT NULL AUTO_INCREMENT, 64 | `date` varchar(100) NOT NULL, 65 | `ip` varchar(100) NOT NULL, 66 | `username` varchar(100) NOT NULL, 67 | `trader` varchar(100) NOT NULL, 68 | `oid` varchar(100) NOT NULL, 69 | `action` varchar(100) NOT NULL, 70 | `want` varchar(100) NOT NULL, 71 | `amount` varchar(200) NOT NULL, 72 | `rate` varchar(200) NOT NULL, 73 | `total` varchar(200) NOT NULL, 74 | `processed` varchar(100) NOT NULL, 75 | PRIMARY KEY (`id`) 76 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; 77 | ALTER TABLE `ordersfilled` ADD `trade_id` varchar(200) NOT NULL; 78 | ALTER TABLE `ordersfilled` ADD `trade_with` varchar(200) NOT NULL; 79 | 80 | CREATE TABLE IF NOT EXISTS `sell_orderbook` ( 81 | `id` int(11) NOT NULL AUTO_INCREMENT, 82 | `date` varchar(300) NOT NULL, 83 | `ip` varchar(30) NOT NULL, 84 | `username` varchar(100) NOT NULL, 85 | `action` varchar(100) NOT NULL, 86 | `want` varchar(100) NOT NULL, 87 | `initial_amount` varchar(200) NOT NULL, 88 | `amount` varchar(200) NOT NULL, 89 | `rate` varchar(200) NOT NULL, 90 | `processed` varchar(100) NOT NULL, 91 | PRIMARY KEY (`id`) 92 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ; 93 | ALTER TABLE `sell_orderbook` ADD `trade_id` varchar(200) NOT NULL; 94 | ALTER TABLE `sell_orderbook` ADD `trade_with` varchar(200) NOT NULL; 95 | 96 | CREATE TABLE IF NOT EXISTS `transactions` ( 97 | `id` int(11) NOT NULL AUTO_INCREMENT, 98 | `date` varchar(300) NOT NULL, 99 | `username` varchar(100) NOT NULL, 100 | `action` varchar(100) NOT NULL, 101 | `coin` varchar(100) NOT NULL, 102 | `address` text NOT NULL, 103 | `txid` text NOT NULL, 104 | `amount` varchar(200) NOT NULL, 105 | PRIMARY KEY (`id`) 106 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=31 ; 107 | ALTER TABLE `transactions` ADD `trade_id` varchar(200) NOT NULL; 108 | 109 | CREATE TABLE IF NOT EXISTS `who_is_online` ( 110 | `id` int(10) unsigned NOT NULL AUTO_INCREMENT, 111 | `ip` varchar(30) COLLATE utf8_unicode_ci NOT NULL, 112 | `username` varchar(200) COLLATE utf8_unicode_ci NOT NULL, 113 | `botname` varchar(300) COLLATE utf8_unicode_ci NOT NULL, 114 | `user` varchar(300) COLLATE utf8_unicode_ci NOT NULL, 115 | `bot` varchar(10) COLLATE utf8_unicode_ci NOT NULL, 116 | `guest` varchar(10) COLLATE utf8_unicode_ci NOT NULL, 117 | `country` varchar(200) COLLATE utf8_unicode_ci NOT NULL, 118 | `countrycode` varchar(2) COLLATE utf8_unicode_ci NOT NULL, 119 | `city` varchar(200) COLLATE utf8_unicode_ci NOT NULL, 120 | `dt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 121 | PRIMARY KEY (`id`), 122 | UNIQUE KEY `ip` (`ip`), 123 | KEY `countrycode` (`countrycode`) 124 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=22 ; 125 | ALTER TABLE `who_is_online` ADD `trade_id` varchar(200) NOT NULL; 126 | 127 | CREATE TABLE IF NOT EXISTS `users` ( 128 | `id` int(11) NOT NULL AUTO_INCREMENT, 129 | `date` varchar(300) NOT NULL, 130 | `ip` varchar(30) NOT NULL, 131 | `username` varchar(65) NOT NULL, 132 | `password` varchar(300) NOT NULL, 133 | PRIMARY KEY (`id`) 134 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; 135 | ALTER TABLE `users` ADD `email` varchar(300) NOT NULL; 136 | ALTER TABLE `users` ADD `trade_id` varchar(200) NOT NULL; 137 | -------------------------------------------------------------------------------- /functions_main.php: -------------------------------------------------------------------------------- 1 | coins_names_prefix; 4 | $GLOBALS['cp_count']=count($my_coins->coins_names_prefix); 5 | function getTradeId($i=0, $trade_account=true) 6 | { 7 | if($trade_account) 8 | $i=0; 9 | return $GLOBALS['cp'][0+$i]."_".$GLOBALS['cp'][1+$i]."_".$GLOBALS['cp'][2+$i]; 10 | } 11 | function security($value) { 12 | if(is_array($value)) { 13 | $value = array_map('security', $value); 14 | } else { 15 | if(!get_magic_quotes_gpc()) { 16 | $value = htmlspecialchars($value, ENT_QUOTES, 'UTF-8'); 17 | } else { 18 | $value = htmlspecialchars(stripslashes($value), ENT_QUOTES, 'UTF-8'); 19 | } 20 | $value = str_replace("\\", "\\\\", $value); 21 | } 22 | return $value; 23 | } 24 | 25 | function apikeygen() { 26 | $keygen_characters = "0011223344--__5566778899aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzzAABBCCDDEEF--__FGGHHIIJJKKLLMMNNOOPPQQRRSSTUUVVWWXXYYZZ"; 27 | $keygen_key = ""; 28 | $keygen_length = rand(40, 60); 29 | for($keygen_i = 0; $keygen_i < $keygen_length; $keygen_i++) { 30 | $keygen_key .= $keygen_characters[rand(0, strlen($keygen_characters) - 1)]; 31 | } 32 | return $keygen_key; 33 | } 34 | 35 | function satoshitize($satoshitize) { 36 | return sprintf("%.8f", $satoshitize); 37 | } 38 | 39 | function satoshitrim($satoshitrim) { 40 | return rtrim(rtrim($satoshitrim, "0"), "."); 41 | } 42 | 43 | function userbalance($function_user,$function_coin) { 44 | 45 | 46 | for($i = 0; $i < $GLOBALS['cp_count']; $i+=3) 47 | { 48 | if($function_coin==$GLOBALS['cp'][0+$i]) { 49 | $function_query = mysql_query("SELECT coin".($i+1)." FROM balances WHERE username='$function_user' AND trade_id = '".getTradeId($i)."'"); 50 | while($function_row = mysql_fetch_assoc($function_query)) { $function_return = $function_row['coin'.($i+1)]; } 51 | break; 52 | } 53 | if($function_coin==$GLOBALS['cp'][2+$i]) { 54 | $function_query = mysql_query("SELECT coin".($i+2)." FROM balances WHERE username='$function_user' AND trade_id = '".getTradeId($i)."'"); 55 | while($function_row = mysql_fetch_assoc($function_query)) { $function_return = $function_row['coin'.($i+2)]; } 56 | break; 57 | } 58 | if($function_coin==$GLOBALS['cp'][1+$i]) { 59 | $function_query = mysql_query("SELECT coin".($i+3)." FROM balances WHERE username='$function_user' AND trade_id = '".getTradeId($i)."'"); 60 | while($function_row = mysql_fetch_assoc($function_query)) { $function_return = $function_row['coin'.($i+3)]; } 61 | break; 62 | } 63 | } 64 | return $function_return; 65 | } 66 | 67 | function buyrate($function_coin, $function_coin2) { 68 | $found_value=false; 69 | for($i = 0; $i < $GLOBALS['cp_count']; $i+=3) 70 | { 71 | $function_query = mysql_query("SELECT rate FROM buy_orderbook WHERE want='$function_coin' and processed='1' and trade_id = '".getTradeId($i)."' AND trade_with = '$function_coin2' ORDER BY rate DESC LIMIT 1"); 72 | while($function_row = mysql_fetch_assoc($function_query)) { 73 | $function_return = $function_row['rate']; 74 | $found_value=true; 75 | } 76 | if($found_value) 77 | break; 78 | } 79 | return $function_return; 80 | } 81 | 82 | function sellrate($function_coin,$function_coin2) { 83 | $found_value=false; 84 | for($i = 0; $i < $GLOBALS['cp_count']; $i+=3) 85 | { 86 | $function_query = mysql_query("SELECT rate FROM sell_orderbook WHERE want='$function_coin' and processed='1' and trade_id = '".getTradeId($i)."' AND trade_with = '$function_coin2' ORDER BY rate ASC LIMIT 1"); 87 | while($function_row = mysql_fetch_assoc($function_query)) { 88 | $function_return = $function_row['rate']; 89 | $found_value=true; 90 | } 91 | if($found_value) 92 | break; 93 | } 94 | return $function_return; 95 | } 96 | 97 | function plusfunds($function_user,$function_coin,$function_amount) { 98 | $found_value=false; 99 | for($i = 0; $i < $GLOBALS['cp_count']; $i+=3) 100 | { 101 | $function_user_balance = userbalance($function_user,$function_coin); 102 | $function_balance = $function_user_balance + $function_amount; 103 | $function_balance = satoshitrim(satoshitize($function_balance)); 104 | if($function_coin==$GLOBALS['cp'][0+$i]) { $sql = "UPDATE balances SET coin".($i+1)."='$function_balance' WHERE username='$function_user' AND trade_id = '".getTradeId($i)."'"; $found_value=true;} 105 | if($function_coin==$GLOBALS['cp'][2+$i]) { $sql = "UPDATE balances SET coin".($i+2)."='$function_balance' WHERE username='$function_user' AND trade_id = '".getTradeId($i)."'"; $found_value=true;} 106 | if($function_coin==$GLOBALS['cp'][1+$i]) { $sql = "UPDATE balances SET coin".($i+3)."='$function_balance' WHERE username='$function_user' AND trade_id = '".getTradeId($i)."'"; $found_value=true;} 107 | if(!$found_value) 108 | continue; 109 | $result = mysql_query($sql); 110 | if($result) { 111 | $function_return = "success"; 112 | } else { 113 | $function_return = "error"; 114 | } 115 | break; 116 | } 117 | return $function_return; 118 | } 119 | 120 | function minusfunds($function_user,$function_coin,$function_amount) { 121 | $found_value=false; 122 | for($i = 0; $i < $GLOBALS['cp_count']; $i+=3) 123 | { 124 | $function_user_balance = userbalance($function_user,$function_coin); 125 | $function_balance = $function_user_balance - $function_amount; 126 | $function_balance = satoshitrim(satoshitize($function_balance)); 127 | if($function_coin==$GLOBALS['cp'][0+$i]) { $sql = "UPDATE balances SET coin".($i+1)."='$function_balance' WHERE username='$function_user' AND trade_id = '".getTradeId($i)."'"; $found_value=true;} 128 | if($function_coin==$GLOBALS['cp'][2+$i]) { $sql = "UPDATE balances SET coin".($i+2)."='$function_balance' WHERE username='$function_user' AND trade_id = '".getTradeId($i)."'"; $found_value=true;} 129 | if($function_coin==$GLOBALS['cp'][1+$i]) { $sql = "UPDATE balances SET coin".($i+3)."='$function_balance' WHERE username='$function_user' AND trade_id = '".getTradeId($i)."'"; $found_value=true;} 130 | if(!$found_value) 131 | continue; 132 | $result = mysql_query($sql); 133 | if($result) { 134 | $function_return = "success"; 135 | } else { 136 | $function_return = "error"; 137 | } 138 | break; 139 | } 140 | return $function_return; 141 | } 142 | 143 | function get_current_url() 144 | { 145 | return 'http'.(empty($_SERVER['HTTPS'])?'':'s').'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; 146 | } 147 | 148 | function get_exchange_url() 149 | { 150 | $p = get_current_url(); 151 | $p=str_replace("http://","",$p); 152 | $p=str_replace("https://","",$p); 153 | $p = str_replace("auth.php","index.php",$p); 154 | return $p; 155 | } 156 | 157 | function get_root_path($file) 158 | { 159 | $str = dirname(__FILE__); 160 | $str = str_replace("ajax","",$str); 161 | $str = $str . '/' . $file; 162 | return $str; 163 | } 164 | ?> 165 | -------------------------------------------------------------------------------- /fundsbtc.php: -------------------------------------------------------------------------------- 1 | setSelectInstanceId($my_coins->getCoinsInstanceId()); 14 | } else { 15 | if($iid!=$my_coins->getSelectInstanceId()) 16 | { 17 | header("Location: home.php"); 18 | } 19 | } 20 | 21 | $iid = $my_coins->getSelectInstanceId(); 22 | $cid = $my_coins->getCoinsSelectInstanceId()+0; 23 | 24 | if($withdraw_withdraw=="withdraw") { 25 | if($withdraw_address) { 26 | if($withdraw_amount) { 27 | $withdraw_amount = satoshitize($withdraw_amount); 28 | if($withdraw_amount<=$Bitcoind_Balance[$cid]) { 29 | $fee=$my_coins->coins[$my_coins->coins_names[$cid]]["fee"]; 30 | $FEEBEE = $my_coins->coins[$my_coins->coins_names[$cid]]["FEEBEE"]; 31 | $set_withdraw_amount = $withdraw_amount - $fee; // minus the fee 32 | $true_withdraw_amount = satoshitize($set_withdraw_amount); 33 | $Bitcoind_Withdraw_From = $Bitcoind[$iid]["daemon"]->sendtoaddress($withdraw_address,(float)$true_withdraw_amount); 34 | if($Bitcoind_Withdraw_From) { 35 | $result = minusfunds($user_session,$coins_names_prefix[$cid],$withdraw_amount); 36 | $result = plusfunds($FEEBEE,$my_coins->coins_names_prefix[$cid],$fee); // add fee to feebee account 37 | $Bitcoind_Balance = userbalance($user_session,$my_coins->coins_names_prefix[$cid]); 38 | $withdraw_message = 'Withdraw was sent! Click here for more details.'; 39 | if(!mysql_query("INSERT INTO transactions (id,date,username,action,coin,address,txid,amount,trade_id) VALUES ('','$date','$user_session','withdraw','".$my_coins->coins_names_prefix[$cid]."','$withdraw_address','$Bitcoind_Withdraw_From','$withdraw_amount','".$my_coins->getTradeId()."')")){ 40 | $eereturn_error = "System error."; 41 | } else { 42 | $eereturn_error = "Logged in."; 43 | } 44 | } 45 | } else { 46 | $withdraw_message = 'You do not have enough '.$my_coins->coins_names[$cid].'s!'; 47 | } 48 | } else { 49 | $withdraw_message = 'No amount to withdraw was entered!'; 50 | } 51 | } else { 52 | $withdraw_message = 'No '.$my_coins->coins_names[$cid].' address was entered!'; 53 | } 54 | } 55 | ?> 56 | 57 | 58 | <?php echo $script_title; ?> 59 | 60 | 61 | 62 | 74 | 75 | 76 |
77 |
78 |
79 | 80 | 81 | 84 | 87 | 96 | 97 |
82 | Logo 83 | 85 | [zelles] 86 | 88 | 89 | 90 | 91 | 92 | 93 | 94 |
HomeAccountLogout
95 |
98 |
99 |

100 | '.$withdraw_message.'

'; } ?> 101 | 102 | 103 | 149 | 151 | 163 | 164 |
104 |
105 | 106 | 107 | 128 | 142 | 143 | 144 | 145 | 146 |
108 |
109 | 110 | 111 | 112 | 113 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 |
114 | Withdraw: 115 |
Amount
Address
126 |
127 |
129 | 130 | 131 | 134 | 135 | 136 | 137 | Deposits must have 6 confirmations to become active. There is a fee of '.$my_coins->coins[$my_coins->coins_names[$cid]]["fee"].' '.$my_coins->coins_names[$cid].'s to make a withraw.'; ?> 138 | 139 |
132 | Deposit: 133 |
140 | 141 |
Save to WalletTransactions
147 |
148 |
150 | 152 | 153 |
154 | 155 |
156 |

157 |
158 | 159 |
160 |

161 |
Online:

162 |
165 |

166 | 167 |

168 |
169 | 170 | 171 | 174 | -------------------------------------------------------------------------------- /fundsbtcry.php: -------------------------------------------------------------------------------- 1 | setSelectInstanceId($my_coins->getCoinsInstanceId()); 14 | } else { 15 | if($iid!=$my_coins->getSelectInstanceId()) 16 | { 17 | header("Location: home.php"); 18 | } 19 | } 20 | 21 | $iid = $my_coins->getSelectInstanceId(); 22 | $cid = $my_coins->getCoinsSelectInstanceId()+1; 23 | if($withdraw_withdraw=="withdraw") { 24 | if($withdraw_address) { 25 | if($withdraw_amount) { 26 | $withdraw_amount = satoshitize($withdraw_amount); 27 | if($withdraw_amount<=$Bitcrystald_Balance[$iid]) { 28 | $fee=$my_coins->coins[$my_coins->coins_names[$cid]]["fee"]; 29 | $FEEBEE = $my_coins->coins[$my_coins->coins_names[$cid]]["FEEBEE"]; 30 | $set_withdraw_amount = $withdraw_amount - $fee; // minus the fee 31 | $true_withdraw_amount = satoshitize($set_withdraw_amount); 32 | $Bitcrystald_Withdraw_From = $Bitcrystald[$iid]["daemon"]->sendtoaddress($withdraw_address,(float)$true_withdraw_amount); 33 | if($Bitcrystald_Withdraw_From) { 34 | $result = minusfunds($user_session,$my_coins->coins_names_prefix[$cid],$withdraw_amount); 35 | $result = plusfunds($FEEBEE,$my_coins->coins_names_prefix[$cid],$fee); // add fee to feebee account 36 | $Bitcrystald_Balance = userbalance($user_session,$my_coins->coins_names_prefix[$cid]); 37 | $withdraw_message = 'Withdraw was sent!
'.$Bitcrystald_Withdraw_From.'
'; 38 | if(!mysql_query("INSERT INTO transactions (id,date,username,action,coin,address,txid,amount,trade_id) VALUES ('','$date','$user_session','withdraw','".$my_coins->coins_names_prefix[$cid]."','$withdraw_address','$Bitcrystald_Withdraw_From','$withdraw_amount','".$my_coins->getTradeId()."')")){ 39 | $eereturn_error = "System error."; 40 | } else { 41 | $eereturn_error = "Logged in."; 42 | } 43 | } 44 | } else { 45 | $withdraw_message = 'You do not have enough '.$my_coins->coins_names[$cid].'s!'; 46 | } 47 | } else { 48 | $withdraw_message = 'No amount to withdraw was entered!'; 49 | } 50 | } else { 51 | $withdraw_message = 'No '.$my_coins->coins_names[$cid].' address was entered!'; 52 | } 53 | } 54 | ?> 55 | 56 | 57 | <?php echo $script_title; ?> 58 | 59 | 60 | 61 | 73 | 74 | 75 |
76 |
77 |
78 | 79 | 80 | 83 | 86 | 96 | 97 |
81 | Logo 82 | 84 | [zelles] 85 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 |
HomeTransactionsAccountLogout
95 |
98 |
99 |

100 | '.$withdraw_message.'

'; } ?> 101 | 102 | 103 | 149 | 151 | 163 | 164 |
104 |
105 | 106 | 107 | 128 | 142 | 143 | 144 | 145 | 146 |
108 |
109 | 110 | 111 | 112 | 113 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 |
114 | Withdraw: 115 |
Amount
Address
126 |
127 |
129 | 130 | 131 | 134 | 135 | 136 | 137 | Deposits must have 6 confirmations to become active. There is a fee of '.$my_coins->coins[$my_coins->coins_names[$cid]]["fee"].' '.$my_coins->coins_names[$cid].' to make a withraw.'; ?> 138 | 139 |
132 | Deposit: 133 |
140 | 141 |
Save to WalletTransactions
147 |
148 |
150 | 152 | 153 |
154 | 155 |
156 |

157 |
158 | 159 |
160 |

161 |
Online:

162 |
165 |

166 | 167 |

168 |
169 | 170 | 171 | 174 | -------------------------------------------------------------------------------- /fundsbtcryx.php: -------------------------------------------------------------------------------- 1 | setSelectInstanceId($my_coins->getCoinsInstanceId()); 17 | } else { 18 | if($iid!=$my_coins->getSelectInstanceId()) 19 | { 20 | header("Location: home.php"); 21 | } 22 | } 23 | $iid = $my_coins->getSelectInstanceId(); 24 | $cid = $my_coins->getCoinsSelectInstanceId()+2; 25 | if($withdraw_withdraw=="withdraw") { 26 | if($withdraw_address) { 27 | if($withdraw_amount) { 28 | $withdraw_amount = satoshitize($withdraw_amount); 29 | if($withdraw_amount<=$Bitcrystalxd_Balance[$iid]) { 30 | $fee=$my_coins->coins[$my_coins->coins_names[$cid]]["fee"]; 31 | $FEEBEE = $my_coins->coins[$my_coins->coins_names[$cid]]["FEEBEE"]; 32 | $set_withdraw_amount = $withdraw_amount - $fee; // minus the fee 33 | $true_withdraw_amount = satoshitize($set_withdraw_amount); 34 | $Bitcrystalxd_Withdraw_From = $Bitcrystalxd[$iid]["daemon"]->sendtoaddress($withdraw_address,(float)$true_withdraw_amount); 35 | if($Bitcrystalxd_Withdraw_From) { 36 | $result = minusfunds($user_session,$my_coins->coins_names_prefix[$cid],$withdraw_amount); 37 | $result = plusfunds($FEEBEE,$my_coins->coins_names_prefix[$cid],$fee); // add fee to feebee account 38 | $Bitcrystalxd_Balance[$iid] = userbalance($user_session,$my_coins->coins_names_prefix[$cid]); 39 | $withdraw_message = 'Withdraw was sent! Click here for more details.'; 40 | if(!mysql_query("INSERT INTO transactions (id,date,username,action,coin,address,txid,amount,trade_id) VALUES ('','$date','$user_session','withdraw','".$my_coins->coins_names_prefix[$cid]."','$withdraw_address','$Bitcrystalxd_Withdraw_From','$withdraw_amount','".$my_coins->coins_names_prefix[0+$cid]."_".$my_coins->coins_names_prefix[1+$cid]."_".$my_coins->coins_names_prefix[$cid]."')")){ 41 | $eereturn_error = "System error."; 42 | } else { 43 | $eereturn_error = "Logged in."; 44 | } 45 | } 46 | } else { 47 | $withdraw_message = 'You do not have enough '.$my_coins->coins_names[$cid].'!'; 48 | } 49 | } else { 50 | $withdraw_message = 'No amount to withdraw was entered!'; 51 | } 52 | } else { 53 | $withdraw_message = 'No '.$my_coins->coins_names[$cid].' address was entered!'; 54 | } 55 | } 56 | ?> 57 | 58 | 59 | <?php echo $script_title; ?> 60 | 61 | 62 | 63 | 75 | 76 | 77 |
78 |
79 |
80 | 81 | 82 | 85 | 88 | 98 | 99 |
83 | Logo 84 | 86 | [zelles] 87 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 |
HomeTransactionsAccountLogout
97 |
100 |
101 |

102 | '.$withdraw_message.'

'; } ?> 103 | 104 | 105 | 153 | 155 | 167 | 168 |
106 |
107 | 108 | 109 | 132 | 146 | 147 | 148 | 149 | 150 |
110 |
111 | 112 | 113 | 114 | 115 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 |
116 | Withdraw: 117 |
Amount
Address
130 |
131 |
133 | 134 | 135 | 138 | 139 | 140 | 141 | Deposits must have 6 confirmations to become active. There is a fee of '.$my_coins->coins[$my_coins->coins_names[$cid]]["fee"].' '.$my_coins->coins_names[$cid].'s to make a withraw.'; ?> 142 | 143 |
136 | Deposit: 137 |
144 | 145 |
Save to WalletTransactions
151 |
152 |
154 | 156 | 157 |
158 | 159 |
160 |

161 |
162 | 163 |
164 |

165 |
Online:

166 |
169 |

170 | 171 |

172 |
173 | 174 | 175 | 178 | -------------------------------------------------------------------------------- /gettransactions.php: -------------------------------------------------------------------------------- 1 | listtransactions($address); 6 | for($i=count($json)-1; $i>=0; $i--){ 7 | echo $json[$i]['address']."\n"; 8 | echo $json[$i]['category']."\n"; 9 | echo $json[$i]['amount']."\n"; 10 | echo $json[$i]['confirmations']."\n"; 11 | echo $json[$i]['txid']."\n"; 12 | echo $json[$i]['timereceived']; 13 | } 14 | */ 15 | ?> -------------------------------------------------------------------------------- /image/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitcrystal/bitcoinexchange-final/66d7c4dc514f09fad2c887aba7088881646256ab/image/favicon.ico -------------------------------------------------------------------------------- /image/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitcrystal/bitcoinexchange-final/66d7c4dc514f09fad2c887aba7088881646256ab/image/logo.png -------------------------------------------------------------------------------- /image/logob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitcrystal/bitcoinexchange-final/66d7c4dc514f09fad2c887aba7088881646256ab/image/logob.png -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 0) 7 | { 8 | $Logged_In=7; 9 | } 10 | if($Logged_In===7) { 11 | header("Location: home.php"); 12 | } 13 | $coin_selecter = security($_GET['c']); 14 | if($coin_selecter) { 15 | $_SESSION['trade_coin'] = $my_coins->coinSelecter($coin_selecter); 16 | header("Location: index.php"); 17 | } 18 | $Buying_Rate = buyrate($BTC,$BTCRYX); 19 | $Selling_Rate = sellrate($BTC,$BTCRYX); 20 | if(!$Buying_Rate) { $Buying_Rate = '0'; } 21 | if(!$Selling_Rate) { $Selling_Rate = '0'; } 22 | 23 | $login_attempts = $_SESSION['login_attempts']; 24 | if(!$login_attempts) { 25 | $_SESSION['login_attempts'] = 0; 26 | } 27 | if(isset($_GET['recover']) && isset($_GET['username']) && isset($_GET['id']) ) 28 | { 29 | if($_GET['recover']==1) 30 | { 31 | $recover = $_GET['recover']; 32 | $username = $_GET['username']; 33 | $id = $_GET['id']; 34 | $sql = "SELECT * FROM users WHERE username='$username' AND trade_id = '".$my_coins->getTradeIdAccount()."'"; 35 | $result = mysql_query($sql); 36 | if($result) 37 | { 38 | $count = mysql_num_rows($result); 39 | if($count == 1) 40 | { 41 | $Row = mysql_fetch_assoc($result); 42 | $my_id=md5(md5($Row['email'].$Row['username'].$Row['password'])); 43 | if($my_id==$id) 44 | { 45 | $sql = "UPDATE users SET password = '".md5($Row['password'])."' WHERE username = '".$Row['username']."' AND trade_id = '".$my_coins->getTradeIdAccount()."';"; 46 | if(mysql_query($sql)) 47 | { 48 | mail($Row['email'], "New Password for Werris/Zelles Exchange Service","The new password for the user ".$Row['username']." is ".$Row['password']); 49 | $return_error = "Email with the new password was send!"; 50 | } else { 51 | $return_error = "Cannot password recover!"; 52 | } 53 | } 54 | } else { 55 | $return_error = "Cannot password recover!"; 56 | } 57 | 58 | } else { 59 | $return_error = "Cannot password recover!"; 60 | } 61 | 62 | } else { 63 | $return_error = "Cannot password recover!"; 64 | } 65 | } 66 | 67 | $myusername = security($_POST['username']); 68 | $mypassword = security($_POST['password']); 69 | $myrepeat = security($_POST['repeat']); 70 | $email = security($_POST['email']); 71 | $email_repeat = security($_POST['email_repeat']); 72 | $form_action = security($_POST['action']); 73 | if($form_action=="forgot") { 74 | if($email) { 75 | $sql = "SELECT * FROM users WHERE email='$email' AND trade_id = '".$my_coins->getTradeIdAccount()."'"; 76 | $result = mysql_query($sql); 77 | if($result) 78 | { 79 | $count = mysql_num_rows($result); 80 | if($count == 1) 81 | { 82 | $Row = mysql_fetch_assoc($result); 83 | $url = get_current_url(); 84 | mail($email, "Passwort Recover for Werris/Zelles Exchange Service","Please copy the url in your browser
\n ".$url."?recover=1&username=".$Row['username']."&id=".md5(md5($email.$Row['username'].$Row['password']))); 85 | $return_error = "Email with instructions details to the new password was sent to ".$email."!"; 86 | } else { 87 | $return_error = "No Email found!"; 88 | } 89 | } else { 90 | $return_error = "System error"; 91 | } 92 | } else { 93 | $return_error = "No Email was entered."; 94 | } 95 | } 96 | 97 | if($form_action=="login") { 98 | $_SESSION['login_attempts'] = $login_attempts + 1; 99 | if($login_attempts<=5) { 100 | if($myusername) { 101 | if($mypassword) { 102 | $mypassword2 = md5($mypassword); 103 | $sql = "SELECT * FROM users WHERE username='$myusername' AND trade_id = '".$my_coins->getTradeIdAccount()."'"; 104 | $result = mysql_query($sql); 105 | $count = mysql_num_rows($result); 106 | if($count==1) { 107 | $Pass_Query = mysql_query("SELECT * FROM users WHERE username='$myusername' AND trade_id = '".$my_coins->getTradeIdAccount()."'"); 108 | while($Pass_Row = mysql_fetch_assoc($Pass_Query)) { 109 | $db_Login_Pass_Check = $Pass_Row['password']; 110 | if($mypassword2==$db_Login_Pass_Check) { 111 | $return_error = "Logged in."; 112 | $_SESSION['user_session'] = $myusername; 113 | $_SESSION['user_password'] = $mypassword2; 114 | $_SESSION['user_time'] = time(); 115 | header("location: index.php"); 116 | } else { 117 | $return_error = "Invalid Password."; 118 | $_SESSION['user_time'] = 0; 119 | } 120 | } 121 | } else { 122 | $return_error = "User does not exist."; 123 | $_SESSION['user_time'] = 0; 124 | } 125 | } else { 126 | $return_error = "No password was entered."; 127 | $_SESSION['user_time'] = 0; 128 | } 129 | } else { 130 | $return_error = "No username was entered."; 131 | $_SESSION['user_time'] = 0; 132 | } 133 | } else { 134 | $return_error = "Temporary block due to excessive failed logins."; 135 | $_SESSION['user_time'] = 0; 136 | } 137 | } 138 | if($form_action=="register") { 139 | $FEEBEE_1=$my_coins->coins[$my_coins->coins_names[0]]['FEEBEE']; 140 | $FEEBEE_2=$my_coins->coins[$my_coins->coins_names[1]]['FEEBEE']; 141 | $FEEBEE_3=$my_coins->coins[$my_coins->coins_names[2]]['FEEBEE']; 142 | $create_feebee_account = $my_coins->coins["create_feebee_account"]; 143 | 144 | if($myusername && ($FEEBEE_1==$myusername || $FEEBEE_2==$myusername || $FEEBEE_3==$myusername) && !$create_feebee_account) { 145 | $coo_coo="foo_foo"; 146 | } else { 147 | $coo_coo="tootoo"; 148 | } 149 | if($coo_coo=="tootoo") { 150 | if($myusername) { 151 | if($mypassword) { 152 | if($mypassword==$myrepeat) { 153 | $uLength = strlen($myusername); 154 | $pLength = strlen($mypassword); 155 | if($uLength >= 3 && $uLength <= 30) { 156 | $return_error = ""; 157 | } else { 158 | $return_error = "Username must be between 3 and 30 characters."; 159 | $_SESSION['user_time'] = 0; 160 | } 161 | if($pLength >= 3 && $pLength <= 30) { 162 | $return_error = ""; 163 | } else { 164 | $return_error = "Password must be between 3 and 30 characters."; 165 | $_SESSION['user_time'] = 0; 166 | } 167 | if($email) { 168 | if($email!=$email_repeat) 169 | { 170 | $return_error = "Email did not match"; 171 | } 172 | $SQL = "SELECT * FROM users WHERE email='$email' AND trade_id = '".$my_coins->getTradeIdAccount()."'"; 173 | $result=mysql_query($SQL); 174 | $num_rows = mysql_num_rows($result); 175 | if($num_rows==1) { 176 | $return_error = "Email already taken."; 177 | $_SESSION['user_time'] = 0; 178 | } 179 | } else { 180 | $return_error = "No Email was entered."; 181 | } 182 | if($return_error == "") { 183 | if($db_found) { 184 | $mypassword = md5($mypassword); 185 | $SQL = "SELECT * FROM users WHERE username='$myusername' AND trade_id = '".$my_coins->getTradeIdAccount()."'"; 186 | $result = mysql_query($SQL); 187 | $num_rows = mysql_num_rows($result); 188 | if($num_rows==1) { 189 | $return_error = "Username already taken."; 190 | $_SESSION['user_time'] = 0; 191 | } else { 192 | if(!mysql_query("INSERT INTO users (id,date,ip,username,password,email,trade_id) VALUES ('','$date','$ip','$myusername','$mypassword', '$email', '".$my_coins->getTradeIdAccount()."')")){ 193 | $return_error = "System error."; 194 | $_SESSION['user_time'] = 0; 195 | } else { 196 | $return_error = "Logged in."; 197 | $_SESSION['user_session'] = $myusername; 198 | $_SESSION['user_password'] = $mypassword2; 199 | $_SESSION['user_time'] = time(); 200 | header ("Location: index.php"); 201 | } 202 | } 203 | } 204 | } 205 | } else { 206 | $return_error = "Passwords did not match"; 207 | } 208 | } else { 209 | $return_error = "No password was entered."; 210 | } 211 | } else { 212 | $return_error = "No username was entered."; 213 | } 214 | } else { 215 | $return_error = "Registrations are disabled."; 216 | } 217 | } 218 | ?> 219 | 220 | 221 | <?php echo $script_title; ?> 222 | 223 | 224 | 225 | 237 | 288 | 289 | 290 |
291 |
292 |
293 | 294 | 295 | 298 | 301 | 332 | 333 |
296 | Logo 297 | 299 | [zelles] 300 | 302 | 0) 304 | { 305 | echo"
"; 306 | echo" 307 | 308 | 309 | 310 | 311 | 312 |
313 |
"; 314 | } 315 | else 316 | { 317 | echo"
"; 318 | echo" 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 |
327 |
328 | "; 329 | } 330 | ?> 331 |
334 |
335 |

336 | '.$return_error.'

'; } ?> 337 | 338 | 339 | 464 | 466 | 511 | 512 |
340 |
341 | 342 | 343 |
    344 | 345 | outputCoinButtonLinks(); ?> 346 | 347 |
348 | 349 | 399 | 449 | 450 | 453 | 456 | 457 | 460 | 461 |
350 |
351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 |
Balance:Lowest Sell Value:
0 '.$Selling_Rate.' '.$BTC; ?>
360 |
361 | 362 | 363 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | coins[$BTCS]["buy_fee"]==true) 381 | { 382 | echo' 383 | 384 | 385 | 386 | 387 | '; 388 | } else { 389 | echo''; 390 | } 391 | ?> 392 | 393 | 394 | 395 | 396 | 397 |
364 |
Quantity
Rate
Sub-total
Fee'.$bfee.''.$BTC.'
398 |
400 |
401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 |
Balance:Highest Buy Value:
0 '.$Buying_Rate.' '.$BTC; ?>
410 |
411 | 412 | 413 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | coins[$BTCS]["sell_fee"]==true) 431 | { 432 | echo' 433 | 434 | 435 | 436 | 437 | '; 438 | } else { 439 | echo''; 440 | } 441 | ?> 442 | 443 | 444 | 445 | 446 | 447 |
414 |
Quantity
Rate
Sub-total
Fee'.$sfee.''.$BTC.'
448 |
451 | 452 | 454 | 455 |
458 | 459 |
462 |
463 |
465 | 467 |
468 |
469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 |
Register a new account:
" style="width: 100%;" required>
487 |
488 |
489 |

490 |
491 |
492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 |
Forgot Username or Password?
502 |
503 |
504 |

505 |
506 | Under development. 507 |
508 |

509 |
Online:

510 |
513 |

514 | 515 |

516 |
517 | 518 | 519 | -------------------------------------------------------------------------------- /jsonRPCClient.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | This file is part of JSON-RPC PHP. 8 | 9 | JSON-RPC PHP is free software; you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation; either version 2 of the License, or 12 | (at your option) any later version. 13 | 14 | JSON-RPC PHP is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with JSON-RPC PHP; if not, write to the Free Software 21 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | */ 23 | 24 | /** 25 | * The object of this class are generic jsonRPC 1.0 clients 26 | * http://json-rpc.org/wiki/specification 27 | * 28 | * @author sergio 29 | */ 30 | class jsonRPCClient { 31 | 32 | /** 33 | * Debug state 34 | * 35 | * @var boolean 36 | */ 37 | private $debug; 38 | 39 | /** 40 | * The server URL 41 | * 42 | * @var string 43 | */ 44 | private $url; 45 | /** 46 | * The request id 47 | * 48 | * @var integer 49 | */ 50 | private $id; 51 | /** 52 | * If true, notifications are performed instead of requests 53 | * 54 | * @var boolean 55 | */ 56 | private $notification = false; 57 | 58 | /** 59 | * Takes the connection parameters 60 | * 61 | * @param string $url 62 | * @param boolean $debug 63 | */ 64 | public function __construct($url,$debug = false) { 65 | // server URL 66 | $this->url = $url; 67 | // proxy 68 | empty($proxy) ? $this->proxy = '' : $this->proxy = $proxy; 69 | // debug state 70 | empty($debug) ? $this->debug = false : $this->debug = true; 71 | // message id 72 | $this->id = 1; 73 | } 74 | 75 | /** 76 | * Sets the notification state of the object. In this state, notifications are performed, instead of requests. 77 | * 78 | * @param boolean $notification 79 | */ 80 | public function setRPCNotification($notification) { 81 | empty($notification) ? 82 | $this->notification = false 83 | : 84 | $this->notification = true; 85 | } 86 | 87 | /** 88 | * Performs a jsonRCP request and gets the results as an array 89 | * 90 | * @param string $method 91 | * @param array $params 92 | * @return array 93 | */ 94 | public function __call($method,$params) { 95 | 96 | // check 97 | if (!is_scalar($method)) { 98 | throw new Exception('Method name has no scalar value'); 99 | } 100 | 101 | // check 102 | if (is_array($params)) { 103 | // no keys 104 | $params = array_values($params); 105 | } else { 106 | throw new Exception('Params must be given as array'); 107 | } 108 | 109 | // sets notification or request task 110 | if ($this->notification) { 111 | $currentId = NULL; 112 | } else { 113 | $currentId = $this->id; 114 | } 115 | 116 | // prepares the request 117 | $request = array( 118 | 'method' => $method, 119 | 'params' => $params, 120 | 'id' => $currentId 121 | ); 122 | $request = json_encode($request); 123 | // echo "
".$request."
"; 124 | $this->debug && $this->debug.='***** Request *****'."\n".$request."\n".'***** End Of request *****'."\n\n"; 125 | 126 | // performs the HTTP POST 127 | $opts = array ('http' => array ( 128 | 'method' => 'POST', 129 | 'header' => 'Content-type: application/json', 130 | 'content' => $request 131 | )); 132 | $context = stream_context_create($opts); 133 | if ($fp = fopen($this->url, 'r', false, $context)) { 134 | $response = ''; 135 | while($row = fgets($fp)) { 136 | $response.= trim($row)."\n"; 137 | } 138 | $this->debug && $this->debug.='***** Server response *****'."\n".$response.'***** End of server response *****'."\n"; 139 | $response = json_decode($response,true); 140 | } else { 141 | throw new Exception('Unable to connect to '.$this->url); 142 | } 143 | 144 | // debug output 145 | if ($this->debug) { 146 | echo nl2br($debug); 147 | } 148 | 149 | // final checks and return 150 | if (!$this->notification) { 151 | // check 152 | if ($response['id'] != $currentId) { 153 | throw new Exception('Incorrect response id (request id: '.$currentId.', response id: '.$response['id'].')'); 154 | } 155 | if (!is_null($response['error'])) { 156 | throw new Exception('Request error: '.$response['error']); 157 | } 158 | 159 | return $response['result']; 160 | 161 | } else { 162 | return true; 163 | } 164 | } 165 | } 166 | ?> -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /my_all_coins.php: -------------------------------------------------------------------------------- 1 | w_coins_settings=false; 16 | $this->create_feebee_account=false; 17 | $this->coins = array(); 18 | $this->coins_names = array(); 19 | $this->coins_names_prefix = array(); 20 | $this->count_coins_packages = 0; 21 | $this->cp = 0; 22 | } 23 | 24 | public function add($name) 25 | { 26 | $this->coins_names[$this->cp]=$name; 27 | $this->cp++; 28 | } 29 | 30 | public function getCoinsNames() 31 | { 32 | $build = false; 33 | if($this->count_coins_packages==0) 34 | { 35 | $build = $this->build(); 36 | } else { 37 | $build = true; 38 | } 39 | if(!$build) 40 | { 41 | return false; 42 | } 43 | return array($this->coins_names); 44 | } 45 | 46 | public function getCoinsNamesPrefix() 47 | { 48 | $build = false; 49 | if($this->count_coins_packages==0) 50 | { 51 | $build = $this->build(); 52 | } else { 53 | $build = true; 54 | } 55 | if(!$build) 56 | { 57 | return false; 58 | } 59 | return array($this->coins_names); 60 | } 61 | 62 | public function build() 63 | { 64 | $count = count($this->coins_names); 65 | if($count%3!=0) 66 | { 67 | return 0; 68 | } 69 | $this->coins=array(); 70 | for($i = 0; $i < $count; $i++) 71 | { 72 | include("my_coins/".$this->coins_names[$i].".php"); 73 | $this->coins[$i]=array(); 74 | $this->coins[$i]["name"]=$coin->getName(); 75 | $this->coins[$i]["prefix"]=$coin->getPrefix(); 76 | $this->coins[$i]["fee"]=$coin->getFee(); 77 | $this->coins[$i]["feebee"]=$coin->getFeeBee(); 78 | $this->coins[$i]["buy_fee"]=$coin->getBuyFee(); 79 | $this->coins[$i]["sell_fee"]=$coin->getSellFee(); 80 | $this->coins[$i]["rpcsettings"]=array(); 81 | $this->coins[$i]["rpcsettings"]["user"]=$coin->getRpcUser(); 82 | $this->coins[$i]["rpcsettings"]["pass"]=$coin->getRpcPass(); 83 | $this->coins[$i]["rpcsettings"]["host"]=$coin->getRpcHost(); 84 | $this->coins[$i]["rpcsettings"]["port"]=$coin->getRpcPort(); 85 | $this->coins[$i]["rpcsettings"]["walletpassphrase"]=$coin->getRpcWalletpassphrase(); 86 | $this->coins[$i]["rpcsettings"]["walletpassphrase_timeout"]=$coin->getRpcWalletpassphraseTimeout(); 87 | $this->coins_names[$i]=$coin->getName(); 88 | $this->coins_names_prefix[$i]=$coin->getPrefix(); 89 | } 90 | $this->count_coins_packages = floor($count/3); 91 | return true; 92 | } 93 | 94 | 95 | public function getCoins() 96 | { 97 | $build = false; 98 | if($this->count_coins_packages==0) 99 | { 100 | $build = $this->build(); 101 | } else { 102 | $build = true; 103 | } 104 | if(!$build) 105 | { 106 | return false; 107 | } 108 | return array($this->coins); 109 | } 110 | 111 | public function get_w_coins_settings($startoffset = 0) 112 | { 113 | $build = false; 114 | if($this->count_coins_packages==0) 115 | { 116 | $build = $this->build(); 117 | } else { 118 | $build = true; 119 | } 120 | if(!$build) 121 | { 122 | return false; 123 | } 124 | $w_coins_settings = array(); 125 | $count_p = $this->count_coins_packages; 126 | for($i = $startoffset; $i < $count_p; $i++) 127 | { 128 | $offset = $i*3; 129 | $w_coins_settings[$i]=new w_coins_settings(); 130 | $w_coins_settings[$i]->set_names($this->coins_names[0+$offset],$this->coins_names[1+$offset],$this->coins_names[2+$offset]); 131 | $w_coins_settings[$i]->set_prefixes($this->coins_names_prefix[0+$offset],$this->coins_names_prefix[1+$offset],$this->coins_names_prefix[2+$offset]); 132 | $w_coins_settings[$i]->set_fees($this->coins[0+$offset]["fee"],$this->coins[1+$offset]["fee"],$this->coins[2+$offset]["fee"]); 133 | $w_coins_settings[$i]->set_feebees($this->coins[0+$offset]["feebee"],$this->coins[1+$offset]["feebee"],$this->coins[2+$offset]["feebee"]); 134 | $w_coins_settings[$i]->set_buy_fees($this->coins[0+$offset]["buy_fee"],$this->coins[1+$offset]["buy_fee"],$this->coins[2+$offset]["buy_fee"]); 135 | $w_coins_settings[$i]->set_sell_fees($this->coins[0+$offset]["sell_fee"],$this->coins[1+$offset]["sell_fee"],$this->coins[2+$offset]["sell_fee"]); 136 | $w_coins_settings[$i]->set_rpc_settings_coin_1($this->coins[0+$offset]["rpcsettings"]["user"],$this->coins[0+$offset]["rpcsettings"]["pass"],$this->coins[0+$offset]["rpcsettings"]["host"],$this->coins[0+$offset]["rpcsettings"]["port"],$this->coins[0+$offset]["rpcsettings"]["walletpassphrase"],$this->coins[0+$offset]["rpcsettings"]["walletpassphrase_timeout"]); 137 | $w_coins_settings[$i]->set_rpc_settings_coin_2($this->coins[1+$offset]["rpcsettings"]["user"],$this->coins[1+$offset]["rpcsettings"]["pass"],$this->coins[1+$offset]["rpcsettings"]["host"],$this->coins[1+$offset]["rpcsettings"]["port"],$this->coins[1+$offset]["rpcsettings"]["walletpassphrase"],$this->coins[1+$offset]["rpcsettings"]["walletpassphrase_timeout"]); 138 | $w_coins_settings[$i]->set_rpc_settings_coin_3($this->coins[2+$offset]["rpcsettings"]["user"],$this->coins[2+$offset]["rpcsettings"]["pass"],$this->coins[2+$offset]["rpcsettings"]["host"],$this->coins[2+$offset]["rpcsettings"]["port"],$this->coins[2+$offset]["rpcsettings"]["walletpassphrase"],$this->coins[2+$offset]["rpcsettings"]["walletpassphrase_timeout"]); 139 | } 140 | 141 | $this->w_coins_settings=array($w_coins_settings); 142 | return array($w_coins_settings); 143 | } 144 | 145 | public function getFeeBeeAccount() 146 | { 147 | if($this->w_coins_settings==false) 148 | { 149 | $this->w_coins_settings=$this->get_last_w_coins_settings(); 150 | $build = $this->count_coins_packages!=0; 151 | } else { 152 | $build = true; 153 | } 154 | if(!$build) 155 | { 156 | return false; 157 | } 158 | return $this->w_coins_settings[0]->coins["create_feebee_account"]; 159 | } 160 | 161 | public function setFeeBeeAccount($set) 162 | { 163 | if($this->w_coins_settings==false) 164 | { 165 | $this->w_coins_settings=$this->get_last_w_coins_settings(); 166 | $build = $this->count_coins_packages!=0; 167 | } else { 168 | $build = true; 169 | } 170 | if(!$build) 171 | { 172 | return false; 173 | } 174 | if($set!=true) 175 | $set=false; 176 | $this->w_coins_settings[0]->coins["create_feebee_account"]=$set; 177 | } 178 | 179 | public function get_last_w_coins_settings($startoffset = 0) 180 | { 181 | if($this->w_coins_settings==false) { 182 | $this->w_coins_settings=$this->get_w_coins_settings($startoffset); 183 | } 184 | return $this->w_coins_settings; 185 | } 186 | 187 | public static function get() 188 | { 189 | if(self::$SINGLETON==NULL) 190 | self::$SINGLETON = new my_all_coins(); 191 | return self::$SINGLETON; 192 | } 193 | } 194 | ?> -------------------------------------------------------------------------------- /my_coins/BitQuark.php: -------------------------------------------------------------------------------- 1 | set_name("BitQuark"); 5 | $coin->set_prefix("BTQ"); 6 | $coin->set_fee(0.0000002); 7 | $coin->set_feebee($coin->getName()); 8 | $coin->set_buy_fee(false); 9 | $coin->set_sell_fee(false); 10 | $coin->set_rpc_settings_coin("WernerChainer", "fickdiehenneextended", "127.0.0.1", "8100", "", 99999999); 11 | ?> -------------------------------------------------------------------------------- /my_coins/Bitcoin.php: -------------------------------------------------------------------------------- 1 | set_name("Bitcoin"); 5 | $coin->set_prefix("BTC"); 6 | $coin->set_fee(0.0000002); 7 | $coin->set_feebee($coin->getName()); 8 | $coin->set_buy_fee(false); 9 | $coin->set_sell_fee(false); 10 | $coin->set_rpc_settings_coin("bitcoinrpc", "fickdiehenneextended", "127.0.0.1", "8332", "", 99999999); 11 | ?> -------------------------------------------------------------------------------- /my_coins/Bitcrystal.php: -------------------------------------------------------------------------------- 1 | set_name("Bitcrystal"); 5 | $coin->set_prefix("BTCRY"); 6 | $coin->set_fee(0.0000002); 7 | $coin->set_feebee($coin->getName()); 8 | $coin->set_buy_fee(false); 9 | $coin->set_sell_fee(false); 10 | $coin->set_rpc_settings_coin("WernerChainer", "fickdiehenne", "127.0.0.1", "19332", "", 99999999); 11 | ?> -------------------------------------------------------------------------------- /my_coins/Bitcrystalx.php: -------------------------------------------------------------------------------- 1 | set_name("Bitcrystalx"); 5 | $coin->set_prefix("BTCRYX"); 6 | $coin->set_fee(0.0000002); 7 | $coin->set_feebee($coin->getName()); 8 | $coin->set_buy_fee(false); 9 | $coin->set_sell_fee(false); 10 | $coin->set_rpc_settings_coin("WernerChainer", "fickdiehenneextended", "127.0.0.1", "19333", "", 99999999); 11 | ?> -------------------------------------------------------------------------------- /my_coins/Dogecoin.php: -------------------------------------------------------------------------------- 1 | set_name("Dogecoin"); 5 | $coin->set_prefix("DOGE"); 6 | $coin->set_fee(0.0000002); 7 | $coin->set_feebee($coin->getName()); 8 | $coin->set_buy_fee(false); 9 | $coin->set_sell_fee(false); 10 | $coin->set_rpc_settings_coin("dogecoinrpc", "fickdiehenneextended", "127.0.0.1", "8329", "", 99999999); 11 | ?> -------------------------------------------------------------------------------- /my_coins/Karmacoin.php: -------------------------------------------------------------------------------- 1 | set_name("Karmacoin"); 5 | $coin->set_prefix("KARMA"); 6 | $coin->set_fee(0.0000002); 7 | $coin->set_feebee($coin->getName()); 8 | $coin->set_buy_fee(false); 9 | $coin->set_sell_fee(false); 10 | $coin->set_rpc_settings_coin("WernerChainer", "fickdiehenneextended", "127.0.0.1", "19333", "", 99999999); 11 | ?> 12 | -------------------------------------------------------------------------------- /my_coins/Litecoin.php: -------------------------------------------------------------------------------- 1 | set_name("Litecoin"); 5 | $coin->set_prefix("LTC"); 6 | $coin->set_fee(0.0000002); 7 | $coin->set_feebee($coin->getName()); 8 | $coin->set_buy_fee(false); 9 | $coin->set_sell_fee(false); 10 | $coin->set_rpc_settings_coin("litecoinrpc", "fickdiehenneextended", "127.0.0.1", "8330", "", 99999999); 11 | ?> -------------------------------------------------------------------------------- /my_coins/Pandacoin.php: -------------------------------------------------------------------------------- 1 | set_name("Pandacoin"); 5 | $coin->set_prefix("PANDA"); 6 | $coin->set_fee(0.0000002); 7 | $coin->set_feebee($coin->getName()); 8 | $coin->set_buy_fee(false); 9 | $coin->set_sell_fee(false); 10 | $coin->set_rpc_settings_coin("pandacoinrpc", "fickdiehenneextended", "127.0.0.1", "22444", "", 99999999); 11 | ?> -------------------------------------------------------------------------------- /my_coins/my_coin.php: -------------------------------------------------------------------------------- 1 | init_name(); 8 | $this->init_prefix(); 9 | $this->init_rpc_settings_coin(); 10 | $this->init_fee(); 11 | $this->init_feebee(); // IMPORTANT, this are the accounts that fees will be paid to make sure to register it 12 | $this->init_buy_fee(); 13 | $this->init_sell_fee(); 14 | $this->set_buy_fee(false); 15 | $this->set_sell_fee(false); 16 | } 17 | 18 | private function init_name() 19 | { 20 | $coin_name = "Bitcoin"; 21 | $this->coins["name"] = $coin_name; 22 | } 23 | 24 | private function init_prefix() 25 | { 26 | $coin_prefix="BTC"; 27 | $this->coin["prefix"]=$coin_prefix; 28 | } 29 | 30 | private function init_fee() 31 | { 32 | $coin_fee = 0.01; 33 | $this->coin["fee"] = $coin_fee; 34 | } 35 | 36 | private function init_feebee() 37 | { 38 | $coin_feebee=$this->coin["name"]; 39 | $this->coin["feebee"] = $coin_feebee; 40 | } 41 | 42 | private function init_buy_fee() 43 | { 44 | $coin_fee=true; 45 | $this->coin["buy_fee"] = $coin_fee; 46 | } 47 | 48 | private function init_sell_fee() 49 | { 50 | $coin_fee=true; 51 | $this->coin["sell_fee"] = $coin_fee; 52 | } 53 | 54 | public function set_name($coin_name) 55 | { 56 | $this->coin["name"] = $coin_name; 57 | } 58 | 59 | public function set_prefix($coin_prefix) 60 | { 61 | $this->coin["prefix"]=$coin_prefix; 62 | } 63 | 64 | public function set_fee($coin_fee) 65 | { 66 | $this->coin["fee"] = $coin_fee; 67 | } 68 | 69 | public function set_feebee($coin_feebee) 70 | { 71 | $this->coin["feebee"] = $coin_feebee; 72 | } 73 | 74 | public function set_buy_fee($coin_fee) 75 | { 76 | $this->coin["buy_fee"] = $coin_fee; 77 | } 78 | 79 | public function set_sell_fee($coin_fee) 80 | { 81 | $this->coin["sell_fee"] = $coin_fee; 82 | } 83 | 84 | private function init_rpc_settings_coin() 85 | { 86 | $this->coin["rpcsettings"] = array(); 87 | 88 | $this->coin["rpcsettings"]["user"]="bitcoinrpc"; 89 | $this->coin["rpcsettings"]["pass"]="fickdiehenneextended"; 90 | $this->coin["rpcsettings"]["host"]="127.0.0.1"; 91 | $this->coin["rpcsettings"]["port"]="8332"; 92 | $this->coin["rpcsettings"]["walletpassphrase"]=""; 93 | $this->coin["rpcsettings"]["walletpassphrase_timeout"]=99999999; 94 | } 95 | 96 | public function set_rpc_settings_coin($rpc_user, $rpc_pass, $rpc_host, $rpc_port, $rpc_walletpassphrase="", $rpc_walletpassphrase_timeout=99999999) 97 | { 98 | $this->coin["rpcsettings"]["user"]=$rpc_user; 99 | $this->coin["rpcsettings"]["pass"]=$rpc_pass; 100 | $this->coin["rpcsettings"]["host"]=$rpc_host; 101 | $this->coin["rpcsettings"]["port"]=$rpc_port; 102 | $this->coin["rpcsettings"]["walletpassphrase"]=$rpc_walletpassphrase; 103 | $this->coin["rpcsettings"]["walletpassphrase_timeout"]=$rpc_walletpassphrase_timeout; 104 | } 105 | 106 | public function getName() 107 | { 108 | return $this->coin["name"]; 109 | } 110 | 111 | public function getPrefix() 112 | { 113 | return $this->coin["prefix"]; 114 | } 115 | 116 | public function getFee() 117 | { 118 | return $this->coin["fee"]; 119 | } 120 | 121 | public function getFeeBee() 122 | { 123 | return $this->coin["feebee"]; 124 | } 125 | 126 | public function getBuyFee() 127 | { 128 | return $this->coin["buy_fee"]; 129 | } 130 | 131 | public function getSellFee() 132 | { 133 | return $this->coin["sell_fee"]; 134 | } 135 | 136 | public function getRpcUser() 137 | { 138 | return $this->coin["rpcsettings"]["user"]; 139 | } 140 | 141 | public function getRpcPass() 142 | { 143 | return $this->coin["rpcsettings"]["pass"]; 144 | } 145 | 146 | public function getRpcHost() 147 | { 148 | return $this->coin["rpcsettings"]["host"]; 149 | } 150 | 151 | public function getRpcPort() 152 | { 153 | return $this->coin["rpcsettings"]["port"]; 154 | } 155 | 156 | public function getRpcWalletpassphrase() 157 | { 158 | return $this->coin["rpcsettings"]["walletpassphrase"]; 159 | } 160 | 161 | public function getRpcWalletpassphraseTimeout() 162 | { 163 | return $this->coin["rpcsettings"]["walletpassphrase_timeout"]; 164 | } 165 | } 166 | 167 | 168 | ?> -------------------------------------------------------------------------------- /online.php: -------------------------------------------------------------------------------- 1 | getTradeId()."'"); 8 | if(!mysql_num_rows($inDB)) { 9 | if($_COOKIE['geoData']) { 10 | list($city,$countryName,$countryAbbrev) = explode('|',mysql_real_escape_string(strip_tags($_COOKIE['geoData']))); 11 | } else { 12 | $xml = file_get_contents('http://api.hack4.us/?ip='.$stringIp); // get the location of the user by ip 13 | $city = get_tag('gml:name',$xml); 14 | $city = $city[1]; 15 | $countryName = get_tag('countryName',$xml); 16 | $countryName = $countryName[0]; 17 | $countryAbbrev = get_tag('countryAbbrev',$xml); 18 | $countryAbbrev = $countryAbbrev[0]; 19 | setcookie('geoData',$city.'|'.$countryName.'|'.$countryAbbrev, time()+60*60*24*30,'/'); 20 | } 21 | $countryName = str_replace('(Unknown Country?)','UNKNOWN',$countryName); 22 | if(!$countryName) { 23 | $countryName='UNKNOWN'; 24 | $countryAbbrev='XX'; 25 | $city='(Unknown City?)'; 26 | } 27 | mysql_query("INSERT INTO who_is_online (id,ip,username,botname,user,bot,guest,city,country,countrycode,trade_id) 28 | VALUES('','$stringIp','$toolbar_username','$botname','$isuser','$isbot','$isguest','$city','$countryName','$countryAbbrev','".$my_coins->getTradeId()."')"); 29 | } else { 30 | if($isuser=="1") { 31 | mysql_query("UPDATE who_is_online SET username='$toolbar_username' WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 32 | mysql_query("UPDATE who_is_online SET user='1' WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 33 | mysql_query("UPDATE who_is_online SET guest='2' WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 34 | mysql_query("UPDATE who_is_online SET bot='2' WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 35 | } 36 | if($isbot=="1") { 37 | mysql_query("UPDATE who_is_online SET botname='$botname' WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 38 | mysql_query("UPDATE who_is_online SET user='2' WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 39 | mysql_query("UPDATE who_is_online SET guest='2' WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 40 | mysql_query("UPDATE who_is_online SET bot='1' WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 41 | } 42 | if($isguest=="1") { 43 | mysql_query("UPDATE who_is_online SET user='2' WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 44 | mysql_query("UPDATE who_is_online SET guest='1' WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 45 | mysql_query("UPDATE who_is_online SET bot='2' WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 46 | } 47 | mysql_query("UPDATE who_is_online SET dt=NOW() WHERE ip='$stringIp' AND trade_id = '".$my_coins->getTradeId()."'"); 48 | } 49 | // mysql_query("DELETE FROM tz_who_is_online WHERE dt 57 | 58 | Users: '.$UsersOnline.' 59 | Guest: '.$GuestsOnline.' 60 | Bots: '.$BotsOnline.' 61 | 62 | '; 63 | ?> -------------------------------------------------------------------------------- /orders.php: -------------------------------------------------------------------------------- 1 | getTradeId()."' AND trade_with = '$BTCRYX';"); 11 | if(!$select) 12 | { 13 | $transactions_message_buy[0]="no buy orders"; 14 | } 15 | $select2 = mysql_query("SELECT * FROM sell_orderbook WHERE username='".$_SESSION['user_session']."' AND want = '$BTC' AND processed = '1' AND trade_id = '".$my_coins->getTradeId()."' AND trade_with = '$BTCRYX';"); 16 | if(!$select2) 17 | { 18 | $transactions_message_sell[0]="no sell orders"; 19 | } 20 | $count_transactions_buy = mysql_num_rows($select); 21 | $count_transactions_sell = mysql_num_rows($select2); 22 | 23 | if($count_transactions_buy <= 0) 24 | { 25 | $transactions_message_buy[0]="no buy orders"; 26 | } 27 | 28 | if($count_transactions_buy != 0) 29 | { 30 | $i = 0; 31 | while($Row = mysql_fetch_assoc($select)) { 32 | $date = $Row["date"]; 33 | $ip = $Row["ip"]; 34 | $username = $Row["username"]; 35 | $action = $Row["action"]; 36 | $want = $Row["want"]; 37 | $init_amount = $Row["initial_amount"]; 38 | $amount = $Row["amount"]; 39 | $rate = $Row["rate"]; 40 | $transactions_message_buy[$i]="Date: $date
Action: $action
Ip: $ip
Want: $want
Initial Amount: $init_amount
Amount: $amount
Rate: $rate"; 41 | $i++; 42 | } 43 | } else { 44 | $count_transactions_buy = 1; 45 | } 46 | 47 | if($count_transactions_sell <= 0) 48 | { 49 | $transactions_message_sell[0]="no sell orders"; 50 | } 51 | 52 | if($count_transactions_sell != 0) 53 | { 54 | $i = 0; 55 | while($Row = mysql_fetch_assoc($select2)) { 56 | $date = $Row["date"]; 57 | $ip = $Row["ip"]; 58 | $username = $Row["username"]; 59 | $action = $Row["action"]; 60 | $want = $Row["want"]; 61 | $init_amount = $Row["initial_amount"]; 62 | $amount = $Row["amount"]; 63 | $rate = $Row["rate"]; 64 | $transactions_message_sell[$i]="Date: $date
Action: $action
Ip: $ip
Want: $want
Initial Amount: $init_amount
Amount: $amount
Rate: $rate"; 65 | $i++; 66 | } 67 | } else { 68 | $count_transactions_sell = 1; 69 | } 70 | ?> 71 | 72 | 73 | <?php echo $script_title; ?> 74 | 75 | 76 | 77 | 89 | 90 | 91 |
92 |
93 |
94 | 95 | 96 | 99 | 102 | 113 | 114 |
97 | Logo 98 | 100 | [zelles] 101 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 |
HomeMarketTransactionsAccountLogout
112 |
115 |
116 |

117 | 118 | 119 | 189 | 191 | 203 | 204 |
120 |
121 | 122 | 123 | 152 | 153 | 154 | 183 | 184 | Deposit/Withdraw ('.$my_coins->coins_names_prefix[0].'/'.$my_coins->coins_names_prefix[1].'/'.$my_coins->coins_names_prefix[2].')'; ?> 185 | 186 |
124 | 125 | 126 | 129 | 130 | 131 | 132 | 133 | "; 148 | } 149 | ?> 150 |
127 |

Buy Orders:

128 |
"; 137 | if($i+2<$count_transactions_buy) { 138 | echo '
'.$transactions_message_buy[$i].'
'; 139 | echo '

'; 140 | echo '
'.$transactions_message_buy[$i+1].'
'; 141 | echo '

'; 142 | echo '
'.$transactions_message_buy[$i+2].'
'; 143 | $i+=2; 144 | } else { 145 | echo '
'.$transactions_message_buy[$i].'
'; 146 | } 147 | echo "
151 |
155 | 156 | 157 | 160 | 161 | 162 | 163 | 164 | "; 179 | } 180 | ?> 181 |
158 |

Sell Orders:

159 |
"; 168 | if($i+2<$count_transactions_sell) { 169 | echo '
'.$transactions_message_sell[$i].'
'; 170 | echo '

'; 171 | echo '
'.$transactions_message_sell[$i+1].'
'; 172 | echo '

'; 173 | echo '
'.$transactions_message_sell[$i+2].'
'; 174 | $i+=2; 175 | } else { 176 | echo ''; 177 | } 178 | echo"
'.$transactions_message_sell[$i].'

182 |
187 |
188 |
190 | 192 | 193 |
194 | 195 |
196 |

197 |
198 | 199 |
200 |

201 |
Online:

202 |
205 |

206 | 207 |

208 |
209 | 210 | 211 | -------------------------------------------------------------------------------- /savebtc.php: -------------------------------------------------------------------------------- 1 | setSelectInstanceId($my_coins->getInstanceId()); 12 | } else { 13 | if($iid!=$my_coins->getSelectInstanceId()) 14 | { 15 | header("Location: home.php"); 16 | } 17 | } 18 | 19 | $iid = $my_coins->getSelectInstanceId(); 20 | $cid = $my_coins->getCoinsSelectInstanceId(); 21 | if($savemoney=="savemoney") { 22 | $id=0+$cid; 23 | $wallet_id = $my_coins->getWalletId($user_session,$Bitcoind[$iid]["cid"]); 24 | $FEEBEE = $my_coins->coins[$my_coins->coins_names[$id]]["FEEBEE"]; 25 | $wallet_id_feebee = "zellesExchange(".$FEEBEE.")"; 26 | $my_balance=userbalance($user_session,$my_coins->coins_names_prefix[$id]); 27 | $result = minusfunds($user_session,$my_coins->coins_names_prefix[$id],$my_balance); 28 | $my_balance_n = $my_coins->set_coins_balance($my_coins->coins_names[$id], $wallet_id, $wallet_id_feebee, $my_balance); 29 | $result = plusfunds($user_session,$my_coins->coins_names_prefix[$id],$my_balance_n); // add fee to feebee account 30 | $Bitcoind_Balance[$iid] = userbalance($user_session,$my_coins->coins_names_prefix[$id]); 31 | $savemoney_message = 'success'; 32 | } 33 | ?> 34 | 35 | 36 | <?php echo $script_title; ?> 37 | 38 | 39 | 40 | 52 | 53 | 54 |
55 |
56 |
57 | 58 | 59 | 62 | 65 | 75 | 76 |
60 | Logo 61 | 63 | [zelles] 64 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
HomeTransactionsAccountLogout
74 |
77 |
78 |

79 | '.$savemoney_message.'

'; } ?> 80 | 81 | 82 | 107 | 109 | 121 | 122 |
83 |
84 | 85 | 86 | 101 | 102 | 103 | 104 |
87 |
88 | 89 | 90 | 91 | 92 | 95 | 96 | 97 | 98 |
93 | Save Money(coins_names_prefix[$id]?>): 94 |
99 |
100 |
Transactions
105 |
106 |
108 | 110 | 111 |
112 | 113 |
114 |

115 |
116 | 117 |
118 |

119 |
Online:

120 |
123 |

124 | 125 |

126 |
127 | 128 | 129 | -------------------------------------------------------------------------------- /savebtcry.php: -------------------------------------------------------------------------------- 1 | setSelectInstanceId($my_coins->getInstanceId()); 12 | } else { 13 | if($iid!=$my_coins->getSelectInstanceId()) 14 | { 15 | header("Location: home.php"); 16 | } 17 | } 18 | 19 | $iid = $my_coins->getSelectInstanceId(); 20 | $cid = $my_coins->getCoinsSelectInstanceId(); 21 | if($savemoney=="savemoney") { 22 | $id=1+$cid; 23 | $wallet_id = $my_coins->getWalletId($user_session,$Bitcrystald[$iid]["cid"]); 24 | $wallet_id = "zellesExchange(".$user_session.")"; 25 | $FEEBEE = $my_coins->coins[$my_coins->coins_names[$id]]["FEEBEE"]; 26 | $wallet_id_feebee = "zellesExchange(".$FEEBEE.")"; 27 | $my_balance=userbalance($user_session,$my_coins->coins_names_prefix[$id]); 28 | $result = minusfunds($user_session,$my_coins->coins_names_prefix[$id],$my_balance); 29 | $my_balance_n = $my_coins->set_coins_balance($my_coins->coins_names[$id], $wallet_id, $wallet_id_feebee, $my_balance); 30 | $result = plusfunds($user_session,$my_coins->coins_names_prefix[$id],$my_balance_n); // add fee to feebee account 31 | $Bitcrystald_Balance[$iid] = userbalance($user_session,$my_coins->coins_names_prefix[$id]); 32 | $savemoney_message = 'success'; 33 | } 34 | ?> 35 | 36 | 37 | <?php echo $script_title; ?> 38 | 39 | 40 | 41 | 53 | 54 | 55 |
56 |
57 |
58 | 59 | 60 | 63 | 66 | 76 | 77 |
61 | Logo 62 | 64 | [zelles] 65 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 |
HomeTransactionsAccountLogout
75 |
78 |
79 |

80 | '.$savemoney_message.'

'; } ?> 81 | 82 | 83 | 108 | 110 | 122 | 123 |
84 |
85 | 86 | 87 | 102 | 103 | 104 | 105 |
88 |
89 | 90 | 91 | 92 | 93 | 96 | 97 | 98 | 99 |
94 | Save Money(coins_names_prefix[$id]?>): 95 |
100 |
101 |
Transactions
106 |
107 |
109 | 111 | 112 |
113 | 114 |
115 |

116 |
117 | 118 |
119 |

120 |
Online:

121 |
124 |

125 | 126 |

127 |
128 | 129 | 130 | -------------------------------------------------------------------------------- /savebtcryx.php: -------------------------------------------------------------------------------- 1 | setSelectInstanceId($my_coins->getInstanceId()); 12 | } else { 13 | if($iid!=$my_coins->getSelectInstanceId()) 14 | { 15 | header("Location: home.php"); 16 | } 17 | } 18 | 19 | $iid = $my_coins->getSelectInstanceId(); 20 | $cid = $my_coins->getCoinsSelectInstanceId(); 21 | if($savemoney=="savemoney") { 22 | $id=2+$cid; 23 | $wallet_id = $my_coins->getWalletId($user_session,$Bitcrystalxd[$iid]["cid"]); 24 | $FEEBEE = $my_coins->coins[$my_coins->coins_names[$id]]["FEEBEE"]; 25 | $wallet_id_feebee = "zellesExchange(".$FEEBEE.")"; 26 | $my_balance=userbalance($user_session,$my_coins->coins_names_prefix[$id]); 27 | $result = minusfunds($user_session,$my_coins->coins_names_prefix[$id],$my_balance); 28 | $my_balance_n = $my_coins->set_coins_balance($my_coins->coins_names[$id], $wallet_id, $wallet_id_feebee, $my_balance); 29 | $result = plusfunds($user_session,$my_coins->coins_names_prefix[$id],$my_balance_n); // add fee to feebee account 30 | $Bitcrystalxd_Balance[$iid] = userbalance($user_session,$my_coins->coins_names_prefix[$id]); 31 | $savemoney_message = 'success'; 32 | } 33 | ?> 34 | 35 | 36 | <?php echo $script_title; ?> 37 | 38 | 39 | 40 | 52 | 53 | 54 |
55 |
56 |
57 | 58 | 59 | 62 | 65 | 75 | 76 |
60 | Logo 61 | 63 | [zelles] 64 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
HomeTransactionsAccountLogout
74 |
77 |
78 |

79 | '.$savemoney_message.'

'; } ?> 80 | 81 | 82 | 107 | 109 | 121 | 122 |
83 |
84 | 85 | 86 | 101 | 102 | 103 | 104 |
87 |
88 | 89 | 90 | 91 | 92 | 95 | 96 | 97 | 98 |
93 | Save Money(coins_names_prefix[$id]?>): 94 |
99 |
100 |
Transactions
105 |
106 |
108 | 110 | 111 |
112 | 113 |
114 |

115 |
116 | 117 |
118 |

119 |
Online:

120 |
123 |

124 | 125 |

126 |
127 | 128 | 129 | -------------------------------------------------------------------------------- /stylesheet.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #d8e0de; /* Old browsers */ 3 | background: -moz-linear-gradient(top, #d8e0de 0%, #aebfbc 22%, #99afab 33%, #8ea6a2 50%, #829d98 67%, #4e5c5a 82%, #0e0e0e 100%); /* FF3.6+ */ 4 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d8e0de), color-stop(22%,#aebfbc), color-stop(33%,#99afab), color-stop(50%,#8ea6a2), color-stop(67%,#829d98), color-stop(82%,#4e5c5a), color-stop(100%,#0e0e0e)); /* Chrome,Safari4+ */ 5 | background: -webkit-linear-gradient(top, #d8e0de 0%,#aebfbc 22%,#99afab 33%,#8ea6a2 50%,#829d98 67%,#4e5c5a 82%,#0e0e0e 100%); /* Chrome10+,Safari5.1+ */ 6 | background: -o-linear-gradient(top, #d8e0de 0%,#aebfbc 22%,#99afab 33%,#8ea6a2 50%,#829d98 67%,#4e5c5a 82%,#0e0e0e 100%); /* Opera 11.10+ */ 7 | background: -ms-linear-gradient(top, #d8e0de 0%,#aebfbc 22%,#99afab 33%,#8ea6a2 50%,#829d98 67%,#4e5c5a 82%,#0e0e0e 100%); /* IE10+ */ 8 | background: linear-gradient(to bottom, #d8e0de 0%,#aebfbc 22%,#99afab 33%,#8ea6a2 50%,#829d98 67%,#4e5c5a 82%,#0e0e0e 100%); /* W3C */ 9 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d8e0de', endColorstr='#0e0e0e',GradientType=0 ); /* IE6-9 */ 10 | color: #000000; 11 | font-family: times; 12 | font-size: 14px; 13 | margin: 0px; 14 | padding: 0px; 15 | } 16 | hr { 17 | height: 1px; 18 | background: #848484; 19 | } 20 | table { 21 | font-size: 14px; 22 | } 23 | a { 24 | text-decoration: none; 25 | color: #08298A; 26 | } 27 | input { 28 | height: 26px; 29 | border: 1px solid #848484; 30 | border-radius: 6px; 31 | -moz-border-radius: 6px; 32 | -webkit-border-radius: 6px; 33 | box-shadow: 0px 0px 5px 2px #BBBBBB; 34 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 35 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 36 | } 37 | 38 | .inputtrade { 39 | border: 1px solid #848484; 40 | height: 26px; 41 | width: 150px; 42 | text-align: right; 43 | border-radius: 6px; 44 | -moz-border-radius: 6px; 45 | -webkit-border-radius: 6px; 46 | box-shadow: 0px 0px 5px 2px #BBBBBB; 47 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 48 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 49 | } 50 | .button { 51 | height: 26px; 52 | background: #7d7e7d; /* Old browsers */ 53 | background: -moz-linear-gradient(top, #7d7e7d 0%, #0e0e0e 100%); /* FF3.6+ */ 54 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7d7e7d), color-stop(100%,#0e0e0e)); /* Chrome,Safari4+ */ 55 | background: -webkit-linear-gradient(top, #7d7e7d 0%,#0e0e0e 100%); /* Chrome10+,Safari5.1+ */ 56 | background: -o-linear-gradient(top, #7d7e7d 0%,#0e0e0e 100%); /* Opera 11.10+ */ 57 | background: -ms-linear-gradient(top, #7d7e7d 0%,#0e0e0e 100%); /* IE10+ */ 58 | background: linear-gradient(to bottom, #7d7e7d 0%,#0e0e0e 100%); /* W3C */ 59 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7d7e7d', endColorstr='#0e0e0e',GradientType=0 ); /* IE6-9 */ 60 | border: 1px solid #7d7e7d; 61 | color: #FFFFFF; 62 | font-family: tahoma; 63 | font-size: 12px; 64 | font-weight: bold; 65 | border-radius: 6px; 66 | -moz-border-radius: 6px; 67 | -webkit-border-radius: 6px; 68 | box-shadow: 0px 0px 3px 1px #7d7e7d; 69 | -moz-box-shadow: 0px 0px 3px 1px #7d7e7d; 70 | -webkit-box-shadow: 0px 0px 3px 1px #7d7e7d; 71 | } 72 | .buybutton { 73 | color: #FFFFFF; 74 | background: #1bc10f; /* Old browsers */ 75 | background: -moz-linear-gradient(top, #1bc10f 0%, #299a0b 100%); /* FF3.6+ */ 76 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1bc10f), color-stop(100%,#299a0b)); /* Chrome,Safari4+ */ 77 | background: -webkit-linear-gradient(top, #1bc10f 0%,#299a0b 100%); /* Chrome10+,Safari5.1+ */ 78 | background: -o-linear-gradient(top, #1bc10f 0%,#299a0b 100%); /* Opera 11.10+ */ 79 | background: -ms-linear-gradient(top, #1bc10f 0%,#299a0b 100%); /* IE10+ */ 80 | background: linear-gradient(to bottom, #1bc10f 0%,#299a0b 100%); /* W3C */ 81 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1bc10f', endColorstr='#299a0b',GradientType=0 ); /* IE6-9 */ 82 | font-family: tahoma; 83 | font-weight: bold; 84 | border: 1px solid #1bc10f; 85 | height: 26px; 86 | width: 100px; 87 | border-radius: 6px; 88 | -moz-border-radius: 6px; 89 | -webkit-border-radius: 6px; 90 | box-shadow: 0px 0px 3px 1px #254117; 91 | -moz-box-shadow: 0px 0px 3px 1px #254117; 92 | -webkit-box-shadow: 0px 0px 3px 1px #254117; 93 | } 94 | .buybuttonmini { 95 | color: #FFFFFF; 96 | background: #1bc10f; /* Old browsers */ 97 | background: -moz-linear-gradient(top, #1bc10f 0%, #299a0b 100%); /* FF3.6+ */ 98 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1bc10f), color-stop(100%,#299a0b)); /* Chrome,Safari4+ */ 99 | background: -webkit-linear-gradient(top, #1bc10f 0%,#299a0b 100%); /* Chrome10+,Safari5.1+ */ 100 | background: -o-linear-gradient(top, #1bc10f 0%,#299a0b 100%); /* Opera 11.10+ */ 101 | background: -ms-linear-gradient(top, #1bc10f 0%,#299a0b 100%); /* IE10+ */ 102 | background: linear-gradient(to bottom, #1bc10f 0%,#299a0b 100%); /* W3C */ 103 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1bc10f', endColorstr='#299a0b',GradientType=0 ); /* IE6-9 */ 104 | font-family: tahoma; 105 | font-size: 11px; 106 | font-weight: bold; 107 | border: 1px solid #1bc10f; 108 | height: 14px; 109 | width: 30px; 110 | padding: 2px; 111 | border-radius: 6px; 112 | -moz-border-radius: 6px; 113 | -webkit-border-radius: 6px; 114 | box-shadow: 0px 0px 3px 1px #254117; 115 | -moz-box-shadow: 0px 0px 3px 1px #254117; 116 | -webkit-box-shadow: 0px 0px 3px 1px #254117; 117 | } 118 | .sellbutton { 119 | color: #FFFFFF; 120 | background: #ff3019; /* Old browsers */ 121 | background: -moz-linear-gradient(top, #ff3019 0%, #cf0404 100%); /* FF3.6+ */ 122 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff3019), color-stop(100%,#cf0404)); /* Chrome,Safari4+ */ 123 | background: -webkit-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* Chrome10+,Safari5.1+ */ 124 | background: -o-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* Opera 11.10+ */ 125 | background: -ms-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* IE10+ */ 126 | background: linear-gradient(to bottom, #ff3019 0%,#cf0404 100%); /* W3C */ 127 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff3019', endColorstr='#cf0404',GradientType=0 ); /* IE6-9 */ 128 | font-family: tahoma; 129 | font-weight: bold; 130 | border: 1px solid #ff3019; 131 | height: 26px; 132 | width: 100px; 133 | border-radius: 6px; 134 | -moz-border-radius: 6px; 135 | -webkit-border-radius: 6px; 136 | box-shadow: 0px 0px 3px 1px #254117; 137 | -moz-box-shadow: 0px 0px 3px 1px #254117; 138 | -webkit-box-shadow: 0px 0px 3px 1px #254117; 139 | } 140 | .sellbuttonmini { 141 | color: #FFFFFF; 142 | background: #ff3019; /* Old browsers */ 143 | background: -moz-linear-gradient(top, #ff3019 0%, #cf0404 100%); /* FF3.6+ */ 144 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff3019), color-stop(100%,#cf0404)); /* Chrome,Safari4+ */ 145 | background: -webkit-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* Chrome10+,Safari5.1+ */ 146 | background: -o-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* Opera 11.10+ */ 147 | background: -ms-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* IE10+ */ 148 | background: linear-gradient(to bottom, #ff3019 0%,#cf0404 100%); /* W3C */ 149 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff3019', endColorstr='#cf0404',GradientType=0 ); /* IE6-9 */ 150 | font-family: tahoma; 151 | font-size: 11px; 152 | font-weight: bold; 153 | border: 1px solid #ff3019; 154 | height: 14px; 155 | width: 30px; 156 | padding: 2px; 157 | border-radius: 6px; 158 | -moz-border-radius: 6px; 159 | -webkit-border-radius: 6px; 160 | box-shadow: 0px 0px 3px 1px #254117; 161 | -moz-box-shadow: 0px 0px 3px 1px #254117; 162 | -webkit-box-shadow: 0px 0px 3px 1px #254117; 163 | } 164 | .deletebuttonmini { 165 | color: #FFFFFF; 166 | background: #30ff19; /* Old browsers */ 167 | background: -moz-linear-gradient(top, #30ff19 0%, #04cf04 100%); /* FF3.6+ */ 168 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#30ff19), color-stop(100%,#04cf04)); /* Chrome,Safari4+ */ 169 | background: -webkit-linear-gradient(top, #30ff19 0%,#04cf04 100%); /* Chrome10+,Safari5.1+ */ 170 | background: -o-linear-gradient(top, #30ff19 0%,#04cf04 100%); /* Opera 11.10+ */ 171 | background: -ms-linear-gradient(top, #30ff19 0%,#04cf04 100%); /* IE10+ */ 172 | background: linear-gradient(to bottom, #30ff19 0%,#04cf04 100%); /* W3C */ 173 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#30ff19', endColorstr='#04cf04',GradientType=0 ); /* IE6-9 */ 174 | font-family: tahoma; 175 | font-size: 11px; 176 | font-weight: bold; 177 | border: 1px solid #30ff19; 178 | height: 14px; 179 | width: 80px; 180 | padding: 2px; 181 | border-radius: 6px; 182 | -moz-border-radius: 6px; 183 | -webkit-border-radius: 6px; 184 | box-shadow: 0px 0px 3px 1px #254117; 185 | -moz-box-shadow: 0px 0px 3px 1px #254117; 186 | -webkit-box-shadow: 0px 0px 3px 1px #254117; 187 | } 188 | .cancelbuttonmini { 189 | color: #FFFFFF; 190 | background: #ff3019; /* Old browsers */ 191 | background: -moz-linear-gradient(top, #ff3019 0%, #cf0404 100%); /* FF3.6+ */ 192 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff3019), color-stop(100%,#cf0404)); /* Chrome,Safari4+ */ 193 | background: -webkit-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* Chrome10+,Safari5.1+ */ 194 | background: -o-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* Opera 11.10+ */ 195 | background: -ms-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* IE10+ */ 196 | background: linear-gradient(to bottom, #ff3019 0%,#cf0404 100%); /* W3C */ 197 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff3019', endColorstr='#cf0404',GradientType=0 ); /* IE6-9 */ 198 | font-family: tahoma; 199 | font-size: 11px; 200 | font-weight: bold; 201 | border: 1px solid #ff3019; 202 | height: 14px; 203 | width: 40px; 204 | padding: 2px; 205 | border-radius: 6px; 206 | -moz-border-radius: 6px; 207 | -webkit-border-radius: 6px; 208 | box-shadow: 0px 0px 3px 1px #254117; 209 | -moz-box-shadow: 0px 0px 3px 1px #254117; 210 | -webkit-box-shadow: 0px 0px 3px 1px #254117; 211 | } 212 | 213 | .headdiv { 214 | width: 940px; 215 | background: #ffffff; /* Old browsers */ 216 | background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */ 217 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */ 218 | background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */ 219 | background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera 11.10+ */ 220 | background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */ 221 | background: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%); /* W3C */ 222 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */ 223 | border: 0px none #FFFFFF; 224 | padding-top: 0px; 225 | padding-bottom: 10px; 226 | padding-left: 10px; 227 | padding-right: 10px; 228 | border-radius: 0px 0px 15px 15px; 229 | -moz-border-radius: 0px 0px 15px 15px; 230 | -webkit-border-radius: 0px 0px 15px 15px; 231 | box-shadow: 0px 0px 5px 2px #BBBBBB; 232 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 233 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 234 | } 235 | .balancesdiv { 236 | width: 890px; 237 | background: #fcfff4; /* Old browsers */ 238 | background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%); /* FF3.6+ */ 239 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fcfff4), color-stop(40%,#dfe5d7), color-stop(100%,#b3bead)); /* Chrome,Safari4+ */ 240 | background: -webkit-linear-gradient(top, #fcfff4 0%,#dfe5d7 40%,#b3bead 100%); /* Chrome10+,Safari5.1+ */ 241 | background: -o-linear-gradient(top, #fcfff4 0%,#dfe5d7 40%,#b3bead 100%); /* Opera 11.10+ */ 242 | background: -ms-linear-gradient(top, #fcfff4 0%,#dfe5d7 40%,#b3bead 100%); /* IE10+ */ 243 | background: linear-gradient(to bottom, #fcfff4 0%,#dfe5d7 40%,#b3bead 100%); /* W3C */ 244 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#b3bead',GradientType=0 ); /* IE6-9 */ 245 | color: #000000; 246 | border: 0px none #000000; 247 | padding: 5px; 248 | border-radius: 0px 0px 15px 15px; 249 | -moz-border-radius: 0px 0px 15px 15px; 250 | -webkit-border-radius: 0px 0px 15px 15px; 251 | box-shadow: 0px 0px 5px 2px #BBBBBB; 252 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 253 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 254 | } 255 | .bodydiv { 256 | width: 700px; 257 | background: #ffffff; /* Old browsers */ 258 | background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */ 259 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */ 260 | background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */ 261 | background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera 11.10+ */ 262 | background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */ 263 | background: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%); /* W3C */ 264 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */ 265 | border: 0px none #000000; 266 | padding: 10px; 267 | border-radius: 15px; 268 | -moz-border-radius: 15px; 269 | -webkit-border-radius: 15px; 270 | box-shadow: 0px 0px 5px 2px #BBBBBB; 271 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 272 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 273 | } 274 | .footdiv { 275 | width: 940px; 276 | background: #ffffff; /* Old browsers */ 277 | background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */ 278 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */ 279 | background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */ 280 | background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera 11.10+ */ 281 | background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */ 282 | background: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%); /* W3C */ 283 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */ 284 | border: 0px none #000000; 285 | padding: 10px; 286 | border-radius: 15px; 287 | -moz-border-radius: 15px; 288 | -webkit-border-radius: 15px; 289 | box-shadow: 0px 0px 5px 2px #BBBBBB; 290 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 291 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 292 | } 293 | .right-panel { 294 | width: 200px; 295 | background: #ffffff; /* Old browsers */ 296 | background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */ 297 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */ 298 | background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */ 299 | background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera 11.10+ */ 300 | background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */ 301 | background: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%); /* W3C */ 302 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */ 303 | border: 0px none #000000; 304 | padding: 10px; 305 | border-radius: 15px; 306 | -moz-border-radius: 15px; 307 | -webkit-border-radius: 15px; 308 | box-shadow: 0px 0px 5px 2px #BBBBBB; 309 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 310 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 311 | } 312 | 313 | .right-panel-table { 314 | width: 940px; 315 | } 316 | .right-panel-left { 317 | width: 700px; 318 | } 319 | .right-panel-right { 320 | width: 200px; 321 | } 322 | .error-msg { 323 | width: 940px; 324 | background: #febbbb; /* Old browsers */ 325 | background: -moz-linear-gradient(top, #febbbb 0%, #fe9090 45%, #ff5c5c 100%); /* FF3.6+ */ 326 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#febbbb), color-stop(45%,#fe9090), color-stop(100%,#ff5c5c)); /* Chrome,Safari4+ */ 327 | background: -webkit-linear-gradient(top, #febbbb 0%,#fe9090 45%,#ff5c5c 100%); /* Chrome10+,Safari5.1+ */ 328 | background: -o-linear-gradient(top, #febbbb 0%,#fe9090 45%,#ff5c5c 100%); /* Opera 11.10+ */ 329 | background: -ms-linear-gradient(top, #febbbb 0%,#fe9090 45%,#ff5c5c 100%); /* IE10+ */ 330 | background: linear-gradient(to bottom, #febbbb 0%,#fe9090 45%,#ff5c5c 100%); /* W3C */ 331 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#febbbb', endColorstr='#ff5c5c',GradientType=0 ); /* IE6-9 */ 332 | border: 0px none #F5A9A9; 333 | font-weight: bold; 334 | padding: 5px; 335 | border-radius: 7px; 336 | -moz-border-radius: 7px; 337 | -webkit-border-radius: 7px; 338 | box-shadow: 0px 0px 5px 2px #BBBBBB; 339 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 340 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 341 | } 342 | .pending-right { 343 | width: 200px; 344 | background: #d2ff52; /* Old browsers */ 345 | background: -moz-linear-gradient(top, #d2ff52 0%, #91e842 100%); /* FF3.6+ */ 346 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d2ff52), color-stop(100%,#91e842)); /* Chrome,Safari4+ */ 347 | background: -webkit-linear-gradient(top, #d2ff52 0%,#91e842 100%); /* Chrome10+,Safari5.1+ */ 348 | background: -o-linear-gradient(top, #d2ff52 0%,#91e842 100%); /* Opera 11.10+ */ 349 | background: -ms-linear-gradient(top, #d2ff52 0%,#91e842 100%); /* IE10+ */ 350 | background: linear-gradient(to bottom, #d2ff52 0%,#91e842 100%); /* W3C */ 351 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d2ff52', endColorstr='#91e842',GradientType=0 ); /* IE6-9 */ 352 | border: 0px none #d2ff52; 353 | padding: 10px; 354 | border-radius: 15px; 355 | -moz-border-radius: 15px; 356 | -webkit-border-radius: 15px; 357 | box-shadow: 0px 0px 5px 2px #BBBBBB; 358 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 359 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 360 | } 361 | 362 | .my-pending-right { 363 | width: 500px; 364 | background: #d2ff52; /* Old browsers */ 365 | background: -moz-linear-gradient(top, #d2ff52 0%, #91e842 100%); /* FF3.6+ */ 366 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d2ff52), color-stop(100%,#91e842)); /* Chrome,Safari4+ */ 367 | background: -webkit-linear-gradient(top, #d2ff52 0%,#91e842 100%); /* Chrome10+,Safari5.1+ */ 368 | background: -o-linear-gradient(top, #d2ff52 0%,#91e842 100%); /* Opera 11.10+ */ 369 | background: -ms-linear-gradient(top, #d2ff52 0%,#91e842 100%); /* IE10+ */ 370 | background: linear-gradient(to bottom, #d2ff52 0%,#91e842 100%); /* W3C */ 371 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d2ff52', endColorstr='#91e842',GradientType=0 ); /* IE6-9 */ 372 | border: 0px none #d2ff52; 373 | padding: 10px; 374 | border-radius: 15px; 375 | -moz-border-radius: 15px; 376 | -webkit-border-radius: 15px; 377 | box-shadow: 0px 0px 5px 2px #BBBBBB; 378 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 379 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 380 | } 381 | 382 | .pending-rightyellow { 383 | width: 200px; 384 | background: #fefcea; /* Old browsers */ 385 | background: -moz-linear-gradient(top, #fefcea 0%, #f1da36 100%); /* FF3.6+ */ 386 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefcea), color-stop(100%,#f1da36)); /* Chrome,Safari4+ */ 387 | background: -webkit-linear-gradient(top, #fefcea 0%,#f1da36 100%); /* Chrome10+,Safari5.1+ */ 388 | background: -o-linear-gradient(top, #fefcea 0%,#f1da36 100%); /* Opera 11.10+ */ 389 | background: -ms-linear-gradient(top, #fefcea 0%,#f1da36 100%); /* IE10+ */ 390 | background: linear-gradient(to bottom, #fefcea 0%,#f1da36 100%); /* W3C */ 391 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefcea', endColorstr='#f1da36',GradientType=0 ); /* IE6-9 */ 392 | border: 2px solid #F7FE2E; 393 | padding: 10px; 394 | border-radius: 15px; 395 | -moz-border-radius: 15px; 396 | -webkit-border-radius: 15px; 397 | box-shadow: 0px 0px 7px 3px #222222; 398 | -moz-box-shadow: 0px 0px 7px 3px #222222; 399 | -webkit-box-shadow: 0px 0px 7px 3px #222222; 400 | } 401 | .buy-sells { 402 | height: 240px; 403 | //max-width: 300px; 404 | overflow:hidden; 405 | background: #fcfff4; /* Old browsers */ 406 | background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%); /* FF3.6+ */ 407 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fcfff4), color-stop(40%,#dfe5d7), color-stop(100%,#b3bead)); /* Chrome,Safari4+ */ 408 | background: -webkit-linear-gradient(top, #fcfff4 0%,#dfe5d7 40%,#b3bead 100%); /* Chrome10+,Safari5.1+ */ 409 | background: -o-linear-gradient(top, #fcfff4 0%,#dfe5d7 40%,#b3bead 100%); /* Opera 11.10+ */ 410 | background: -ms-linear-gradient(top, #fcfff4 0%,#dfe5d7 40%,#b3bead 100%); /* IE10+ */ 411 | background: linear-gradient(to bottom, #fcfff4 0%,#dfe5d7 40%,#b3bead 100%); /* W3C */ 412 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#b3bead',GradientType=0 ); /* IE6-9 */ 413 | border: 0px none #fcfff4; 414 | padding: 0px; 415 | margin: 0px; 416 | border-radius: 7px 0px 0px 7px; 417 | -moz-border-radius: 7px 0px 0px 7px; 418 | -webkit-border-radius: 7px 0px 0px 7px; 419 | box-shadow: 0px 0px 5px 2px #BBBBBB; 420 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 421 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 422 | overflow:auto; 423 | } 424 | .buy-sells-box { 425 | height: 50px; 426 | background: #ffffff; /* Old browsers */ 427 | background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */ 428 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */ 429 | background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */ 430 | background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera 11.10+ */ 431 | background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */ 432 | background: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%); /* W3C */ 433 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */ 434 | border: 0px none #fcfff4; 435 | padding: 0px; 436 | margin: 0px; 437 | border-radius: 7px 7px 7px 7px; 438 | -moz-border-radius: 7px 7px 7px 7px; 439 | -webkit-border-radius: 7px 7px 7px 7px; 440 | box-shadow: 0px 0px 3px 1px #BBBBBB; 441 | -moz-box-shadow: 0px 0px 3px 1px #BBBBBB; 442 | -webkit-box-shadow: 0px 0px 3px 1px #BBBBBB; 443 | } 444 | .coin-button { 445 | background: #7d7e7d; /* Old browsers */ 446 | background: -moz-linear-gradient(top, #7d7e7d 0%, #0e0e0e 100%); /* FF3.6+ */ 447 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7d7e7d), color-stop(100%,#0e0e0e)); /* Chrome,Safari4+ */ 448 | background: -webkit-linear-gradient(top, #7d7e7d 0%,#0e0e0e 100%); /* Chrome10+,Safari5.1+ */ 449 | background: -o-linear-gradient(top, #7d7e7d 0%,#0e0e0e 100%); /* Opera 11.10+ */ 450 | background: -ms-linear-gradient(top, #7d7e7d 0%,#0e0e0e 100%); /* IE10+ */ 451 | background: linear-gradient(to bottom, #7d7e7d 0%,#0e0e0e 100%); /* W3C */ 452 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7d7e7d', endColorstr='#0e0e0e',GradientType=0 ); /* IE6-9 */ 453 | border: 2px solid #7d7e7d; 454 | padding: 5px; 455 | border-radius: 7px; 456 | -moz-border-radius: 7px; 457 | -webkit-border-radius: 7px; 458 | box-shadow: 0px 0px 5px 2px #BBBBBB; 459 | -moz-box-shadow: 0px 0px 5px 2px #BBBBBB; 460 | -webkit-box-shadow: 0px 0px 5px 2px #BBBBBB; 461 | } 462 | .coin-link { 463 | color: #FFFFFF; 464 | text-decoration: none; 465 | } -------------------------------------------------------------------------------- /transactions.php: -------------------------------------------------------------------------------- 1 | Action: $action
Coin: $coin
Adress: $address
Txid: $txid
Amount: $amount"; 32 | $i++; 33 | } 34 | } else { 35 | $count_transactions = 1; 36 | } 37 | ?> 38 | 39 | 40 | <?php echo $script_title; ?> 41 | 42 | 43 | 44 | 56 | 57 | 58 |
59 |
60 |
61 | 62 | 63 | 66 | 69 | 80 | 81 |
64 | Logo 65 | 67 | [zelles] 68 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |
HomeMarketTransactionsAccountLogout
79 |
82 |
83 |

84 | 85 | 86 | 125 | 127 | 139 | 140 |
87 |
88 | 89 | 90 | 119 | 120 | outputDepositWithdrawLink() ?> 121 | 122 |
91 | 92 | 93 | 96 | 97 | 98 | 99 | 100 | "; 115 | } 116 | ?> 117 |
94 |

Transactions:

95 |
"; 104 | if($i+2<$count_transactions) { 105 | echo '
'.$transactions_message[$i].'
'; 106 | echo '

'; 107 | echo '
'.$transactions_message[$i+1].'
'; 108 | echo '

'; 109 | echo '
'.$transactions_message[$i+2].'
'; 110 | $i+=2; 111 | } else { 112 | echo ''; 113 | } 114 | echo "
'.$transactions_message[$i].'

118 |
123 |
124 |
126 | 128 | 129 |
130 | 131 |
132 |

133 |
134 | 135 |
136 |

137 |
Online:

138 |
141 |

142 | 143 |

144 |
145 | 146 | 147 | -------------------------------------------------------------------------------- /w_coins_settings.php: -------------------------------------------------------------------------------- 1 | init_create_feebee_account(); 8 | $this->init_names(); 9 | $this->init_prefixes(); 10 | $this->init_rpc_settings_coin_1(); 11 | $this->init_rpc_settings_coin_2(); 12 | $this->init_rpc_settings_coin_3(); 13 | $this->init_fees(); 14 | $this->init_feebees(); // IMPORTANT, this are the accounts that fees will be paid to make sure to register it 15 | $this->init_buy_fees(); 16 | $this->init_sell_fees(); 17 | $this->set_buy_fees(false, false, false); 18 | $this->set_sell_fees(false, false, false); 19 | } 20 | 21 | private function init_create_feebee_account() 22 | { 23 | $create_feebee_account=false; 24 | $this->coins["create_feebee_account"]=$create_feebee_account; 25 | } 26 | 27 | private function init_names() 28 | { 29 | $coin_name_1="Bitcoin"; 30 | $coin_name_2="Bitcrystal"; 31 | $coin_name_3="Bitcrystalx"; 32 | $this->coins["coin_name_1"] = $coin_name_1; 33 | $this->coins["coin_name_2"] = $coin_name_2; 34 | $this->coins["coin_name_3"] = $coin_name_3; 35 | $this->coins[$coin_name_1] = array(); 36 | $this->coins[$coin_name_2] = array(); 37 | $this->coins[$coin_name_3] = array(); 38 | } 39 | 40 | private function init_prefixes() 41 | { 42 | $coin_prefix_1="BTC"; 43 | $coin_prefix_2="BTCRY"; 44 | $coin_prefix_3="BTCRYX"; 45 | $this->coins["coin_prefix_1"] = $coin_prefix_1; 46 | $this->coins["coin_prefix_2"] = $coin_prefix_2; 47 | $this->coins["coin_prefix_3"] = $coin_prefix_3; 48 | } 49 | 50 | private function init_fees() 51 | { 52 | $coin_fee_1=0.01; 53 | $coin_fee_2=0.01; 54 | $coin_fee_3=0.01; 55 | $this->coins["coin_fee_1"] = $coin_fee_1; 56 | $this->coins["coin_fee_2"] = $coin_fee_2; 57 | $this->coins["coin_fee_3"] = $coin_fee_3; 58 | } 59 | 60 | private function init_feebees() 61 | { 62 | $coin_feebee_1=$this->coins["coin_name_1"]; 63 | $coin_feebee_2=$this->coins["coin_name_2"]; 64 | $coin_feebee_3=$this->coins["coin_name_3"]; 65 | $this->coins["coin_feebee_1"] = $coin_feebee_1; 66 | $this->coins["coin_feebee_2"] = $coin_feebee_2; 67 | $this->coins["coin_feebee_3"] = $coin_feebee_3; 68 | } 69 | 70 | private function init_buy_fees() 71 | { 72 | $coin_fee_1=true; 73 | $coin_fee_2=true; 74 | $coin_fee_3=true; 75 | $this->coins["coin_buy_fee_1"] = $coin_fee_1; 76 | $this->coins["coin_buy_fee_2"] = $coin_fee_2; 77 | $this->coins["coin_buy_fee_3"] = $coin_fee_3; 78 | } 79 | 80 | private function init_sell_fees() 81 | { 82 | $coin_fee_1=true; 83 | $coin_fee_2=true; 84 | $coin_fee_3=true; 85 | $this->coins["coin_sell_fee_1"] = $coin_fee_1; 86 | $this->coins["coin_sell_fee_2"] = $coin_fee_2; 87 | $this->coins["coin_sell_fee_3"] = $coin_fee_3; 88 | } 89 | 90 | public function set_create_feebee_account($create_feebee_account) 91 | { 92 | $this->coins["create_feebee_account"]=$create_feebee_account; 93 | } 94 | 95 | public function set_names($coin_name_1, $coin_name_2, $coin_name_3) 96 | { 97 | $this->coins["coin_name_1"] = $coin_name_1; 98 | $this->coins["coin_name_2"] = $coin_name_2; 99 | $this->coins["coin_name_3"] = $coin_name_3; 100 | } 101 | 102 | public function set_prefixes($coin_prefix_1, $coin_prefix_2, $coin_prefix_3) 103 | { 104 | $this->coins["coin_prefix_1"] = $coin_prefix_1; 105 | $this->coins["coin_prefix_2"] = $coin_prefix_2; 106 | $this->coins["coin_prefix_3"] = $coin_prefix_3; 107 | } 108 | 109 | public function set_fees($coin_fee_1, $coin_fee_2, $coin_fee_3) 110 | { 111 | $this->coins["coin_fee_1"] = $coin_fee_1; 112 | $this->coins["coin_fee_2"] = $coin_fee_2; 113 | $this->coins["coin_fee_3"] = $coin_fee_3; 114 | } 115 | 116 | public function set_feebees($coin_feebee_1, $coin_feebee_2, $coin_feebee_3) 117 | { 118 | $this->coins["coin_feebee_1"] = $coin_feebee_1; 119 | $this->coins["coin_feebee_2"] = $coin_feebee_2; 120 | $this->coins["coin_feebee_3"] = $coin_feebee_3; 121 | } 122 | 123 | public function set_buy_fees($coin_fee_1, $coin_fee_2, $coin_fee_3) 124 | { 125 | $this->coins["coin_buy_fee_1"] = $coin_fee_1; 126 | $this->coins["coin_buy_fee_2"] = $coin_fee_2; 127 | $this->coins["coin_buy_fee_3"] = $coin_fee_3; 128 | } 129 | 130 | public function set_sell_fees($coin_fee_1, $coin_fee_2, $coin_fee_3) 131 | { 132 | $this->coins["coin_sell_fee_1"] = $coin_fee_1; 133 | $this->coins["coin_sell_fee_2"] = $coin_fee_2; 134 | $this->coins["coin_sell_fee_3"] = $coin_fee_3; 135 | } 136 | 137 | private function init_rpc_settings_coin_1() 138 | { 139 | $coins_name = $this->coins["coin_name_1"]; 140 | $this->coins[$coins_name]["rpcsettings"] = array(); 141 | 142 | $this->coins[$coins_name]["rpcsettings"]["user"]="bitcoinrpc"; 143 | $this->coins[$coins_name]["rpcsettings"]["pass"]="fickdiehenneextended"; 144 | $this->coins[$coins_name]["rpcsettings"]["host"]="127.0.0.1"; 145 | $this->coins[$coins_name]["rpcsettings"]["port"]="8332"; 146 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase"]=""; 147 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase_timeout"]=99999999; 148 | } 149 | 150 | private function init_rpc_settings_coin_2() 151 | { 152 | $coins_name = $this->coins["coin_name_2"]; 153 | $this->coins[$coins_name]["rpcsettings"] = array(); 154 | 155 | $this->coins[$coins_name]["rpcsettings"]["user"]="WernerChainer"; 156 | $this->coins[$coins_name]["rpcsettings"]["pass"]="fickdiehenne"; 157 | $this->coins[$coins_name]["rpcsettings"]["host"]="127.0.0.1"; 158 | $this->coins[$coins_name]["rpcsettings"]["port"]="19332"; 159 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase"]=""; 160 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase_timeout"]=99999999; 161 | } 162 | 163 | private function init_rpc_settings_coin_3() 164 | { 165 | $coins_name = $this->coins["coin_name_3"]; 166 | $this->coins[$coins_name]["rpcsettings"] = array(); 167 | 168 | $this->coins[$coins_name]["rpcsettings"]["user"]="WernerChainer"; 169 | $this->coins[$coins_name]["rpcsettings"]["pass"]="fickdiehenneextended"; 170 | $this->coins[$coins_name]["rpcsettings"]["host"]="127.0.0.1"; 171 | $this->coins[$coins_name]["rpcsettings"]["port"]="19333"; 172 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase"]=""; 173 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase_timeout"]=99999999; 174 | } 175 | 176 | public function set_rpc_settings_coin_1($rpc_user, $rpc_pass, $rpc_host, $rpc_port, $rpc_walletpassphrase="", $rpc_walletpassphrase_timeout=99999999) 177 | { 178 | $coins_name = $this->coins["coin_name_1"]; 179 | 180 | $this->coins[$coins_name]["rpcsettings"]["user"]=$rpc_user; 181 | $this->coins[$coins_name]["rpcsettings"]["pass"]=$rpc_pass; 182 | $this->coins[$coins_name]["rpcsettings"]["host"]=$rpc_host; 183 | $this->coins[$coins_name]["rpcsettings"]["port"]=$rpc_port; 184 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase"]=$rpc_walletpassphrase; 185 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase_timeout"]=$rpc_walletpassphrase_timeout; 186 | } 187 | 188 | public function set_rpc_settings_coin_2($rpc_user, $rpc_pass, $rpc_host, $rpc_port, $rpc_walletpassphrase="", $rpc_walletpassphrase_timeout=99999999) 189 | { 190 | $coins_name = $this->coins["coin_name_2"]; 191 | 192 | $this->coins[$coins_name]["rpcsettings"]["user"]=$rpc_user; 193 | $this->coins[$coins_name]["rpcsettings"]["pass"]=$rpc_pass; 194 | $this->coins[$coins_name]["rpcsettings"]["host"]=$rpc_host; 195 | $this->coins[$coins_name]["rpcsettings"]["port"]=$rpc_port; 196 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase"]=$rpc_walletpassphrase; 197 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase_timeout"]=$rpc_walletpassphrase_timeout; 198 | } 199 | 200 | public function set_rpc_settings_coin_3($rpc_user, $rpc_pass, $rpc_host, $rpc_port, $rpc_walletpassphrase="", $rpc_walletpassphrase_timeout=99999999) 201 | { 202 | $coins_name = $this->coins["coin_name_3"]; 203 | 204 | $this->coins[$coins_name]["rpcsettings"]["user"]=$rpc_user; 205 | $this->coins[$coins_name]["rpcsettings"]["pass"]=$rpc_pass; 206 | $this->coins[$coins_name]["rpcsettings"]["host"]=$rpc_host; 207 | $this->coins[$coins_name]["rpcsettings"]["port"]=$rpc_port; 208 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase"]=$rpc_walletpassphrase; 209 | $this->coins[$coins_name]["rpcsettings"]["walletpassphrase_timeout"]=$rpc_walletpassphrase_timeout; 210 | } 211 | } 212 | 213 | 214 | ?> --------------------------------------------------------------------------------