-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Harry Kodden
committed
Oct 1, 2023
1 parent
c804157
commit 1e1901d
Showing
3 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
echo "<h1>Links</h1>"; | ||
|
||
echo "Here you find the links supported at this moment"; | ||
|
||
echo "<ul>"; | ||
foreach (glob("/etc/mounts/*.conf") as $filename) { | ||
$path = basename($filename, ".conf"); | ||
if ($path != "admin") { | ||
$description = "WebDAV link: '" . $path . "'"; | ||
$path = "webdav/" . $path; | ||
} else { | ||
$description = "Administration page"; | ||
} | ||
echo "<li><a href=\"" . $_SERVER['url'] . "/" . $path . "\">" . $description . "</a></li>"; | ||
|
||
if ($path == 'admin') { | ||
echo "<li><a href=\"" . $_SERVER['url'] . "/" . $path . "/api/doc\">" . $description . " (API Documentation)</a></li>"; | ||
} | ||
} | ||
echo "</ul>"; | ||
|
||
echo "<h2>Authentication</h2>"; | ||
|
||
echo "The following rules for authentication apply:"; | ||
|
||
echo "<h3>Admininistration portal</h3>"; | ||
echo "Federated authentication via your institute at which you are linked to this SRAM Service"; | ||
echo "<br/>"; | ||
echo "You also need to be member of the admins groups that is registered with this SRAM Service."; | ||
|
||
echo "<h3>WebDAV links</h3>"; | ||
echo "Authenticate with your SRAM User ID and your SRAM Token that you have registered for this SRAM Service"; | ||
|
||
// phpinfo(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters