Web files for Peercoin.net
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
assets Exchange update (January 2016) Jan 15, 2016
include Made the Call To Action a CSS class. Mar 20, 2014
locale Added greek locale. Fixes #210 May 2, 2015
.gitignore Add back web files. Mar 15, 2014
.htaccess Re-enabling the HTTP to HTTPS rewrite. Oct 29, 2015
LICENSE Updated license date Dec 29, 2014
README.md Update README.md Oct 5, 2014
bitaddress.html Add back web files. Mar 15, 2014
developers.php Revert "Peerunity developer page fix." Sep 11, 2014
download-peerunity.php Merge pull request #258 from i-petko/master May 9, 2016
download.php Update to download.php May 9, 2016
exchanges.php Exchange update (January 2016) Jan 15, 2016
faq.php Small content changes. Sep 6, 2014
favicon.ico New favicon Feb 14, 2015
footer.php Update of header and footer Mar 5, 2015
header.php added Peercoin Wiki May 18, 2015
index.php Moved the index page header image a bit down. Sep 11, 2014
investors.php Added videos to its placeholders. Sep 6, 2014
merchants.php Final fixes. Sep 7, 2014
mining-guide.php Mining guide update Mar 5, 2015
mining.php Added videos to its placeholders. Sep 6, 2014
minting-guide.php Added videos to its placeholders. Sep 6, 2014
minting.php Added videos to its placeholders. Sep 6, 2014
newcomers.php Added videos to its placeholders. Sep 6, 2014
news.php New website implementation. Aug 28, 2014
payment-integration-guide.php Modified the translation system, added new translations. Sep 17, 2014
ppcmarket.txt Add back web files. Mar 15, 2014
tickerinfo.php Add back web files. Mar 15, 2014
update_tickerinfo.php Removed decimal places from the market cap. Nov 13, 2014
wallet.php Added bkchain wallet to the wallet page. Resolves #188 Dec 8, 2014
webhook.php Should fix #69 Mar 30, 2014
whitepaper.php Small content changes. Sep 6, 2014


Peercoin.net Repo

The static html files for Peercoin.net. The website is automatically updated from this repo every 10 minutes, so be careful with any commits to the master branch.


Content requests, bugs, etc. are all handled through Github Issues. We will try to get to your issue as soon as possible.

Pull Requests

If you have a simple change to the website, we ask that you put in a pull request instead of an issue. These include things like link changes, text errors, etc. We can add these to the live site just by accepting the pull, which makes everything easier. We are currently using Tip4Commit and Peer4Commit to reward commiters. Fluff commits will be rejected.

tip for next commit tip for next commit

If don't know how to submit a pull request use these helpful guides: one and two.


Changes to translations as well as new translations can be submitted to Peercoin.net's Transifex page.

Translations are periodically pulled from Transifex and merged into the git repository.

Important: We do not accept translation changes as GitHub pull requests because the next pull from Transifex would automatically overwrite them again.

Installing and Running

Below are just some notes for running the website yourself. We run the website on a simple Apache2 server with PHP5 installed.


URL Rewriting via Apache's mod_rewrite module has issues when the MultiViews option is set in any of the config files in the sites-available directory. Ensure this option is removed from your site's config files or errors will occur with URL rewriting (/mining.php -> /mining)

We run the deploy.sh every 10 minutes, so that the live site is always up to date. This also calls the market ticker updater. The cron job is listed below:

*/10 * * * * /root/deploy.sh > /root/error.txt 2>&1

The script(deploy.sh):


# Install - Only Run Once
# git clone https://github.com/super3/peercoin.net.git /var/www

# Update
cd /var/www/
git fetch origin
git reset --hard origin/master

# Update Ticker
php /var/www/update_tickerinfo.php

Market Ticker

The ticker sources data from CoinMarketCap, and if that fails, falls back to the Vircurex API. tickerinfo.php returns a JSON array containing the last price, market capitalization, and total number of PPC in circulation.

Ensure that ppcmarket.txt is writeable by the PHP user so that the ticker can store updated information. Running update_tickerinfo.php will update the info provided by the ticker. This should be run via cron.