The site is really laggy atm, can you figure out what wrong with it please?
Looks like someone is trying to crash the server with a ton of request. I'l get some protection up. Humanity is so disappointing at times.
You said it.
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
$wallet=new jsonRPCClient($driver_login);
$transactions = $wallet->listtransactions('',256);
/* go through each of these 256 transactions we got from the wallet */
foreach($transactions as $tx){
if ($tx['category']=='receive')
{
$amount = $tx['amount'];
$txid = $tx['txid'];
$confirmations = $tx['confirmations'];
$address=$tx['address'];
$ssql=mysql_query("SELECT * FROM `bank_deposits` WHERE txid='$txid'");
if (mysql_num_rows($ssql)<1){
/* this does not exist in the banks archive, we must create it */
mysql_query("INSERT INTO `bank_deposits` (`amount`,`txid`,`confirmations`,`address`) VALUES ('$amount','$txid','$confirmations','$address')");
} else {
$deposit = mysql_fetch_array($ssql);
/* check if it has more than 3 confirmations */
if ($confirmations>2)
{
/* its in the database already and has enough confirmations, has it been credited? */
if ($deposit['credited']=='0')
{
/* it hasn't been credited yet! lets do it. */
mysql_query("UPDATE `bank_deposits` SET `credited` = '1' WHERE `txid` ='$txid';");
/* add to users balance */
mysql_query("UPDATE `players` SET balance = balance+$amount WHERE `deposit_address`='$address';");
} else {
//it has been credited, so we're done here.
}
} else {
/* not three confirmations yet, so update confirmations */
mysql_query("UPDATE `bank_deposits` SET confirmations='$confirmations' WHERE `txid`='$txid'");
}
}
}
}
?>