Skip to content

Commit

Permalink
revert niceURLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Kolbowski committed May 16, 2018
1 parent 935b2cc commit 7a7b7db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="container">

<h1 class="page-header"> Data Upload example - (identification & peak list file pair)</h1>
<a href="db/HSA-BS3_example">HSA-BS3 cross-link example dataset</a>
<a href="viewSpectrum.php?db=HSA-BS3_example">HSA-BS3 cross-link example dataset</a>

<h1 class="page-header"> PRIDE example </h1>
<a href="upload.php?ex=pxd">PXD005654</a>
Expand Down
2 changes: 1 addition & 1 deletion viewSpectrum.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
<div id='justSavedMsg' style="line-height: 2em;"></div>
<?php

$link = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://". $_SERVER['SERVER_NAME'] . "/db/" . $dbName;
$link = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://". $_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI];
if (isset($public)){
echo 'This dataset is public - you can go ahead and share the link below</br><label class="flex-row label">url: <div class="flex-grow"><input type="text" class="form-control shareURL" value="'.$link.'" readonly onClick="this.select();"></div></label>';
}
Expand Down

0 comments on commit 7a7b7db

Please sign in to comment.