aboutsummaryrefslogtreecommitdiff
path: root/oldwww/update.php
diff options
context:
space:
mode:
authorroot2014-04-14 08:35:13 +0200
committerroot2014-04-14 08:35:13 +0200
commit12734da8826299ffd24c0a15f6dbf205892d7221 (patch)
tree3b894dd30e332df23a564ce44e42ce164c8abd78 /oldwww/update.php
parent7b9d516cd3bcdb8eaa5f1eb533d71010061c681b (diff)
downloadjungegemeinde-12734da8826299ffd24c0a15f6dbf205892d7221.tar.gz
Pushed to v3
Diffstat (limited to 'oldwww/update.php')
-rw-r--r--oldwww/update.php53
1 files changed, 53 insertions, 0 deletions
diff --git a/oldwww/update.php b/oldwww/update.php
new file mode 100644
index 0000000..e59bf8e
--- /dev/null
+++ b/oldwww/update.php
@@ -0,0 +1,53 @@
+<?php
+
+/* Copyright Maximilian Möhring, 2013
+Licensed under the GPL. Read LICENSE for more Information.*/
+
+include('auth.php');
+/*error_reporting(E_ALL);
+
+ini_set('display_errors', '1');*/
+
+$id = SQLite3::escapeString($_POST["id"]);
+$name = SQLite3::escapeString($_POST["name"]);
+$adresse = SQLite3::escapeString($_POST["adresse"]);
+$telefonnummer = SQLite3::escapeString($_POST["telefonnummer"]);
+$handynummer = SQLite3::escapeString($_POST["handynummer"]);
+$email = SQLite3::escapeString($_POST["email"]);
+$bday = SQLite3::escapeString($_POST["geburtstag"]);
+
+//echo "$name<br> $adresse<br>$telefonnummer<br>$handynummer<br>$email<br>$bday<br>$ip<br>$cryptedip";
+
+
+
+$db = new SQLite3('../database/database.sqlite');
+
+$db->exec("UPDATE member SET name='$name' where id=$id;");
+$db->exec("UPDATE member SET adresse='$adresse' where id=$id;");
+$db->exec("UPDATE member SET telefonnummer='$telefonnummer' where id=$id;");
+$db->exec("UPDATE member SET handynummer='$handynummer' where id=$id;");
+$db->exec("UPDATE member SET email='$email' where id=$id;");
+$db->exec("UPDATE member SET geburtstag='$bday' where id=$id;");
+
+/*echo "
+<!doctype html public '-//W3C//DTD XHTML 1.0 //EN'>
+
+<html>
+ <head>
+ <title>Junge Gemeinde Adlershof - Update erfolgreich!</title>
+ <meta http-equiv='Content-type' content='text/html; charset=utf-8' />
+ <link rel='stylesheet' type='text/css' href='style.css' />
+ <link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'>
+ </head>
+
+ <body>
+<center>
+<p5>Update erfolgreich!</p5><br><br>
+<a4>Weiterleitung in 3.. 2.. 1..</a4>
+</center></body></html>";*/
+
+header("Refresh: 0; liste.php");
+
+
+
+?>