$ git clone http://thingshare.ion.nu/thingshare.git
commit 276be957a44b3b02a2927f96b744c2427c103540
Author: Alicia <...>
Date: Sat Mar 14 16:09:27 2020 +0100
Implemented password-changing.
diff --git a/editprofile.php b/editprofile.php
index 589838c..ae06395 100644
--- a/editprofile.php
+++ b/editprofile.php
@@ -38,8 +38,9 @@ $res=mysqli_fetch_assoc($res);
<script src="<?=BASEURL?>/mdjs/mdjs.js"></script>
<form method="post">
<?=nonce()?>
- Display name: <input type="text" name="displayname" value="<?=$res['displayname']?>" /><br />
- Profile:<br />
+ <a href="<?=BASEURL?>/changepassword"><?=_('Change password')?></a><br />
+ <?=_('Display name:')?> <input type="text" name="displayname" value="<?=$res['displayname']?>" /><br />
+ <?=_('Profile:')?><br />
<textarea name="profile" rows="15" style="width:100%;" onchange="document.getElementById('mdpreview').innerHTML='Markdown preview:<br />'+Mdjs.md2html(this.value);" onkeyup="this.onchange();"><?=$res['profile']?></textarea><br />
<div id="mdpreview"></div>
<button><?=_('Save')?></button>
diff --git a/foot.php b/foot.php
index 763557a..efecc36 100644
--- a/foot.php
+++ b/foot.php
@@ -1,9 +1,9 @@
</div>
<div class="footer">
- <div class="c2">
+ <div class="c2 top">
<h4>About</h4>
Thingshare is a federated system for sharing data for home manufacturing. For more information see <a href="https://thingshare.ion.nu/">thingshare.ion.nu</a>
- </div><div class="c2">
+ </div><div class="c2 top">
<h4>Contact</h4>
E-mail address: <a href="mailto:<?=EMAIL?>"><?=EMAIL?></a>
</div>
diff --git a/index.php b/index.php
index 45eec92..203e47d 100644
--- a/index.php
+++ b/index.php
@@ -44,6 +44,7 @@ switch($path[1])
case 'license': include('license.php'); break;
case 'editprofile': include('editprofile.php'); break;
case 'editthing': include('editthing.php'); break;
+ case 'changepassword': include('changepassword.php'); break;
case 'messages': include('messages.php'); break;
case 'verifyemail': include('verifyemail.php'); break;
case 'report': include('report.php'); break;
diff --git a/style.css b/style.css
index b4efb05..0fa5518 100644
--- a/style.css
+++ b/style.css
@@ -142,6 +142,8 @@ div.footer {
div.c2 {
display:inline-block;
width:50%;
+}
+div.top {
vertical-align:top;
}
table {