Skip to content

Commit

Permalink
[AUDIT] Update Documentation & Remove Unused Lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Mar 14, 2022
1 parent 6cfccab commit 15054db
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 23 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@ This is the code and pages that allow the Seals to accept donations through Stri
This code serves as a repository and backup to the Hull Seals Donations website, found at https://hullseals.space/donate, including fonts, images, and HTML/CSS.

# Installation
Simply load these files into your web directory and open in a browser. The pages are readable by all major browsers. Donations require javascript to be enabled in the browser.
Simply load these files into your web directory and open in a browser. The pages are readable by all major browsers. Donations require JavaScript to be enabled in the browser.

## Requirements
- PHP 7.3+
- [Composer](https://getcomposer.org/)
- A Web server software such as Apache2 or NGIX.
- A JavaScript-enabled browser.
- (OPTIONAL) This page was written to be used with [UserSpice](https://userspice.com).
- This page was written to be used with [UserSpice](https://userspice.com) and the Seal template.

## Usage
To install, download the latest [release](https://gitlab.com/hull-seals/code/website-subsections/donations/tags) from our repository. Upload and extract the files to the directory or subdirectory you wish to install from, and run the composer install and update commands. Then, change the secret key and pricing information in processing.php.
To install, download the latest [release](https://gitlab.com/hull-seals/code/website-subsections/donations/tags) from our repository. Upload and extract the files to the directory or subdirectory you wish to install from, and run the composer install and update commands. Then, change the secret key in processing.php.

# Contributing
Interested in joining the Hull Seals Cyberseals? Read up on [the Welcome Board](https://gitlab.com/hull-seals/welcome-to-the-hull-seals-devops-board).
Interested in joining the Hull Seals Cyberseals? Read up on [the Welcome Board](https://gitlab.com/hull-seals/welcome).

# Authors and Acknowledgements
Many thanks to the original theme developer of the site, [Wolfii](https://gitlab.com/wolfii1). Implemented by [Rixxan](https://gitlab.com/Rixxan).
Many thanks to the original theme developer of the site, [Wolfii](https://gitlab.com/wolfii1). Implemented by [Rixxan](https://gitlab.com/Rixxan) with the [UserSpice Template System](https://gitlab.com/hull-seals/code/seals-template).

Many thanks to all of our [Contributors](https://gitlab.com/hull-seals-cyberseals/welcome-to-the-hull-seals-devops-board/blob/master/CONTRIBUTORS.md).

# License
This project is governed under the [GNU General Public License v3.0](LICENSE) license.

# Project Status
This project is generally considered stable, with very few updates to the code in the near future.
This project is generally considered stable, with few updates to the code in the near future.
8 changes: 3 additions & 5 deletions cancel.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
$pgContent = "Canceled Donation";
$useIP = 0; //1 if Yes, 0 if No.

//If you have any custom scripts, CSS, etc, you MUST declare them here.
//They will be inserted at the bottom of the <head> section.
$customContent = '';

//UserSpice Required
require_once '../users/init.php'; //make sure this path is correct!
require_once $abs_us_root.$us_url_root.'users/includes/template/prep.php';
if (!securePage($_SERVER['PHP_SELF'])){die();}
?>
<h1>Transaction Canceled.</h1>
<h5 class="text-danger">Your donation has been canceled.<br /><br /> You may now close the tab.<br /><br /> You have not been charged.</h5>
<?php require_once $abs_us_root . $us_url_root . 'users/includes/html_footer.php'; ?>
<?php
require_once $abs_us_root . $us_url_root . 'users/includes/html_footer.php';
?>
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions processing.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,4 @@
}
header("HTTP/1.1 303 See Other");
header("Location: " . $checkout_session->url);
// Based on https://github.com/stripe-archive/checkout-subscription-and-add-on/blob/699e48cf6943b973904f72a8f3cfaddef0c811b4/server/php/public/create-checkout-session.php
8 changes: 3 additions & 5 deletions success.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
$pgContent = "Successful Donation";
$useIP = 0; //1 if Yes, 0 if No.

//If you have any custom scripts, CSS, etc, you MUST declare them here.
//They will be inserted at the bottom of the <head> section.
$customContent = '';

//UserSpice Required
require_once '../users/init.php'; //make sure this path is correct!
require_once $abs_us_root.$us_url_root.'users/includes/template/prep.php';
if (!securePage($_SERVER['PHP_SELF'])){die();}
?>
<h1>Donation Successful!</h1>
<h5 class="text-success">Thank you for generous donation, CMDR!<br /><br /> You may now close the tab.<br /><br /> If you do not receive a confirmation email soon, please contact us.</h5>
<?php require_once $abs_us_root . $us_url_root . 'users/includes/html_footer.php'; ?>
<?php
require_once $abs_us_root . $us_url_root . 'users/includes/html_footer.php';
?>

0 comments on commit 15054db

Please sign in to comment.