Made sure the socks5 changes went through properly and fixed a search.jade bug.

This commit is contained in:
Bram van der Veen 2015-06-24 17:26:24 +02:00
parent f7e5eed37b
commit fce8691aed
4 changed files with 5 additions and 8 deletions

View file

@ -1,3 +1,3 @@
//- 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

View file

@ -13,14 +13,12 @@ function schedule(req, res, next) {
}
//Function for getting the page via http.
function get(url, callback) {
var options = url.parse(url);
function get(get_url, callback) {
var options = url.parse(get_url);
options.socksPort = config().tor_port;
options.socksHost = config().tor_host;
console.log(options);
http.get(options, function (res) {
var _download = '';

View file

@ -1,4 +1,4 @@
var http = require('socsk5-http-client');
var http = require('socks5-http-client');
var cheerio = require('cheerio');
var iconv = require('iconv-lite');
var mongodb = require('mongodb').MongoClient;

1
web.js
View file

@ -21,7 +21,6 @@ app.use('/other', express.static(__dirname + '/resources/other'));
app.get('/', function (req, res) {
req.links = config().links;
console.log(req.user);
res.render('homepage', req);
});