removed url-shortening
fixed location parser due to changes on the RWTH-Campus webpage
This commit is contained in:
parent
9d1802c844
commit
9855a1a9bb
1 changed files with 8 additions and 1 deletions
|
@ -206,7 +206,7 @@ if (isset($matrnr) && isset($passwd)) {
|
|||
|
||||
case 'LOCATION':
|
||||
$matches = array();
|
||||
if (preg_match('/^([0-9]+\|[0-9]+) /', $value, $matches)) {
|
||||
if (preg_match('/^([0-9]+\|[0-9]+)/', $value, $matches)) {
|
||||
$room = $matches[1];
|
||||
$address = get_address($db, $room);
|
||||
|
||||
|
@ -284,6 +284,13 @@ else {
|
|||
var cipher = $('#matrnr').val() + ':' + $('#passwd').val();
|
||||
var link = '<?php echo $scriptUrl ?>?hash=' + Base64.encode(cipher);
|
||||
|
||||
$('#result a').attr('href', link);
|
||||
$('#result a').text(link);
|
||||
$('#result').show(300);
|
||||
|
||||
return;
|
||||
|
||||
/* we dont want to store your credentials ;-) sorry for these ugly links */
|
||||
$.ajax({
|
||||
url : 'http://d.0l.de/add.json',
|
||||
data : {
|
||||
|
|
Loading…
Add table
Reference in a new issue