index.js
function runScript(exists, file, param, response) {
	console.log(TacitServer.configs.server_prefix + " - runScript called");
	if(!exists) return sendError(404, 'File not found', response);
	var command = '';
	var extension = file.split('.').pop();
	switch(extension) {
	case 'php':
		command = 'php';
		break;
	case 'js':
		command = 'node';
		break;
	default:
		// nothing
	}
	runner.exec(command + " " + file + " " + param,
	function(err, stdout, stderr) {
		sendData(err, stdout, stderr, response);
	}
	);
}
function runScript(exists, file, param, response) {
	console.log(TacitServer.configs.server_prefix + " - runScript called");
	if(!exists) return sendError(404, 'File not found', response);
	var command = '';
	var extension = file.split('.').pop();
	switch(extension) {
	case 'php':
		command = 'php';
		break;
	case 'js':
		command = 'node';
		break;
	default:
		// nothing
	}
	runner.exec(command + " " + file + " " + param,
	function(err, stdout, stderr) {
		sendData(err, stdout, stderr, response);
	}
	);
}
/*
RUNSCRIPT - The Running of the Script