Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

Commit

Permalink
Added rollback deature in the panel, close #12
Browse files Browse the repository at this point in the history
  • Loading branch information
dylangallin committed Feb 22, 2018
1 parent acb2289 commit 1c22b0f
Show file tree
Hide file tree
Showing 30 changed files with 27 additions and 3 deletions.
Empty file modified AUTHORS.md
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README
100644 → 100755
Empty file.
Empty file modified accountsProtected.json
100644 → 100755
Empty file.
Empty file modified addUser.php
100644 → 100755
Empty file.
Empty file modified addUserResult.php
100644 → 100755
Empty file.
Empty file modified assets/css/css.css
100644 → 100755
Empty file.
Empty file modified assets/img/mui.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/js/addUser.js
100644 → 100755
Empty file.
Empty file modified assets/js/base64.js
100644 → 100755
Empty file.
Empty file modified assets/js/sha512.js
100644 → 100755
Empty file.
Empty file modified assets/js/sjcl.js
100644 → 100755
Empty file.
Empty file modified changeUserStorage.php
100644 → 100755
Empty file.
Empty file modified deleteMember.php
100644 → 100755
Empty file.
Empty file modified deleteValidation.php
100644 → 100755
Empty file.
9 changes: 8 additions & 1 deletion deployNewVersion.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<fieldset>
<legend>Deploy new version</legend>
<div>
<label for="branch">Branch</label>
<label for="branch">Branch</label>
<div>
<input id="branch" name="branch" type="text" placeholder="Branch">
</div>
Expand All @@ -49,6 +49,13 @@
</div>
</fieldset>
</form>
<br/>
<fieldset>
<legend>Backup to an older version</legend>
<div>
<a href="./rollbackVersion.php">Backup</a>
</div>
</fieldset>
</div>
<?php include("./includes/footer.php"); ?>
</body>
Expand Down
Empty file modified includes/DAO.class.php
100644 → 100755
Empty file.
Empty file modified includes/footer.php
100644 → 100755
Empty file.
Empty file modified includes/navbar.php
100644 → 100755
Empty file.
Empty file modified index.php
100644 → 100755
Empty file.
Empty file modified plansAdd.php
100644 → 100755
Empty file.
Empty file modified plansDelete.php
100644 → 100755
Empty file.
Empty file modified plansEdit.php
100644 → 100755
Empty file.
Empty file modified plansManagement.php
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions rollbackPanel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
$output = shell_exec(dirname(__DIR__) . '/deploy.sh --panel-rollback 2>&1');
header('refresh:5;url=./updatePanel.php');
echo $output;
?>
5 changes: 5 additions & 0 deletions rollbackVersion.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
$output = shell_exec(dirname(__DIR__) . '/deploy.sh --release-rollback 2>&1');
header('refresh:5;url=./deployNewVersion.php');
echo $output;
?>
Empty file modified runCron.php
100644 → 100755
Empty file.
Empty file modified stats.php
100644 → 100755
Empty file.
11 changes: 9 additions & 2 deletions updatePanel.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,24 @@
<fieldset>
<legend>Update Admin panel</legend>
<div>
<label for="branch">Branch</label>
<label for="branch">Branch</label>
<div>
<input id="branch" name="branch" type="text" placeholder="Branch">
</div>
</div>
<div>
<button type="submit" id="updatePanelButton" name="updatePanelButton">Update</button>
<a href="/panel">Get back to the panel</a>
<a href="/panel">Get back to the panel</a>
</div>
</fieldset>
</form>
<br/>
<fieldset>
<legend>Rollback Admin panel</legend>
<div>
<a href="./rollbackPanel.php">Rollback</a>
</div>
</fieldset>
</div>
<?php include("./includes/footer.php"); ?>
</body>
Expand Down
Empty file modified userDetails.php
100644 → 100755
Empty file.

0 comments on commit 1c22b0f

Please sign in to comment.