-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
7d57965
commit 690c18e
Showing
13 changed files
with
119 additions
and
13 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,43 @@ | ||
<?php | ||
require 'header.php'; | ||
require 'navbar.php'; | ||
session_start(); | ||
if(empty($_SESSION['moduleFileCreated'])) { | ||
$_SESSION['moduleFileCreated'] = false; | ||
} | ||
if(empty($_SESSION['inputFileCreated'])) { | ||
$_SESSION['inputFileCreated'] = false; | ||
} | ||
?> | ||
<br> | ||
<div class="container"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div> | ||
<h5>Default Build</h5> | ||
<form method="get" action="scripts/defaultBuild.php"> | ||
<button class="btn btn-secondary" type="submit">Download</button> | ||
</form> | ||
</div> | ||
<?php if ($_SESSION['inputFileCreated']): ?> | ||
<hr> | ||
<div> | ||
<h5>Input File</h5> | ||
<form method="get" action="scripts/userInputFile.php"> | ||
<button class="btn btn-secondary" type="submit">Download</button> | ||
</form> | ||
</div> | ||
<?php endif; ?> | ||
<?php if ($_SESSION['moduleFileCreated']): ?> | ||
<hr> | ||
<div> | ||
<h5>Module File With User-Added Modules</h5> | ||
<form method="get" action="scripts/userModuleFile.php"> | ||
<button class="btn btn-secondary" type="submit">Download</button> | ||
</form> | ||
</div> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
|
||
</div> |
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
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
File renamed without changes.
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<nav class="navbar navbar-expand-lg navbar-light bg-light"> | ||
<a class="navbar-brand" href="./index.php">Bioliner</a> | ||
<a class="navbar-brand" href="/index.php">Bioliner</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNavAltMarkup"> | ||
<div class="navbar-nav"> | ||
<a class="nav-item nav-link" href="./Modules.php">Modules</a> | ||
<a class="nav-item nav-link" href="./Workflows.php">Workflows</a> | ||
<a class="nav-item nav-link" href="/views/Modules.php">Modules</a> | ||
<a class="nav-item nav-link" href="/views/Workflows.php">Workflows</a> | ||
<a class="nav-item nav-link" href="/views/Downloads.php">Downloads</a> | ||
</div> | ||
</div> | ||
</nav> |
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
File renamed without changes.
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,22 @@ | ||
<?php | ||
session_start(); | ||
$file = "../zip-files/bioliner.zip"; | ||
$rootPath = realpath("../zip-files/bioliner.zip"); | ||
|
||
if (file_exists($rootPath) && is_file($rootPath)) { | ||
|
||
header('Content-Description: File Transfer'); | ||
header("Content-Type: application/zip"); | ||
header('Content-Disposition: attachment; filename="'.basename($rootPath).'"'); | ||
header('Expires: 0'); | ||
header('Cache-Control: must-revalidate'); | ||
header('Pragma: public'); | ||
header('Content-Length: ' . filesize($rootPath)); | ||
if (ob_get_level()) { | ||
ob_end_clean(); | ||
} | ||
readfile($file); | ||
exit; | ||
} else { | ||
echo "Invalid file"; | ||
} |
File renamed without changes.
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,20 @@ | ||
<?php | ||
session_start(); | ||
$inputFile = "../uploads" . DIRECTORY_SEPARATOR . session_id() . DIRECTORY_SEPARATOR . "input.xml"; | ||
if (file_exists($inputFile) && is_file($inputFile)) { | ||
|
||
header('Content-Description: File Transfer'); | ||
header('Content-Type: application/octet-stream'); | ||
header('Content-Disposition: attachment; filename="'.basename($inputFile).'"'); | ||
header('Expires: 0'); | ||
header('Cache-Control: must-revalidate'); | ||
header('Pragma: public'); | ||
header('Content-Length: ' . filesize($inputFile)); | ||
if (ob_get_level()) { | ||
ob_end_clean(); | ||
} | ||
readfile($inputFile); | ||
exit; | ||
} else { | ||
echo "Error downloading file"; | ||
} |
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,20 @@ | ||
<?php | ||
session_start(); | ||
$inputFile = "../uploads" . DIRECTORY_SEPARATOR . session_id() . DIRECTORY_SEPARATOR . "module.xml"; | ||
if (file_exists($inputFile) && is_file($inputFile)) { | ||
|
||
header('Content-Description: File Transfer'); | ||
header('Content-Type: application/octet-stream'); | ||
header('Content-Disposition: attachment; filename="'.basename($inputFile).'"'); | ||
header('Expires: 0'); | ||
header('Cache-Control: must-revalidate'); | ||
header('Pragma: public'); | ||
header('Content-Length: ' . filesize($inputFile)); | ||
if (ob_get_level()) { | ||
ob_end_clean(); | ||
} | ||
readfile($inputFile); | ||
exit; | ||
} else { | ||
echo "Error downloading file"; | ||
} |