Author

Topic: CoinDice modifications (Read 838 times)

sr. member
Activity: 560
Merit: 250
Bounty manager (https://t.me/Gudwinn)
March 17, 2014, 11:59:24 AM
#3

This is a patch for double deposit bug. ...

/var/www/content/cron/check_deposits.php

Code:
      if ($delExed==true) {
+        if (mysql_query("SELECT COUNT(*) FROM transactions WHERE txid = '$dp[txid]'") >= 1) {
+          echo "TXID already exists!";
+        }
+       else {
        mysql_query("UPDATE `players` SET `balance`=TRUNCATE(ROUND((`balance`+$received),9),8) WHERE `id`=$dp[player_id] LIMIT 1");
        mysql_query("INSERT INTO `transactions` (`player_id`,`amount`,`txid`) VALUES ($dp[player_id],$dp[amount],'$dp[txid]')");
+        }


Note: This is a fix for Coindice 2, Coindice 3 implemented their own fix.
sr. member
Activity: 560
Merit: 250
Bounty manager (https://t.me/Gudwinn)
March 17, 2014, 11:48:25 AM
#2
Add a F.A.Q:

Open index.php find:

Code:

and add below it:

Code:

Open up /js/includer.php and find:

Code:
        type:"info",
        opacity:0.8,
        buttons: [{ value: "Close" }],
      });
      return false;   
    }

and add below it:

Code:
function faq() {
      $.msgBox({
        title:"Frequently Asked Questions",
        content:"

1. What is the house edge?
The house edge is only 2%. We deduct 2% from your multiplier

2. Can I play as soon as I deposit?
Yes, we accept 0 confirmation deposits. Your deposit will appear as your balance within several seconds.

3. How long will it take to receieve my cashout
Cashouts are instant in most cases. However, please keep in mind your initial deposit has to reach 1 confirmation before it will be sent.

4. What is Provably Fair?
Provably Fair is a unique sha256 hash to prove each and every bet made on our website is 100% legit.

5. What does the \"High Roller\" tab represent?
This tab acts as a filter between smaller bets and larger risks for your viewing entertainment. Be sure to check out this tab to see all the recent big bets! 
",
        type:"info",
        opacity:0.8,
        buttons: [{ value: "Close" }],       
      });
      return false;   
    }



That's for anyone who wants to add a F.A.Q to their site.


Thanks for the HOW-TO for users who wants to add F.A.Q.

Just for clarification, don't use
  as it is the identificator div for other purpose. change ID "faircon" to something else, e.g. "faqid"
sr. member
Activity: 560
Merit: 250
Bounty manager (https://t.me/Gudwinn)
March 17, 2014, 11:44:03 AM
#1
Lets keep this thread for CoinDice modifications Smiley

Coindice can be purchased here: https://bitcointalksearch.org/topic/m.5597989 or from johny1976

MAKE CHANGES AT YOUR OWN RISK
Jump to: