Git Product home page Git Product logo

coinhive_pool's People

Contributors

sau412 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

coinhive_pool's Issues

Logo design

Hi @sau412 , I'm a graphic designer and I want to contribute on your project, I can make a logo for your project if you want to. What do you think?

Freebitcoin script not full working / fixed it

Hi, i found a error in your freebitcoin/freedogecoin script.
The script should read something from the database, but the column does not exist at all. I reworked it once.

First i have added this in db_scheme:

CREATE

TABLE results (
uid int(11) NOT NULL,
user_uid int(11) NOT NULL,
platform varchar(100) COLLATE utf8_unicode_ci NOT NULL,
value double NOT NULL,
address varchar(255),
timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

After that:

function update_user_result_id($user_uid,$platform,$new_id) {
$user_uid_escaped=db_escape($user_uid);
$platform_escaped=db_escape($platform);
$new_id_escaped=db_escape($new_id);

    $exists=db_query_to_variable("SELECT 1 FROM `results` WHERE `platform`='$platform_escaped' AND `address`='$new_id_escaped'");

    if(!$exists) {
            db_query("INSERT INTO `results` (`user_uid`,`platform`,`address`,`value`) VALUES ('$user_uid_escaped','$platform_escaped','$new_id_escaped',0)

ON DUPLICATE KEY UPDATE address=VALUES(address)");
}
}

And:

echo "id $id dogecoin $dogecoin\n";
$id_escaped=db_escape($id);
$user_uid=db_query_to_variable("SELECT user_uid FROM results WHERE address='$id_escaped'");
if(!$user_uid) {
echo "User not found\n";
continue;
}
$user_uid_escaped=db_escape($user_uid);
$dogecoins_balance=db_query_to_variable("SELECT value FROM results WHERE address='$id_escaped'");
$balance_diff=$dogecoin-$dogecoins_balance;
if($balance_diff>0) {
echo "New $balance_diff DOGE, add to $user_uid\n";
update_user_results($user_uid,"Freedogecoin",$dogecoin);
} else {
echo "No balance change";
}

Miner and assets not working fine

On start, the coinimp miner should be there. Not the coinhive miner.
And the assets not working, balance everytime at zero.

I tried to correct that, but i dont have enough time and i am not on my pc, iam away.

Quick tipp.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.