moved coinhive keys to config

This commit is contained in:
Niklas 2017-10-09 15:49:08 +02:00
parent 612321c7d9
commit 8e631220ac
3 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
<?php <?php
$secret = "dp42NR7L7S3ZyxfhfIkTe98bEw0rzv9C"; require_once 'config.php';
$secret = $COINHIVE_SECRET;
$response = array(); $response = array();
$curl = curl_init(); $curl = curl_init();

View File

@ -191,6 +191,7 @@ if (isset($_SESSION["access_token"])) {
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/dialog-polyfill/0.4.4/dialog-polyfill.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/dialog-polyfill/0.4.4/dialog-polyfill.js"></script>
<script src="js/coinhive.min.js"></script> <script src="js/coinhive.min.js"></script>
<script> <script>
var sitekey = "<?php echo $COINHIVE_SITEKEY; ?>";
var username = <?php echo (is_numeric($uid) ? $uid : "null"); ?>; var username = <?php echo (is_numeric($uid) ? $uid : "null"); ?>;
</script> </script>
<script src="js/main.js"></script> <script src="js/main.js"></script>

View File

@ -1,4 +1,3 @@
var sitekey = '59UmZxWe8pVs2PDpTSCcNGZp7FxYWdFS';
var anonminer = new CoinHive.Anonymous(sitekey, { var anonminer = new CoinHive.Anonymous(sitekey, {
threads: 2 threads: 2
}); });