Lighttpd conf file added for lighttpd webservers
[atbbs.git] / back_up_id.php
blob6c236fdf42592b6cc27e916a6dfcf51213379ca9
1 <?php
2 require('includes/header.php');
3 update_activity('back_up_id');
4 force_id();
6 $page_title = 'Back up ID';
8 if($_GET['action'] === 'generate_id_card')
10 header('Content-type: text/plain');
11 header('Content-Disposition: attachment; filename="ATBBS_ID.crd"');
12 echo $_SESSION['UID'] . "\n" . $_COOKIE['password'];
13 exit;
16 else
20 <table>
21 <tr>
22 <th class="minimal">Your unique ID</th>
23 <td><code><?php echo $_SESSION['UID'] ?></code></td>
24 </tr>
25 <tr>
26 <th class="minimal">Your password</th>
27 <td><code><?php echo $_COOKIE['password'] ?></code></td>
28 </tr>
29 </table>
31 <p>You may want to <a href="/generate_ID_card">download your ID card as a file</a>.</p>
33 <?php
36 require('includes/footer.php');