Made sure the socks5 changes went through properly and fixed a search.jade bug.
This commit is contained in:
parent
f7e5eed37b
commit
fce8691aed
|
@ -1,3 +1,3 @@
|
||||||
//- search.jade
|
//- search.jade
|
||||||
input.search(type="text", name="searchterm", placeholder="Je naam, id, klassennaam, docentencode, lokaalcode", value=(match.first_name || match.name) + '\'s rooster')
|
input.search(type="text", name="searchterm", placeholder="Je naam, id, klassennaam, docentencode, lokaalcode", value=match ? ((match.first_name || match.name) + '\'s rooster') : '')
|
||||||
button.search Zoeken
|
button.search Zoeken
|
||||||
|
|
|
@ -13,14 +13,12 @@ function schedule(req, res, next) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Function for getting the page via http.
|
//Function for getting the page via http.
|
||||||
function get(url, callback) {
|
function get(get_url, callback) {
|
||||||
|
|
||||||
var options = url.parse(url);
|
var options = url.parse(get_url);
|
||||||
options.socksPort = config().tor_port;
|
options.socksPort = config().tor_port;
|
||||||
options.socksHost = config().tor_host;
|
options.socksHost = config().tor_host;
|
||||||
|
|
||||||
console.log(options);
|
|
||||||
|
|
||||||
http.get(options, function (res) {
|
http.get(options, function (res) {
|
||||||
var _download = '';
|
var _download = '';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var http = require('socsk5-http-client');
|
var http = require('socks5-http-client');
|
||||||
var cheerio = require('cheerio');
|
var cheerio = require('cheerio');
|
||||||
var iconv = require('iconv-lite');
|
var iconv = require('iconv-lite');
|
||||||
var mongodb = require('mongodb').MongoClient;
|
var mongodb = require('mongodb').MongoClient;
|
||||||
|
|
1
web.js
1
web.js
|
@ -21,7 +21,6 @@ app.use('/other', express.static(__dirname + '/resources/other'));
|
||||||
|
|
||||||
app.get('/', function (req, res) {
|
app.get('/', function (req, res) {
|
||||||
req.links = config().links;
|
req.links = config().links;
|
||||||
console.log(req.user);
|
|
||||||
res.render('homepage', req);
|
res.render('homepage', req);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue