diff --git a/activatedarea.php b/activatedarea.php
index 8af7639..ffe4a2d 100644
--- a/activatedarea.php
+++ b/activatedarea.php
@@ -12,4 +12,21 @@ if($_SESSION['activated'] == 0) {
die ("Not activated yet");
}
echo "heres the fun world";
-?>
\ No newline at end of file
+?>
+
+
+
\ No newline at end of file
diff --git a/changeprofilepicture.php b/changeprofilepicture.php
new file mode 100644
index 0000000..7e147b4
--- /dev/null
+++ b/changeprofilepicture.php
@@ -0,0 +1,68 @@
+
+
+
+Activated Area
+
+
+
+
+
+ returning to default picture";
+ $statement = $pdo->prepare("UPDATE users SET profilepicture = :imageurl WHERE id = :userid");
+ $result = $statement->execute(array('imageurl' => $imageurl, 'userid'=> $userid ));
+
+ if($result) {
+ die(' Changed Profile Picture. Going to profile now. ');
+ }
+}
+ else {
+ $statement = $pdo->prepare("UPDATE users SET profilepicture = :imageurl WHERE id = :userid");
+ $result = $statement->execute(array('imageurl' => $imageurl, 'userid'=> $userid ));
+
+ if($result) {
+ die(' Changed Profile Picture. Going to profile now. ');
+ }
+ }
+ }
+
+?>
+
+
+
+
Right now you need to upload the picture somewhere and input the URL here.
+
Please be aware that only the following filetypes will work!
+
jpg
+
gif
+
png
+
+
+
+
+
+
Back
+
+
\ No newline at end of file
diff --git a/profile.php b/profile.php
index d3cc38e..78e6234 100644
--- a/profile.php
+++ b/profile.php
@@ -12,7 +12,7 @@ $usergn = $_SESSION['givenName'];
$userln = $_SESSION['lastName'];
$activated = $_SESSION['activated'];
$isadmin = $_SESSION['isadmin'];
-$profilepicture = "https://web.td00.de/woddle.gif";
+$profilepicture = $_SESSION['profilepicture'];
?>