diff options
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/functions.php b/functions.php index 3e937d2..659241a 100644 --- a/functions.php +++ b/functions.php @@ -111,6 +111,10 @@ else function print_logout(){ global $user; $user->logout(); + /* + global $c; + $c->flush(); + */ print_login("logout"); } @@ -128,12 +132,14 @@ function print_index(){ <p>Wir treffen uns immer Donnerstags um 19:30 Uhr in der Remise Arndtstraße 12a.</p> <p>Am besten sind wir über unsere <span id="mail"><strong>Aktiviere JavaScript um die E-Mail Adresse zu sehen!</strong></span> erreichbar.</p> </div> + <script type='text/javascript'>var a = new Array('s.de','iamfabulou','nde@lists.','jungegemei');document.getElementById('mail').innerHTML="<a href='mailto:"+a[3]+a[2]+a[1]+a[0]+"'>E-Mail Adresse</a>";</script> <?php } function print_list($option = false){ lredirect("liste"); global $db; + global $c; $result = $db->doQuery("SELECT * FROM " . DBPREFIX . "member;"); ?> @@ -186,7 +192,7 @@ function print_list($option = false){ </tbody> </table> </div> - <form method="POST" action="/?page=add"> + <form method="POST" action="/?page=add&_flush="<?php echo $c->token; ?>> <button id="singlebutton" class="btn btn-info" type="submit">Füge jemanden hinzu</button> </form> </div> @@ -257,7 +263,7 @@ function print_add_entry_to_list(){ <h1>Füge die Daten hinzu</h1> </div> <div class="row"> - <form method='POST' action='/?page=action&task=add&goto=liste&_flush=<?php echo $c->token; ?>'> + <form method='POST' action='/?page=action&task=add&goto=liste&_flush=<?php echo htmlentities($_GET["_flush"]); ?>'> <div class="table-responsive"> <table class='table'> <thead> @@ -397,7 +403,7 @@ function print_register($option = false){ <div class="form-group"> <label class="col-md-4 control-label" for="key">Key*</label> <div class="col-md-4"> - <input id="key" name="key" placeholder="Schlüssel (Pflicht)" class="form-control input-md" required="" type="text"> + <input id="key" name="key" placeholder="Schlüssel (Pflicht)" class="form-control input-md" required="" type="password"> <span class="help-block">Du solltest den Schlüssel in einer Mail bekommen haben.</span> </div> </div> |
