diff options
| author | Adam Soltys <[email protected]> | 2012-11-06 20:59:25 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2012-11-06 22:56:57 -0800 |
| commit | 5f907fcf5b98c5be780bb0edfe830b96d068e585 (patch) | |
| tree | 6819e040a4bc8f41330103dd9cb54ba528c550d1 /clients.js | |
| parent | 08f341f692688f077e9080bded2b14fdd5979c1e (diff) | |
| download | coinos-server-5f907fcf5b98c5be780bb0edfe830b96d068e585.tar.gz coinos-server-5f907fcf5b98c5be780bb0edfe830b96d068e585.zip | |
Use node and express
Diffstat (limited to 'clients.js')
| -rw-r--r-- | clients.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/clients.js b/clients.js deleted file mode 100644 index f75b5d52..00000000 --- a/clients.js +++ /dev/null @@ -1,22 +0,0 @@ -var http = require('http'); -var mysql = require('mysql'); -var url = require('url'); - -http.createServer(function (req, res) { - res.writeHead(200, { 'Content-Type': 'text/plain' }); - var client = url.parse(req.url, true).query.client; - - var connection = mysql.createConnection({ - host : 'localhost', - user : 'root', - password : 'MPJzfq97', - database: 'vanbtc' - }); - - connection.connect(); - connection.query("SELECT * FROM users WHERE login = ?", [client], function(err, rows) { - res.write(JSON.stringify(rows)); - connection.end(); - res.end(); - }); -}).listen(8000); |
