diff options
| author | root | 2014-04-14 08:35:13 +0200 |
|---|---|---|
| committer | root | 2014-04-14 08:35:13 +0200 |
| commit | 12734da8826299ffd24c0a15f6dbf205892d7221 (patch) | |
| tree | 3b894dd30e332df23a564ce44e42ce164c8abd78 /www/account.php | |
| parent | 7b9d516cd3bcdb8eaa5f1eb533d71010061c681b (diff) | |
| download | jungegemeinde-12734da8826299ffd24c0a15f6dbf205892d7221.tar.gz | |
Pushed to v3
Diffstat (limited to 'www/account.php')
| -rw-r--r-- | www/account.php | 57 |
1 files changed, 2 insertions, 55 deletions
diff --git a/www/account.php b/www/account.php index 2db7e85..0b1543d 100644 --- a/www/account.php +++ b/www/account.php @@ -1,58 +1,5 @@ -<?php include('auth.php'); +<?php -/* Copyright Maximilian Möhring, 2013 -Licensed under the GPL. Read LICENSE for more Information.*/ +function account($db){ -include("header.php"); - -if ($_SESSION["username"] != "jg-adlershof"){ - - $username = $_SESSION["username"]; - $db_check = new SQLite3("../database/database.sqlite"); - - $safe_username = SQLite3::escapeString("$username"); - $email_db = $db_check->query("SELECT email FROM user where name='$safe_username';"); - while($email_array = $email_db->fetchArray(SQLITE3_NUM)){ - foreach($email_array as $thirdelement){ - $email=$thirdelement; - } - } - - /*Anzahl der hochgeladenen Dateien.*/ - $count_db = $db_check->query("SELECT count(*) as count FROM file where fk=(SELECT id from user where name='$safe_username');"); - $count_array = $count_db->fetchArray(); - $count = $count_array["count"]; - - -//echo "$username Test $email"; -echo " -<div id='content_container' align='center'> - <br> - <div class='kleineschrift'> - <div class='ueberschrift'><p>JUNGE GEMEINDE ADLERSHOF</p> - </div> - </div> - -<br> -<div class='mittlereschrift'> - Verwalte deine Account Informationen hier. -</div> -<br> - - -<table><tr> -<td><p>Name: </td><td align='right'>$username</p></td></tr> -<tr><td><p>E-Mail:</td><td align='right'>$email</p></td></tr> -<tr><td align='left'><p>Stored files:</td> <td align='right'>$count</p></td></tr> -</table> - - -"; - - -} else { -header("Location: member_login.php"); -exit; } - -?> |
