Add say hi button to firstrun wizard :D - closes #175

This commit is contained in:
Starbeamrainbowlabs 2019-11-24 11:50:49 +00:00
parent 52cb0d02dc
commit 60cca5a5e2
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
4 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,7 @@
# Changelog # Changelog
This file holds the changelog for Pepperminty Wiki. This is the master list of things that have changed (second only to the commit history!) - though the information for any particular release can also be found in the description of it's page for every release made on GitHub too. This file holds the changelog for Pepperminty Wiki. This is the master list of things that have changed (second only to the commit history!) - though the information for any particular release can also be found in the description of it's page for every release made on GitHub too.
## v0.20-beta2
## v0.20-beta1 ## v0.20-beta1

View File

@ -75,7 +75,7 @@
"version": "0.1", "version": "0.1",
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Displays a special page to aid in setting up a new wiki for the first time.", "description": "Displays a special page to aid in setting up a new wiki for the first time.",
"lastupdate": 1568802471, "lastupdate": 1574596170,
"optional": false, "optional": false,
"extra_data": [] "extra_data": []
}, },

View File

@ -33,7 +33,7 @@ register_module([
* ██ ██ ██ ██ ███████ ██ ██ ██ ██████ ██ ████ * ██ ██ ██ ██ ███████ ██ ██ ██ ██████ ██ ████
*/ */
add_action("firstrun", function() { add_action("firstrun", function() {
global $settings, $settingsFilename; global $settings, $settingsFilename, $version;
if($settings->firstrun_complete) { if($settings->firstrun_complete) {
http_response_code(400); http_response_code(400);
@ -74,6 +74,7 @@ register_module([
$result = "<h1>Welcome!</h1> $result = "<h1>Welcome!</h1>
<p>Welcome to Pepperminty Wiki.</p> <p>Welcome to Pepperminty Wiki.</p>
<p>Fill out the below form to get your wiki up and running!</p> <p>Fill out the below form to get your wiki up and running!</p>
<p>Optionally, <a target='_blank' href='https://starbeamrainbowlabs.com/blog/viewtracker.php?action=record&post-id=pepperminty-wiki/$version&format=text'>click this link</a> to say hi and let Starbeamrainbowlabs know that you're setting up a new Pepperminty Wiki $version instance.</p>
<form method='post' action='?action=firstrun-complete'> <form method='post' action='?action=firstrun-complete'>
<fieldset> <fieldset>
<legend>Authorisation</legend> <legend>Authorisation</legend>

View File

@ -1 +1 @@
v0.20-beta1 v0.20-beta2